From 32cfac05cfc1099794451f230d04fb01ebb377a4 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Wed, 9 Apr 2008 05:15:37 -0400 Subject: [PATCH] Fixing bug 2005: ISBN Search Signed-off-by: Joshua Ferraro --- C4/Search.pm | 11 ++++++++++- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 6 +++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index e72222598e..dc05673390 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -967,10 +967,19 @@ sub buildQuery { $remove_stopwords ) = ( 0, 0, 0, 0, 0 ); } + # 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, + $remove_stopwords + ) = ( 0, 0, 0, 0, 0 ); + } # Set default structure attribute (word list) my $struct_attr; - unless ( !$index || $index =~ /(st-|phr|ext|wrdl)/ ) { + unless ( $indexes_set || !$index || $index =~ /(st-|phr|ext|wrdl)/ ) { $struct_attr = ",wrdl"; } diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index dd9662e410..7f07c3ffbe 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -39,10 +39,10 @@ - - + + - + -- 2.39.5