Bugzilla – Attachment 43171 Details for
Bug 14617
Add indexes for MARC 020$z => ISBN, 022$y, 022$z => ISSN
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14617: Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z
Bug-14617-Add-fields-to-ISBN-and-ISSN-indexes-020z.patch (text/plain), 3.49 KB, created by
Barton Chittenden
on 2015-10-06 13:27:05 UTC
(
hide
)
Description:
Bug 14617: Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2015-10-06 13:27:05 UTC
Size:
3.49 KB
patch
obsolete
>From 52925a7fec409cb684d425f9a64df3d6e2935e70 Mon Sep 17 00:00:00 2001 >From: Barton Chittenden <barton@bywatersolutions.com> >Date: Tue, 6 Oct 2015 06:22:56 -0700 >Subject: [PATCH] Bug 14617: Add fields to ISBN and ISSN indexes: 020$z, > 022$y, 022$z > >http://bugs.koha-community.org/show_bug.cgi?id=14617 > >Signed-off-by: kholten@switchinc.org >--- > .../marc21/biblios/biblio-koha-indexdefs.xml | 12 +++++++++++ > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 21 ++++++++++++++++++++ > 2 files changed, 33 insertions(+) > >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..839b00d 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -117,6 +117,10 @@ > <target_index>ISBN:w</target_index> > <target_index>Identifier-standard:w</target_index> > </index_subfields> >+ <index_subfields tag="020" subfields="z"> >+ <target_index>ISBN:w</target_index> >+ <target_index>Identifier-standard:w</target_index> >+ </index_subfields> > <!--record.abs line 55: melm 020 Identifier-standard--> > <index_data_field tag="020"> > <target_index>Identifier-standard:w</target_index> >@@ -126,6 +130,14 @@ > <target_index>ISSN:w</target_index> > <target_index>Identifier-standard:w</target_index> > </index_subfields> >+ <index_subfields tag="022" subfields="y"> >+ <target_index>ISSN:w</target_index> >+ <target_index>Identifier-standard:w</target_index> >+ </index_subfields> >+ <index_subfields tag="022" subfields="z"> >+ <target_index>ISSN:w</target_index> >+ <target_index>Identifier-standard:w</target_index> >+ </index_subfields> > <!--record.abs line 57: melm 022 Identifier-standard--> > <index_data_field tag="022"> > <target_index>Identifier-standard:w</target_index> >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..78c071d 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -140,6 +140,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('z', @code)"> >+ <z:index name="ISBN:w Identifier-standard:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='022']"> > <xslo:for-each select="marc:subfield"> >@@ -149,6 +156,20 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('y', @code)"> >+ <z:index name="ISSN:w Identifier-standard:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('z', @code)"> >+ <z:index name="ISSN:w Identifier-standard:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='024']"> > <xslo:for-each select="marc:subfield"> >-- >1.7.10.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 14617
:
41429
|
42607
|
43171
|
43422