From e799e1cbc33d8fce2f1ff3a9688adb0a68ed1d4d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 25 May 2015 13:58:57 +0200 Subject: [PATCH] Bug 11620: Add dissertation-information index for MARC21 (502) Bug 11202 introduced a new index 'dissertation-information' for UNIMARC. This patch adds the index also for MARC21 installations. http://www.loc.gov/marc/bibliographic/bd502.html To test: - Apply patch - Copy files in etc/zebradb changed by this patch to your corresponding directory (koha-dev..) - Make sure you have records with 502 - Reindex - Verify you can search the field contents with dissertation-information= and diss= Signed-off-by: Bernardo Gonzalez Kriegel Can find by dissertation-information, No errors Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Search.pm | 1 + etc/zebradb/ccl.properties | 1 + etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 2 ++ etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 1389e5b3ec..4f2a7c72e3 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1133,6 +1133,7 @@ sub getIndexes{ 'Date-of-publication', 'Dewey-classification', 'Dissertation-information', + 'diss', 'EAN', 'extent', 'fic', diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 99e3498e4b..4b3241c71e 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -360,6 +360,7 @@ Date/time-last-modified 1=1012 # publication connected with an # academic degree. Dissertation-information 1=1056 +diss Dissertation-information #EAN 1214 European article number UNIMARC 073 EAN 1=1214 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 8ad9db1907..101f6ff475 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -529,6 +529,8 @@ Material-type:w + Dissertation-information:p + Dissertation-information: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 a0f68f1e1f..3dd627ffc5 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -1944,7 +1944,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 2.39.5