From ab7435f964336a18f760b9dd91d4b4506528a051 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Wed, 6 Apr 2011 09:36:22 +0200 Subject: [PATCH] Bug5555 Corrected search for ISBN / ISSN MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Delaune Signed-off-by: Chris Cormack --- C4/Search.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index c69e787341..9cf9a2570b 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1146,7 +1146,6 @@ sub buildQuery { } # ISBN,ISSN,Standard Number, don't need special treatment elsif ( $index eq 'nb' || $index eq 'ns' ) { - $indexes_set++; ( $stemming, $auto_truncation, $weight_fields, $fuzzy_enabled, @@ -1161,7 +1160,7 @@ sub buildQuery { # Set default structure attribute (word list) my $struct_attr = q{}; - unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl)/ ) { + unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl|nb|ns)/ ) { $struct_attr = ",wrdl"; } @@ -1353,7 +1352,7 @@ sub buildQuery { # This is flawed , means we can't search anything with : in it # if user wants to do ccl or cql, start the query with that # $query =~ s/:/=/g; - $query =~ s/(?<=(ti|au|pb|su|an|kw|mc)):/=/g; + $query =~ s/(?<=(ti|au|pb|su|an|kw|mc|nb|ns)):/=/g; $query =~ s/(?<=(wrdl)):/=/g; $query =~ s/(?<=(trn|phr)):/=/g; $limit =~ s/:/=/g; -- 2.39.5