Bugzilla – Attachment 128028 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.26 KB, created by
Marcel de Rooy
on 2021-11-26 08:53:11 UTC
(
hide
)
Description:
Bug 29556: MARC21slim2MODS.xsl broken by duplicate template name "part"
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-11-26 08:53:11 UTC
Size:
2.26 KB
patch
obsolete
>From e9fb303f7eec318ba533905bb512f15675f12050 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" >Content-Type: text/plain; charset=utf-8 > >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. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../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