fix for bug 1208, exact barcode search
authorJoshua Ferraro <jmf@liblime.com>
Sun, 25 Nov 2007 15:28:22 +0000 (09:28 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 25 Nov 2007 22:28:04 +0000 (16:28 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm
etc/zebradb/ccl.properties

index 5535882..b06ad29 100644 (file)
@@ -651,6 +651,9 @@ sub _build_weighted_query {
        # embedded sorting: 0 a-z; 1 z-a
        # $weighted_query .= ") or (sort1,aut=1";
     }
+       elsif ( $index eq 'bc' ) {
+               $weighted_query .= "bc=\"$operand\"";
+       }
     # if the index already has more than one qualifier, just wrap the operand 
     # in quotes and pass it back
     elsif ($index =~ ',') {
index 6224a17..8643e2a 100644 (file)
@@ -440,7 +440,6 @@ sn Local-number
 #Identifier-stock     1028  A stock number that could be    037
 #                           used for ordering the item.
 Stock-number 1=1028
-bc Stock-number
 
 #Identifier-thematic  1030  The numeric designation for a   $n in the following:
 #                           part/section of a work such as  130, 240, 243, 630,
@@ -934,6 +933,7 @@ renewals 1=8020 4=109
 reserves 1=8021 4=109
 Local-classification 1=8022
 barcode 1=8023
+bc barcode
 onloan 1=8024
 datelastseen 1=8025
 datelastborrowed 1=8026