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. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
11e2cbde2a
commit
ecaf4f418e
1 changed files with 0 additions and 27 deletions
|
@ -1470,33 +1470,6 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</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:template name="relatedPart">
|
||||||
<xsl:for-each select="marc:subfield[@code='n'][preceding-sibling::marc:subfield[@code='t']]">
|
<xsl:for-each select="marc:subfield[@code='n'][preceding-sibling::marc:subfield[@code='t']]">
|
||||||
<partNumber>
|
<partNumber>
|
||||||
|
|
Loading…
Reference in a new issue