Bugzilla – Attachment 43422 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.80 KB, created by
Jonathan Druart
on 2015-10-15 09:58:38 UTC
(
hide
)
Description:
Bug 14617: Add fields to ISBN and ISSN indexes: 020$z, 022$y, 022$z
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-15 09:58:38 UTC
Size:
3.80 KB
patch
obsolete
>From d11d154fa75d834d154c1156b8efc4e9e00115af 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 > >1) Import MARC21 bibs containing > >- ISBN in 020$z >- ISSN in 022$y >- ISSN in 022$z > >2) Make sure that bibs are indexed > >3) Search by ISBN and ISSN above -- bibs should not show in search. > >4) Apply patch, re-index > >5) Search again; ISBN in 020$z and ISSN in 022$y and 022$z should return >results. > >Signed-off-by: kholten@switchinc.org >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.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 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"> >-- >2.1.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 14617
:
41429
|
42607
|
43171
| 43422