Bugzilla – Attachment 41073 Details for
Bug 11620
Add dissertation-information index for non-UNIMARC installations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11620: Add dissertation-information index for MARC21 (502)
PASSED-QA-Bug-11620-Add-dissertation-information-i.patch (text/plain), 3.47 KB, created by
Kyle M Hall (khall)
on 2015-07-17 15:12:15 UTC
(
hide
)
Description:
[PASSED QA] Bug 11620: Add dissertation-information index for MARC21 (502)
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-07-17 15:12:15 UTC
Size:
3.47 KB
patch
obsolete
>From 7866aad56eaa6e253024abb983c4030b95b649cc Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 25 May 2015 13:58:57 +0200 >Subject: [PATCH] [PASSED QA] 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 <bgkriegel@gmail.com> >Can find by dissertation-information, >No errors > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Search.pm | 1 + > etc/zebradb/ccl.properties | 1 + > .../marc21/biblios/biblio-koha-indexdefs.xml | 2 ++ > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 2 +- > 4 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 1389e5b..4f2a7c7 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 99e3498..4b3241c 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 8ad9db1..101f6ff 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 @@ > <!--record.abs line 147: melm 502 Material-type--> > <index_data_field tag="502"> > <target_index>Material-type:w</target_index> >+ <target_index>Dissertation-information:p</target_index> >+ <target_index>Dissertation-information:w</target_index> > </index_data_field> > <!--record.abs line 148: melm 505$r Author--> > <index_subfields tag="505" subfields="r"> >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..3dd627f 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) > </z:index> > </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']"> >- <z:index name="Material-type:w"> >+ <z:index name="Material-type:w Dissertation-information:p Dissertation-information:w"> > <xslo:variable name="raw_heading"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="position() > 1"> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11620
:
39485
|
40317
| 41073