Bugzilla – Attachment 129167 Details for
Bug 18540
koha-indexdefs-to-zebra.xsl introduces MARC21 stuff into UNIMARC xslts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18540: Update MARC21 biblio XSL file
Bug-18540-Update-MARC21-biblio-XSL-file.patch (text/plain), 2.92 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-01-07 13:58:21 UTC
(
hide
)
Description:
Bug 18540: Update MARC21 biblio XSL file
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-01-07 13:58:21 UTC
Size:
2.92 KB
patch
obsolete
>From 008961f2e612b9df8246d6368982ef79348728a7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 7 Jan 2022 10:54:34 -0300 >Subject: [PATCH] Bug 18540: Update MARC21 biblio XSL file > >I ran the xsltproc on both MARC21 and UNIMARC files (biblios and >authorities). With my follow-up the only changed one is this one. > >I skipped NORMARC as it is supposed to be removed by now (so unused in >Norway). > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >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 0b689ca6e2..626c44c5b3 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -17,7 +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="text()" mode="index_sort_title"/> > <xslo:template match="/"> > <xslo:if test="marc:collection"> > <collection> >@@ -43,7 +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"/> >+ <xslo:apply-templates mode="index_sort_title"/> > </z:record> > </xslo:template> > <xslo:template match="marc:leader"> >@@ -2688,12 +2688,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:if> > </xslo:template> >- <xslo:template mode="index_all" match="text()"> >- <z:index name="Any:w Any:p"> >- <xslo:value-of select="."/> >- </z:index> >- </xslo:template> >- <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> >+ <xslo:template mode="index_sort_title" match="marc:datafield[@tag='245']"> > <xslo:variable name="chop"> > <xslo:choose> > <xslo:when test="not(number(@ind2))">0</xslo:when> >@@ -2706,6 +2701,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> > </z:index> > </xslo:template> >+ <xslo:template mode="index_all" match="text()"> >+ <z:index name="Any:w Any:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:template> > <xslo:template name="chopPunctuation"> > <xslo:param name="chopString"/> > <xslo:variable name="length" select="string-length($chopString)"/> >-- >2.34.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 18540
:
120943
|
128724
|
129165
|
129166
| 129167