[Koha-patches] [PATCH] [SIGNED-OFF] 6584: Enable searching on Zebra's Bib-level index

Katrin Fischer Katrin.Fischer.83 at web.de
Sun Jul 17 00:33:48 CEST 2011


From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Bib-level is already indexed in MARC21 record.abs.
But you cannot search this index, because it is commented in ccl.properties and
not listed in getIndexes of Search.pm.
This very simple patch does only do those two things.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
---
 C4/Search.pm               |    1 +
 etc/zebradb/ccl.properties |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index c3cff65..343058a 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -842,6 +842,7 @@ sub getIndexes{
                     'Authority-Number',
                     'authtype',
                     'bc',
+		    'Bib-level',
                     'biblionumber',
                     'bio',
                     'biography',
diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties
index ee2553c..890b364 100644
--- a/etc/zebradb/ccl.properties
+++ b/etc/zebradb/ccl.properties
@@ -219,7 +219,7 @@ callnum Local-classification
 #                           bibliographic level such as
 #                           monograph, serial or collection
 #                           of the record.
-#Bib-level 1=1021
+Bib-level 1=1021
 #
 #Code-geographic-area   55  A code that indicates the       043
 #                           geographic area(s) that appear
-- 
1.7.4.1



More information about the Koha-patches mailing list