From 6e0ee894a70bbe7124e35aa9b94dc54b2820ee69 Mon Sep 17 00:00:00 2001 From: Barton Chittenden Date: Thu, 10 Jul 2014 09:54:56 -0400 Subject: [PATCH] Add Zebra index "Other-control-number" covering MARC21 035$a, 035$z and 035 (entire tag) http://bugs.koha-community.org/show_bug.cgi?id=6499 --- C4/Search.pm | 1 + etc/zebradb/biblios/etc/bib1.att | 3 +- etc/zebradb/ccl.properties | 3 ++ .../marc21/biblios/biblio-koha-indexdefs.xml | 14 +++++++++- .../marc21/biblios/biblio-zebra-indexdefs.xsl | 29 ++++++++++++++++++++ etc/zebradb/marc_defs/marc21/biblios/record.abs | 4 ++- 6 files changed, 51 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index f93dd15..550d0d7 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1187,6 +1187,7 @@ sub getIndexes{ 'notes', 'ns', 'nt', + 'Other-control-number', 'pb', 'Personal-name', 'Personal-name-heading', diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att index ed8c64b..79cdfc9 100644 --- a/etc/zebradb/biblios/etc/bib1.att +++ b/etc/zebradb/biblios/etc/bib1.att @@ -191,7 +191,8 @@ att 1207 Instruments-total-number att 1208 Instruments-distint-number att 1209 Identifier-URN att 1210 Sears-Subject-Heading -att 1211 OCLC-Number +#att 1211 OCLC-Number +att 1211 Other-control-number att 1212 Composition att 1213 Intellectual-level att 1214 EAN diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 99e3498..57f5118 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -361,6 +361,9 @@ Date/time-last-modified 1=1012 # academic degree. Dissertation-information 1=1056 +#OCLC Number 1211 OCLC Number MARC21 035 +Other-control-number 1=1211 + #EAN 1214 European article number UNIMARC 073 EAN 1=1214 ean EAN 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 8ad9db1..459eeb0 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -165,7 +165,19 @@ Map-scale:w - + + + Other-control-number:w + + + + Other-control-number:w + + + + Other-control-number:w + + Identifier-standard:w Stock-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 a0f68f1..039d312 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -159,6 +159,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + @@ -1527,6 +1543,19 @@ 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 dcb3cad..a9d1172 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/record.abs +++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs @@ -72,7 +72,9 @@ melm 028 Identifier-publisher-for-music,Identifier-standard melm 030 CODEN,Identifier-standard #melm 033 Date melm 034 Map-scale -#melm 035 Local-number,Identifier-standard +melm 035$a Other-control-number +melm 035$z Other-control-number +melm 035 Other-control-number melm 037 Identifier-standard,Stock-number melm 040 Code-institution,Record-source melm 041$a ln,ln-audio:w -- 1.7.2.5