Bugzilla – Attachment 69852 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 publisher information
Bug-15704---Split-up-zebra-indexing-of-RDA-publish.patch (text/plain), 3.76 KB, created by
Nick Clemens
on 2017-12-18 15:47:16 UTC
(
hide
)
Description:
Bug 15704 - Split up zebra indexing of RDA publisher information
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2017-12-18 15:47:16 UTC
Size:
3.76 KB
patch
obsolete
>From 3308abe1cb68a9aab3289595a13cf770300175a1 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 publisher > 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! >--- > .../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 b67da41..a04353f 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 035d3bc..374803c 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.1.4
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