From 84bdb555491af52331ece7420e797e838c814229 Mon Sep 17 00:00:00 2001 From: Mirko Tietgen Date: Tue, 2 Apr 2013 15:03:53 +0200 Subject: [PATCH] Bug 9972: Add/change some zebra indexes (MARC21) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds :w and :p versions to the index for »Lexile number« (it has only :n so far) and adds indexes for 653 (Index term uncontrolled), 655 (Index term Genre/Form), 041 (language-audio) and 041 (language-subtitle). It also adds the »curriculum«-index to Search.pm. Signed-off-by: Chris Cormack Signed-off-by: Martin Renvoize Signed-off-by: Galen Charlton --- C4/Search.pm | 6 ++++++ etc/zebradb/biblios/etc/bib1.att | 4 ++++ etc/zebradb/ccl.properties | 9 +++++++++ .../marc21/biblios/biblio-koha-indexdefs.xml | 18 +++++++++++++++++ .../marc21/biblios/biblio-zebra-indexdefs.xsl | 20 ++++++++++++++++--- .../marc_defs/marc21/biblios/record.abs | 8 +++++--- 6 files changed, 59 insertions(+), 6 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index b8cda0bb18..2c63f9c7ec 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -962,6 +962,7 @@ sub getIndexes{ 'Corporate-name-seealso', 'Country-publication', 'ctype', + 'curriculum', 'date-entered-on-file', 'Date-of-acquisition', 'Date-of-publication', @@ -982,6 +983,8 @@ sub getIndexes{ 'Host-item', 'id-other', 'Illustration-code', + 'Index-term-genre', + 'Index-term-uncontrolled', 'ISBN', 'isbn', 'ISSN', @@ -995,8 +998,11 @@ sub getIndexes{ 'lc-card', 'LC-card-number', 'lcn', + 'lex', 'llength', 'ln', + 'ln-audio', + 'ln-subtitle', 'Local-classification', 'Local-number', 'Match-heading', diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att index 4c67071e0a..ed8c64b38a 100644 --- a/etc/zebradb/biblios/etc/bib1.att +++ b/etc/zebradb/biblios/etc/bib1.att @@ -356,3 +356,7 @@ att 9013 arp att 9520 Item # Curriculum att 9658 curriculum +att 9653 Index-term-uncontrolled +att 9655 Index-term-genre +att 9906 ln-audio +att 9907 ln-subtitle diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index a46dc64f28..99e3498e4b 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -1251,3 +1251,12 @@ item Item Host-Item-Number 1=8911 hi Host-Item-Number + +Index-term-uncontrolled 1=9653 +itu Index-term-uncontrolled + +Index-term-genre 1=9655 +itg Index-term-genre + +ln-audio 1=9906 +ln-subtitle 1=9907 diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml index 5ddbb624eb..d3ee630623 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -177,6 +177,7 @@ ln:w + ln-audio:w @@ -193,6 +194,7 @@ ln:w + ln-subtitle:w @@ -551,6 +553,8 @@ + lex:w + lex:p lex:n @@ -688,6 +692,13 @@ Koha-Auth-Number:w + + + Index-term-uncontrolled:w + Index-term-uncontrolled:p + Subject:w + Subject:p + Koha-Auth-Number:w @@ -706,6 +717,13 @@ Subject:w Subject:p + + + Index-term-genre:w + Index-term-genre:p + Subject:w + Subject:p + Koha-Auth-Number:w diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl index 2ca3dbb0ed..a4aad7b248 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -160,7 +160,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -188,7 +188,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -451,7 +451,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -593,6 +593,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -611,6 +618,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs index e867cecf83..dcb3cadb80 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/record.abs +++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs @@ -75,11 +75,11 @@ melm 034 Map-scale #melm 035 Local-number,Identifier-standard melm 037 Identifier-standard,Stock-number melm 040 Code-institution,Record-source -melm 041$a ln +melm 041$a ln,ln-audio:w melm 041$d ln melm 041$e ln melm 041$h language-original -melm 041$j ln +melm 041$j ln,ln-subtitle:w melm 043 Code-geographic #melm 046 pubdate melm 050$b LC-call-number:w,LC-call-number:p,LC-call-number:s @@ -159,7 +159,7 @@ melm 505$t Title melm 505 Note:w,Note:p melm 510 Indexed-by melm 520 Abstract:w,Abstract:p -melm 521$a lex:n +melm 521$a lex:w,lex:p,lex:n melm 526$c arl,arl:n melm 526$d arp,arp:n #melm 533$d pubdate,pubdate:s @@ -189,10 +189,12 @@ melm 651$9 Koha-Auth-Number melm 651 Name-geographic,Subject,Subject:p melm 652$9 Koha-Auth-Number #melm 652 subject-heading,subject-heading:p +melm 653$a Index-term-uncontrolled:w,Index-term-uncontrolled:p,Subject,Subject:p melm 653$9 Koha-Auth-Number melm 653 Subject,Subject:p melm 654$9 Koha-Auth-Number melm 654 Subject,Subject:p +melm 655$a Index-term-genre:w,Index-term-genre:p,Subject,Subject:p melm 655$9 Koha-Auth-Number melm 655 Subject,Subject:p melm 656$9 Koha-Auth-Number -- 2.39.5