Bugzilla – Attachment 148834 Details for
Bug 20424
New UNIMARC ZEBRA indexes according to last IFLA updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20424: provides biblio-zebra-indexdefs.xsl
Bug-20424-provides-biblio-zebra-indexdefsxsl.patch (text/plain), 7.29 KB, created by
Alex Arnaud
on 2023-03-28 14:15:32 UTC
(
hide
)
Description:
Bug 20424: provides biblio-zebra-indexdefs.xsl
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2023-03-28 14:15:32 UTC
Size:
7.29 KB
patch
obsolete
>From 683e0895c4431b2dcc3b7085c930d7aa6a62897b Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 28 Mar 2023 16:14:52 +0200 >Subject: [PATCH] Bug 20424: provides biblio-zebra-indexdefs.xsl > >--- > .../biblios/biblio-zebra-indexdefs.xsl | 111 ++++++++++++++++-- > 1 file changed, 98 insertions(+), 13 deletions(-) > >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 22d902c..e7add8e 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -87,9 +87,16 @@ 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('o', @code)"> >+ <z:index name="Suppress:w Suppress:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('t', @code)"> >- <z:index name="ccode:w"> >+ <z:index name="index-type-doc:w index-type-doc:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -255,6 +262,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('B', @code)"> >+ <z:index name="new-item:w new-item:n item:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('1', @code)"> > <z:index name="damaged:w damaged:n item:w"> >@@ -816,6 +830,38 @@ 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='214']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('d', @code)"> >+ <z:index name="pubdate:n pubdate:y"> >+ <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="Publisher:w Publisher:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='219']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('d', @code)"> >+ <z:index name="pubdate:n pubdate:y"> >+ <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="Publisher:w Publisher:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='225']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -1450,8 +1496,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='461']"> > <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('t', @code)"> >- <z:index name="Title:w Title:p Host-item:w Host-item:p"> >+ <xslo:if test="contains('tv', @code)"> >+ <z:index name="Title:w Title:p index-title-serie:p index-title-serie:w index-title-serie:n Host-item:w Host-item:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('9', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('0', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -1468,8 +1528,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='463']"> > <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('t', @code)"> >- <z:index name="Title:w Title:p"> >+ <xslo:if test="contains('tv', @code)"> >+ <z:index name="Title:w Title:p index-title-article:p index-title-article:w index-title-article:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('9', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('0', @code)"> >+ <z:index name="index-lien-desc:w index-lien-desc:p index-lien-desc:n"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -2542,16 +2616,30 @@ 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:template mode="index_facets" match="marc:datafield[@tag='225']"> > <xslo:if test="not(@ind1='z')"> >- <z:index name="ccode:0"> >- <xslo:value-of select="marc:subfield[@code='t']"/> >+ <z:index name="se:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> > </z:index> > </xslo:if> > </xslo:template> >- <xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='500']"> > <xslo:if test="not(@ind1='z')"> >- <z:index name="se:0"> >+ <z:index name="su-ut:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> >+ </z:index> >+ </xslo:if> >+ </xslo:template> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='501']"> >+ <xslo:if test="not(@ind1='z')"> >+ <z:index name="su-ut:0"> >+ <xslo:value-of select="marc:subfield[@code='a']"/> >+ </z:index> >+ </xslo:if> >+ </xslo:template> >+ <xslo:template mode="index_facets" match="marc:datafield[@tag='503']"> >+ <xslo:if test="not(@ind1='z')"> >+ <z:index name="su-ut:0"> > <xslo:value-of select="marc:subfield[@code='a']"/> > </z:index> > </xslo:if> >@@ -2672,9 +2760,6 @@ 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.30.2
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 20424
:
93732
|
93733
|
93736
|
119034
|
119053
|
119054
|
119080
|
119081
|
132663
|
132816
|
132817
|
132818
|
132827
|
132828
|
132829
|
148831
|
148832
|
148833
| 148834