Bugzilla – Attachment 89615 Details for
Bug 15704
The 264 index should be split by subfield to match how 260 is indexed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15704: Split up Zebra indexing of RDA 264 information
Bug-15704-Split-up-Zebra-indexing-of-RDA-264-infor.patch (text/plain), 3.88 KB, created by
Katrin Fischer
on 2019-05-11 16:52:54 UTC
(
hide
)
Description:
Bug 15704: Split up Zebra indexing of RDA 264 information
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-05-11 16:52:54 UTC
Size:
3.88 KB
patch
obsolete
>From e328522cbb971b88d4faf675096e06ae2e8603c9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 18 Dec 2017 15:41:33 +0000 >Subject: [PATCH] Bug 15704: Split up Zebra indexing of RDA 264 information > >To test: >1 - Add a record with a unique publisher "Supercalifragilistic" in the >264 b field >2 - Search for the value >3 - Record not found >4 - Apply patch (may need ot copy the .xml file into koha install) >5 - Reindex all the things >6 - Search for the value >7 - Success! > >Signed-off-by: Felicia Martin <felicia.martin@dncr.nh.gov> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../marc21/biblios/biblio-koha-indexdefs.xml | 16 ++++++++++++++ > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 25 +++++++++++++++++++++- > 2 files changed, 40 insertions(+), 1 deletion(-) > >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 b3b12a0e2b..e1941793c9 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -450,8 +450,24 @@ > <target_index>pl:w</target_index> > <target_index>Provider:w</target_index> > </index_data_field> >+ <!-- RDA 264$a pl:w,pl:p--> >+ <index_subfields tag="264" subfields="a"> >+ <target_index>pl:w</target_index> >+ <target_index>pl:p</target_index> >+ </index_subfields> >+ <!-- RDA 264$b Publisher:w,Publisher:p--> >+ <index_subfields tag="264" subfields="b"> >+ <target_index>Publisher:w</target_index> >+ <target_index>Publisher:p</target_index> >+ </index_subfields> >+ <!-- RDA 264$c copydate,copydate:s--> >+ <index_subfields tag="264" subfields="c"> >+ <target_index>copydate:w</target_index> >+ <target_index>copydate:s</target_index> >+ </index_subfields> > <!--Index for RDA 264 field--> > <index_data_field tag="264"> >+ <target_index>pl:w</target_index> > <target_index>Provider:w</target_index> > </index_data_field> > <!--record.abs line 123: melm 300 Extent:w,Extent:p--> >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 c5fed3e859..8e5514af72 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -372,6 +372,29 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:if> > </xslo:for-each> > </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='264']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="pl:w pl:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('b', @code)"> >+ <z:index name="Publisher:w Publisher:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('c', @code)"> >+ <z:index name="copydate:w copydate:s"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='400']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -2069,7 +2092,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='264']"> >- <z:index name="Provider:w"> >+ <z:index name="pl:w Provider:w"> > <xslo:variable name="raw_heading"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="position() > 1"> >-- >2.11.0
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 15704
:
69852
| 89615