Bugzilla – Attachment 127933 Details for
Bug 29556
MARC21slim2MODS.xsl broken by duplicate template name "part"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29556: MARC21slim2MODS.xsl broken by duplicate template name "part"
Bug-29556-MARC21slim2MODSxsl-broken-by-duplicate-t.patch (text/plain), 2.12 KB, created by
Owen Leonard
on 2021-11-22 15:03:37 UTC
(
hide
)
Description:
Bug 29556: MARC21slim2MODS.xsl broken by duplicate template name "part"
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-11-22 15:03:37 UTC
Size:
2.12 KB
patch
obsolete
>From 4fe9b6403e0f41a55ad9f1f1be461067a8913827 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 19 Nov 2021 19:34:20 +0000 >Subject: [PATCH] Bug 29556: MARC21slim2MODS.xsl broken by duplicate template > name "part" > >This patch removes a redundant section from MARC21slim2MODS.xsl which >was breaking the option to use unAPI in the OPAC using MODS format. > >To test, apply the patch and view a record in the OPAC using unAPI, >e.g.: > >/cgi-bin/koha/unapi?id=koha:biblionumber:1&format=MODS > >You should see an XML file where previously there would have been an >error. >--- > .../prog/en/xslt/MARC21slim2MODS.xsl | 27 ------------------- > 1 file changed, 27 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl >index 814562ca6b..b37d9dd503 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl >@@ -1470,33 +1470,6 @@ > </xsl:choose> > </xsl:template> > >- <xsl:template name="part"> >- <xsl:variable name="partNumber"> >- <xsl:call-template name="specialSubfieldSelect"> >- <xsl:with-param name="axis">n</xsl:with-param> >- <xsl:with-param name="anyCodes">n</xsl:with-param> >- <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> >- </xsl:call-template> >- </xsl:variable> >- <xsl:variable name="partName"> >- <xsl:call-template name="specialSubfieldSelect"> >- <xsl:with-param name="axis">p</xsl:with-param> >- <xsl:with-param name="anyCodes">p</xsl:with-param> >- <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> >- </xsl:call-template> >- </xsl:variable> >- <xsl:if test="string-length(normalize-space($partNumber))"> >- <partNumber> >- <xsl:value-of select="$partNumber"/> >- </partNumber> >- </xsl:if> >- <xsl:if test="string-length(normalize-space($partName))"> >- <partName> >- <xsl:value-of select="$partName"/> >- </partName> >- </xsl:if> >- </xsl:template> >- > <xsl:template name="relatedPart"> > <xsl:for-each select="marc:subfield[@code='n'][preceding-sibling::marc:subfield[@code='t']]"> > <partNumber> >-- >2.20.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 29556
:
127933
|
128014
|
128028