From 937bb38e6a33383d6a4023ba1aca964db3a1464e Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sun, 25 Nov 2007 09:28:22 -0600 Subject: [PATCH] fix for bug 1208, exact barcode search Signed-off-by: Joshua Ferraro --- C4/Search.pm | 3 +++ etc/zebradb/ccl.properties | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 5535882e96..b06ad29ffa 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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 =~ ',') { diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 6224a174e2..8643e2aaba 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -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 -- 2.39.5