Fixing bug 2005: ISBN Search
authorJoshua Ferraro <jmf@liblime.com>
Wed, 9 Apr 2008 09:15:37 +0000 (05:15 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 9 Apr 2008 10:46:03 +0000 (05:46 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm
koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc

index e722225..dc05673 100644 (file)
@@ -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";
                 }
 
index dd9662e..7f07c3f 100644 (file)
                <!-- TMPL_ELSE -->
         <option value="su">Subject</option>
                <!-- /TMPL_IF -->
-               <!-- TMPL_IF NAME="ms_isbn" -->
-               <option selected="selected" value="isbn">ISBN</option>
+               <!-- TMPL_IF NAME="ms_nb" -->
+               <option selected="selected" value="nb">ISBN</option>
                <!-- TMPL_ELSE -->
-               <option value="isbn">ISBN</option>
+               <option value="nb">ISBN</option>
                <!-- /TMPL_IF -->
                <!-- TMPL_IF NAME="ms_se" -->
         <option selected="selected" value="se">Series</option>