Bugzilla – Attachment 41429 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]
Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z
Add-fields-to-ISBN-and-ISSN-indexes-020z-022y-022z.patch (text/plain), 3.47 KB, created by
Barton Chittenden
on 2015-08-07 14:22:07 UTC
(
hide
)
Description:
Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2015-08-07 14:22:07 UTC
Size:
3.47 KB
patch
obsolete
>From ff07ac2e5049de2b3d9bdd9ac75429199fc4afaf Mon Sep 17 00:00:00 2001 >From: Koha instance bug_14617-koha > <bug_14617-koha@bwsdev.bywatersolutions.com> >Date: Fri, 7 Aug 2015 06:59:19 -0700 >Subject: [PATCH] Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z > >http://bugs.koha-community.org/show_bug.cgi?id=14617 >--- > .../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 101f6ff..1c1abe6 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 3dd627f..1f09b25 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