|
Lines 415-451
Link Here
|
| 415 |
<xsl:attribute name="class">title</xsl:attribute> |
415 |
<xsl:attribute name="class">title</xsl:attribute> |
| 416 |
|
416 |
|
| 417 |
<xsl:if test="marc:datafield[@tag=245]"> |
417 |
<xsl:if test="marc:datafield[@tag=245]"> |
| 418 |
<xsl:for-each select="marc:datafield[@tag=245]"> |
418 |
<xsl:for-each select="marc:datafield[@tag=245]"> |
| 419 |
<xsl:variable name="title"> |
419 |
<xsl:call-template name="subfieldSelect"> |
| 420 |
<xsl:call-template name="subfieldSelect"> |
420 |
<xsl:with-param name="codes">a</xsl:with-param> |
| 421 |
<xsl:with-param name="codes">a</xsl:with-param> |
|
|
| 422 |
</xsl:call-template> |
| 423 |
<xsl:if test="marc:subfield[@code='h']"> |
| 424 |
<xsl:text> </xsl:text> |
| 425 |
<xsl:call-template name="subfieldSelect"> |
| 426 |
<xsl:with-param name="codes">h</xsl:with-param> |
| 427 |
</xsl:call-template> |
| 428 |
</xsl:if> |
| 429 |
<xsl:if test="marc:subfield[@code='b']"> |
| 430 |
<xsl:text> </xsl:text> |
| 431 |
<xsl:call-template name="subfieldSelect"> |
| 432 |
<xsl:with-param name="codes">b</xsl:with-param> |
| 433 |
</xsl:call-template> |
| 434 |
</xsl:if> |
| 435 |
<xsl:text> </xsl:text> |
| 436 |
<xsl:call-template name="subfieldSelect"> |
| 437 |
<xsl:with-param name="codes">fgknps</xsl:with-param> |
| 438 |
</xsl:call-template> |
| 439 |
</xsl:variable> |
| 440 |
<xsl:variable name="titleChop"> |
| 441 |
<xsl:call-template name="chopPunctuation"> |
| 442 |
<xsl:with-param name="chopString"> |
| 443 |
<xsl:value-of select="$title"/> |
| 444 |
</xsl:with-param> |
| 445 |
</xsl:call-template> |
421 |
</xsl:call-template> |
| 446 |
</xsl:variable> |
422 |
<xsl:text> </xsl:text> |
| 447 |
<xsl:value-of select="$titleChop"/> |
423 |
<!-- 13381 add additional subfields--> |
| 448 |
</xsl:for-each> |
424 |
<xsl:for-each select="marc:subfield[contains('bchknps', @code)]"> |
|
|
425 |
<xsl:choose> |
| 426 |
<xsl:when test="@code='h'"> |
| 427 |
<!-- 13381 Span class around subfield h so it can be suppressed via css --> |
| 428 |
<span class="title_medium"><xsl:apply-templates/> </span> |
| 429 |
</xsl:when> |
| 430 |
<xsl:when test="@code='c'"> |
| 431 |
<!-- 13381 Span class around subfield c so it can be suppressed via css --> |
| 432 |
<span class="title_resp_stmt"><xsl:apply-templates/> </span> |
| 433 |
</xsl:when> |
| 434 |
<xsl:otherwise> |
| 435 |
<xsl:apply-templates/> |
| 436 |
<xsl:text> </xsl:text> |
| 437 |
</xsl:otherwise> |
| 438 |
</xsl:choose> |
| 439 |
</xsl:for-each> |
| 440 |
</xsl:for-each> |
| 449 |
</xsl:if> |
441 |
</xsl:if> |
| 450 |
</a> |
442 |
</a> |
| 451 |
<p> |
443 |
<p> |
| 452 |
- |
|
|