View | Details | Raw Unified | Return to bug 29556
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl (-28 lines)
Lines 1470-1502 Link Here
1470
		</xsl:choose>
1470
		</xsl:choose>
1471
	</xsl:template>
1471
	</xsl:template>
1472
1472
1473
	<xsl:template name="part">
1474
		<xsl:variable name="partNumber">
1475
			<xsl:call-template name="specialSubfieldSelect">
1476
				<xsl:with-param name="axis">n</xsl:with-param>
1477
				<xsl:with-param name="anyCodes">n</xsl:with-param>
1478
				<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
1479
			</xsl:call-template>
1480
		</xsl:variable>
1481
		<xsl:variable name="partName">
1482
			<xsl:call-template name="specialSubfieldSelect">
1483
				<xsl:with-param name="axis">p</xsl:with-param>
1484
				<xsl:with-param name="anyCodes">p</xsl:with-param>
1485
				<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
1486
			</xsl:call-template>
1487
		</xsl:variable>
1488
		<xsl:if test="string-length(normalize-space($partNumber))">
1489
			<partNumber>
1490
				<xsl:value-of select="$partNumber"/>
1491
			</partNumber>
1492
		</xsl:if>
1493
		<xsl:if test="string-length(normalize-space($partName))">
1494
			<partName>
1495
				<xsl:value-of select="$partName"/>
1496
			</partName>
1497
		</xsl:if>
1498
	</xsl:template>
1499
1500
	<xsl:template name="relatedPart">
1473
	<xsl:template name="relatedPart">
1501
		<xsl:for-each select="marc:subfield[@code='n'][preceding-sibling::marc:subfield[@code='t']]">
1474
		<xsl:for-each select="marc:subfield[@code='n'][preceding-sibling::marc:subfield[@code='t']]">
1502
			<partNumber>
1475
			<partNumber>
1503
- 

Return to bug 29556