@@ -, +, @@ --- C4/Search.pm | 7 +++++++ 1 file changed, 7 insertions(+) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1341,6 +1341,13 @@ sub buildQuery { $indexes[$i] = $index = 'kw'; } } + if ( $index eq 'ns' ) { + if ( C4::Context->preference("SearchWithISSNVariations") ) { + my @issns = C4::Koha::GetVariationsOfISSN( $operand ); + $operands[$i] = $operand = '(ns=' . join(' OR ns=', @issns) . ')'; + $indexes[$i] = $index = 'kw'; + } + } } # Set default structure attribute (word list) --