Bugzilla – Attachment 132818 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), 27.81 KB, created by
Alex Arnaud
on 2022-04-01 07:27:55 UTC
(
hide
)
Description:
Bug 20424: provides biblio-zebra-indexdefs.xsl
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2022-04-01 07:27:55 UTC
Size:
27.81 KB
patch
obsolete
>From b2f4e4f427f9fe447614d4d4e616ad220ebd0131 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Wed, 31 Mar 2021 16:10:27 +0200 >Subject: [PATCH] Bug 20424: provides biblio-zebra-indexdefs.xsl > >--- > .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 445 ++++++++++++++++++++- > 1 file changed, 429 insertions(+), 16 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 1459c29..ef9235e 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -17,6 +17,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:template match="text()" mode="index_heading_conditional"/> > <xslo:template match="text()" mode="index_match_heading"/> > <xslo:template match="text()" mode="index_subject_thesaurus"/> >+ <xslo:template match="text()" mode="index_sort_tit"/> > <xslo:template match="/"> > <xslo:if test="marc:collection"> > <collection> >@@ -42,6 +43,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:apply-templates mode="index_match_heading"/> > <xslo:apply-templates mode="index_subject_thesaurus"/> > <xslo:apply-templates mode="index_all"/> >+ <xslo:apply-templates mode="index_sort_tit"/> > </z:record> > </xslo:template> > <xslo:template match="marc:controlfield[@tag='001']"> >@@ -52,6 +54,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="."/> > </z:index> > </xslo:template> >+ <xslo:template match="marc:controlfield[@tag='003']"> >+ <z:index name="Identifier-persistent:w Identifier-persistent:p Identifier-persistent:n"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:template> > <xslo:template match="marc:controlfield[@tag='009']"> > <z:index name="Identifier-standard:w"> > <xslo:value-of select="."/> >@@ -85,8 +92,15 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </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> >@@ -171,6 +185,33 @@ 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='018']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="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='029']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="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='033']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Identifier-persistent:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='040']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('az', @code)"> >@@ -253,6 +294,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </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"> > <xslo:value-of select="."/> >@@ -389,27 +437,34 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="char-encoding:n"> >+ <z:index name="char-encoding:w char-encoding:p"> > <xslo:value-of select="substring(., 27, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="char-encoding:n"> >+ <z:index name="char-encoding:w char-encoding:p"> > <xslo:value-of select="substring(., 29, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="char-encoding:n"> >+ <z:index name="char-encoding:w char-encoding:p"> > <xslo:value-of select="substring(., 31, 2)"/> > </z:index> > </xslo:if> > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >+ <z:index name="char-encoding:w char-encoding:p"> >+ <xslo:value-of select="substring(., 33, 2)"/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> > <z:index name="script-Title:n"> > <xslo:value-of select="substring(., 35, 2)"/> > </z:index> >@@ -640,6 +695,65 @@ 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='181']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('c', @code)"> >+ <z:index name="Content-type:w Content-type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='182']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('c', @code)"> >+ <z:index name="Material-Type:w Material-Type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='183']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Carrier-type:w Carrier-type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='203']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Content-type:w Content-type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('b', @code)"> >+ <z:index name="Material-Type:w Material-Type:p"> >+ <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="Carrier-type:w Carrier-type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> >+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='283']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Carrier-type:w Carrier-type:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='700']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('3', @code)"> >@@ -813,6 +927,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)"> >@@ -871,6 +1017,22 @@ 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='231']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Electronic-resource:w Electronic-resource:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('b', @code)"> >+ <z:index name="Digital-content:w Digital-content:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='300']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -1148,6 +1310,15 @@ 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='335']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Note:w Note:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='336']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -1166,6 +1337,15 @@ 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='338']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Note:w Note:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='345']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >@@ -1184,6 +1364,15 @@ 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='412']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('t', @code)"> >+ <z:index name="Title:w Title:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='413']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('t', @code)"> >@@ -1447,8 +1636,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> >@@ -1465,8 +1668,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> >@@ -1771,6 +1988,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('y', @code)"> >+ <z:index name="Subject:w Subject:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='607']"> > <xslo:for-each select="marc:subfield"> >@@ -1871,6 +2095,15 @@ 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='856']"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('u', @code)"> >+ <z:index name="uri:w"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='942']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('0', @code)"> >@@ -1928,6 +2161,19 @@ 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_data_field" match="marc:datafield[@tag='703']"> >+ <z:index name="Author:w Author:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='710']"> > <z:index name="Author:w Author-name-corporate:w Author-name-conference:w Corporate-name:w Conference-name:w Author:p Author-name-corporate:p Author-name-conference:p Corporate-name:p Conference-name:p"> > <xslo:variable name="raw_heading"> >@@ -1967,6 +2213,19 @@ 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_data_field" match="marc:datafield[@tag='713']"> >+ <z:index name="Author:w Author:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='716']"> > <z:index name="Author:w Author:p"> > <xslo:variable name="raw_heading"> >@@ -2019,6 +2278,19 @@ 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_data_field" match="marc:datafield[@tag='723']"> >+ <z:index name="Author:w Author:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='730']"> > <z:index name="Author:w Author:p"> > <xslo:variable name="raw_heading"> >@@ -2032,6 +2304,19 @@ 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_data_field" match="marc:datafield[@tag='901']"> >+ <z:index name="index-genre:w index-genre:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='205']"> > <z:index name="Title:w Title:p"> > <xslo:variable name="raw_heading"> >@@ -2084,6 +2369,32 @@ 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_data_field" match="marc:datafield[@tag='506']"> >+ <z:index name="Title:w Title:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> >+ <xslo:template mode="index_data_field" match="marc:datafield[@tag='507']"> >+ <z:index name="Title:w Title:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='510']"> > <z:index name="Title:w Title:p"> > <xslo:variable name="raw_heading"> >@@ -2097,6 +2408,19 @@ 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_data_field" match="marc:datafield[@tag='511']"> >+ <z:index name="Title:w Title:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='512']"> > <z:index name="Title:w Title:p"> > <xslo:variable name="raw_heading"> >@@ -2305,6 +2629,32 @@ 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_data_field" match="marc:datafield[@tag='576']"> >+ <z:index name="Title:w Title:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> >+ <xslo:template mode="index_data_field" match="marc:datafield[@tag='577']"> >+ <z:index name="Title:w Title:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='600']"> > <z:index name="Subject:w Subject:p"> > <xslo:variable name="raw_heading"> >@@ -2487,6 +2837,45 @@ 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_data_field" match="marc:datafield[@tag='623']"> >+ <z:index name="Subject:w Subject:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> >+ <xslo:template mode="index_data_field" match="marc:datafield[@tag='631']"> >+ <z:index name="Subject:w Subject:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> >+ <xslo:template mode="index_data_field" match="marc:datafield[@tag='632']"> >+ <z:index name="Subject:w Subject:p"> >+ <xslo:variable name="raw_heading"> >+ <xslo:for-each select="marc:subfield"> >+ <xslo:if test="position() > 1"> >+ <xslo:value-of select="substring(' ', 1, 1)"/> >+ </xslo:if> >+ <xslo:value-of select="."/> >+ </xslo:for-each> >+ </xslo:variable> >+ <xslo:value-of select="normalize-space($raw_heading)"/> >+ </z:index> >+ </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='670']"> > <z:index name="Subject-precis:w Subject-precis:p"> > <xslo:variable name="raw_heading"> >@@ -2539,16 +2928,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> >@@ -2669,9 +3072,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()"> >@@ -2679,6 +3079,19 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="."/> > </z:index> > </xslo:template> >+ <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> >+ <xslo:variable name="chop"> >+ <xslo:choose> >+ <xslo:when test="not(number(@ind2))">0</xslo:when> >+ <xslo:otherwise> >+ <xslo:value-of select="number(@ind2)"/> >+ </xslo:otherwise> >+ </xslo:choose> >+ </xslo:variable> >+ <z:index name="Title:s"> >+ <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> >+ </z:index> >+ </xslo:template> > <xslo:template name="chopPunctuation"> > <xslo:param name="chopString"/> > <xslo:variable name="length" select="string-length($chopString)"/> >-- >2.7.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 20424
:
93732
|
93733
|
93736
|
119034
|
119053
|
119054
|
119080
|
119081
|
132663
|
132816
|
132817
|
132818
|
132827
|
132828
|
132829
|
148831
|
148832
|
148833
|
148834