Lines 1416-1429
sub buildQuery {
Link Here
|
1416 |
if ( $index eq 'nb' ) { |
1416 |
if ( $index eq 'nb' ) { |
1417 |
if ( C4::Context->preference("SearchWithISBNVariations") ) { |
1417 |
if ( C4::Context->preference("SearchWithISBNVariations") ) { |
1418 |
my @isbns = C4::Koha::GetVariationsOfISBN( $operand ); |
1418 |
my @isbns = C4::Koha::GetVariationsOfISBN( $operand ); |
1419 |
$operands[$i] = $operand = '(nb=' . join(' OR nb=', @isbns) . ')'; |
1419 |
$operands[$i] = $operand = '(' . join( ' OR ', map { 'nb=' . $_ } @isbns ) . ')'; |
1420 |
$indexes[$i] = $index = 'kw'; |
1420 |
$indexes[$i] = $index = 'kw'; |
1421 |
} |
1421 |
} |
1422 |
} |
1422 |
} |
1423 |
if ( $index eq 'ns' ) { |
1423 |
if ( $index eq 'ns' ) { |
1424 |
if ( C4::Context->preference("SearchWithISSNVariations") ) { |
1424 |
if ( C4::Context->preference("SearchWithISSNVariations") ) { |
1425 |
my @issns = C4::Koha::GetVariationsOfISSN( $operand ); |
1425 |
my @issns = C4::Koha::GetVariationsOfISSN( $operand ); |
1426 |
$operands[$i] = $operand = '(ns=' . join(' OR ns=', @issns) . ')'; |
1426 |
$operands[$i] = $operand = '(' . join( ' OR ', map { 'ns=' . $_ } @issns ) . ')'; |
1427 |
$indexes[$i] = $index = 'kw'; |
1427 |
$indexes[$i] = $index = 'kw'; |
1428 |
} |
1428 |
} |
1429 |
} |
1429 |
} |
1430 |
- |
|
|