From 4c02cf730f8b409041bbe2d8837d59ffa69bc737 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Wed, 13 Jul 2011 15:05:16 +0200
Subject: [PATCH] 6584: Enable searching on Zebra's Bib-level index
Content-Type: text/plain; charset="utf-8"

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@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