|
Lines 6-12
Link Here
|
| 6 |
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:marc="http://www.loc.gov/MARC21/slim" |
6 |
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:marc="http://www.loc.gov/MARC21/slim" |
| 7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc"> |
7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc"> |
| 8 |
|
8 |
|
| 9 |
<xsl:include href="http://www.loc.gov/marcxml/xslt/MARC21slimUtils.xsl"/> |
9 |
<xsl:include href="MARC21slimUtils.xsl"/> |
| 10 |
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
10 |
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
| 11 |
<xsl:strip-space elements="*"/> |
11 |
<xsl:strip-space elements="*"/> |
| 12 |
<!-- Stylesheet copyright (c) 2011 Library of Congress |
12 |
<!-- Stylesheet copyright (c) 2011 Library of Congress |
|
Lines 320-356
Link Here
|
| 320 |
</xsl:template> |
320 |
</xsl:template> |
| 321 |
--> |
321 |
--> |
| 322 |
|
322 |
|
| 323 |
<xsl:template name="part"> |
|
|
| 324 |
<xsl:variable name="partNumber"> |
| 325 |
<xsl:call-template name="specialSubfieldSelect"> |
| 326 |
<xsl:with-param name="axis">n</xsl:with-param> |
| 327 |
<xsl:with-param name="anyCodes">n</xsl:with-param> |
| 328 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 329 |
</xsl:call-template> |
| 330 |
</xsl:variable> |
| 331 |
<xsl:variable name="partName"> |
| 332 |
<xsl:call-template name="specialSubfieldSelect"> |
| 333 |
<xsl:with-param name="axis">p</xsl:with-param> |
| 334 |
<xsl:with-param name="anyCodes">p</xsl:with-param> |
| 335 |
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param> |
| 336 |
</xsl:call-template> |
| 337 |
</xsl:variable> |
| 338 |
<xsl:if test="string-length(normalize-space($partNumber))"> |
| 339 |
<mads:partNumber> |
| 340 |
<xsl:call-template name="chopPunctuation"> |
| 341 |
<xsl:with-param name="chopString" select="$partNumber"/> |
| 342 |
</xsl:call-template> |
| 343 |
</mads:partNumber> |
| 344 |
</xsl:if> |
| 345 |
<xsl:if test="string-length(normalize-space($partName))"> |
| 346 |
<mads:partName> |
| 347 |
<xsl:call-template name="chopPunctuation"> |
| 348 |
<xsl:with-param name="chopString" select="$partName"/> |
| 349 |
</xsl:call-template> |
| 350 |
</mads:partName> |
| 351 |
</xsl:if> |
| 352 |
</xsl:template> |
| 353 |
|
| 354 |
<xsl:template name="nameABCDN"> |
323 |
<xsl:template name="nameABCDN"> |
| 355 |
<xsl:for-each select="marc:subfield[@code='a']"> |
324 |
<xsl:for-each select="marc:subfield[@code='a']"> |
| 356 |
<mads:namePart> |
325 |
<mads:namePart> |
| 357 |
- |
|
|