[Koha-patches] [PATCH] 6584: Enable searching on Zebra's Bib-level index
Marcel de Rooy
M.de.Rooy at rijksmuseum.nl
Wed Jul 13 15:24:51 CEST 2011
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.
---
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.6.0.6
More information about the Koha-patches
mailing list