Bugzilla – Attachment 76025 Details for
Bug 18322
Add facets for ccode to zebra
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18322: Update xslt for NORMARC and UNIMARC
Bug-18322-Update-xslt-for-NORMARC-and-UNIMARC.patch (text/plain), 2.47 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-06-13 13:14:54 UTC
(
hide
)
Description:
Bug 18322: Update xslt for NORMARC and UNIMARC
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-06-13 13:14:54 UTC
Size:
2.47 KB
patch
obsolete
>From d63b5e08e08d9b9ac1809b562ac3654b1225cc15 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 12 Jun 2018 14:47:30 -0300 >Subject: [PATCH] Bug 18322: Update xslt for NORMARC and UNIMARC > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../normarc/biblios/biblio-zebra-indexdefs.xsl | 3 +++ > .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 10 ++++++++++ > 2 files changed, 13 insertions(+) > >diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >index 851deaf58f..a7aae13203 100644 >--- a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >@@ -1866,6 +1866,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <z:index name="itype:0"> > <xslo:value-of select="marc:subfield[@code='y']"/> > </z:index> >+ <z:index name="ccode:0"> >+ <xslo:value-of select="marc:subfield[@code='8']"/> >+ </z:index> > </xslo:if> > </xslo:template> > <xslo:template mode="index_all" match="text()"> >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >index 04fb8411fe..f60c1380c4 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -2539,6 +2539,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="normalize-space($raw_heading)"/> > </z:index> > </xslo:template> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='099']"> >+ <xslo:if test="not(@ind1='z')"> >+ <z:index name="ccode:0"> >+ <xslo:value-of select="marc:subfield[@code='t']"/> >+ </z:index> >+ </xslo:if> >+ </xslo:template> > <xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> > <xslo:if test="not(@ind1='z')"> > <z:index name="se:0"> >@@ -2683,6 +2690,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <z:index name="location:0"> > <xslo:value-of select="marc:subfield[@code='e']"/> > </z:index> >+ <z:index name="ccode:0"> >+ <xslo:value-of select="marc:subfield[@code='h']"/> >+ </z:index> > </xslo:if> > </xslo:template> > <xslo:template mode="index_all" match="text()"> >-- >2.17.1
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 18322
:
61581
|
61597
|
61612
|
61643
|
61657
|
67823
|
75997
|
76007
|
76008
|
76009
|
76021
|
76023
|
76024
| 76025 |
76026