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 |
<!--Bug 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 |
<!-- 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 |
<!-- 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> |
Lines 463-516
Link Here
|
463 |
|
455 |
|
464 |
by <span class="author"> |
456 |
by <span class="author"> |
465 |
<xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']"> |
457 |
<xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']"> |
|
|
458 |
<xsl:call-template name="chopPunctuation"> |
459 |
<xsl:with-param name="chopString"> |
460 |
<xsl:call-template name="subfieldSelect"> |
461 |
<xsl:with-param name="codes">abcdqt</xsl:with-param> |
462 |
</xsl:call-template> |
463 |
</xsl:with-param> |
464 |
<xsl:with-param name="punctuation"> |
465 |
<xsl:text>:,;/ </xsl:text> |
466 |
</xsl:with-param> |
467 |
</xsl:call-template> |
468 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
469 |
<span class="relatorcode"> |
470 |
<xsl:text> [</xsl:text> |
471 |
<xsl:choose> |
472 |
<xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> |
473 |
<xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> |
474 |
</xsl:choose> |
475 |
<xsl:text>]</xsl:text> |
476 |
</span> |
477 |
</xsl:if> |
466 |
<xsl:choose> |
478 |
<xsl:choose> |
467 |
<xsl:when test="position()=last()"> |
479 |
<!-- #13383 added separator with span --> |
468 |
<xsl:call-template name="nameABCQ"/>. |
480 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
469 |
</xsl:when> |
|
|
470 |
<xsl:otherwise> |
471 |
<xsl:call-template name="nameABCQ"/>; |
472 |
</xsl:otherwise> |
473 |
</xsl:choose> |
481 |
</xsl:choose> |
474 |
</xsl:for-each> |
482 |
</xsl:for-each> |
475 |
|
483 |
|
476 |
<xsl:for-each select="marc:datafield[(@tag=110 or @tag=710) and @ind1!='z']"> |
484 |
<xsl:for-each select="marc:datafield[(@tag=110 or @tag=710) and @ind1!='z']"> |
477 |
<xsl:choose> |
485 |
<xsl:choose> |
478 |
<xsl:when test="position()=1"> |
486 |
<xsl:when test="position()=1"> |
479 |
<xsl:text> -- </xsl:text> |
487 |
<xsl:text> -- </xsl:text> |
480 |
</xsl:when> |
488 |
</xsl:when> |
481 |
</xsl:choose> |
489 |
</xsl:choose> |
|
|
490 |
<xsl:call-template name="chopPunctuation"> |
491 |
<xsl:with-param name="chopString"> |
492 |
<xsl:call-template name="subfieldSelect"> |
493 |
<xsl:with-param name="codes">abcdqt</xsl:with-param> |
494 |
</xsl:call-template> |
495 |
</xsl:with-param> |
496 |
<xsl:with-param name="punctuation"> |
497 |
<xsl:text>:,;/ </xsl:text> |
498 |
</xsl:with-param> |
499 |
</xsl:call-template> |
500 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
501 |
<span class="relatorcode"> |
502 |
<xsl:text> [</xsl:text> |
503 |
<xsl:choose> |
504 |
<xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> |
505 |
<xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> |
506 |
</xsl:choose> |
507 |
<xsl:text>]</xsl:text> |
508 |
</span> |
509 |
</xsl:if> |
482 |
<xsl:choose> |
510 |
<xsl:choose> |
483 |
<xsl:when test="position()=last()"> |
511 |
<!-- #13383 added separator with span --> |
484 |
<xsl:call-template name="nameABCDN"/> |
512 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
485 |
</xsl:when> |
|
|
486 |
<xsl:otherwise> |
487 |
<xsl:call-template name="nameABCDN"/>; |
488 |
</xsl:otherwise> |
489 |
</xsl:choose> |
513 |
</xsl:choose> |
490 |
</xsl:for-each> |
514 |
</xsl:for-each> |
491 |
|
515 |
|
492 |
<xsl:for-each select="marc:datafield[(@tag=111 or @tag=711) and @ind1!='z']"> |
516 |
<xsl:for-each select="marc:datafield[(@tag=111 or @tag=711) and @ind1!='z']"> |
|
|
517 |
<xsl:if test="position()=1"> |
518 |
<xsl:text> -- </xsl:text> |
519 |
</xsl:if> |
520 |
<xsl:call-template name="chopPunctuation"> |
521 |
<xsl:with-param name="chopString"> |
522 |
<xsl:call-template name="subfieldSelect"> |
523 |
<xsl:with-param name="codes">abcdeqt</xsl:with-param> |
524 |
</xsl:call-template> |
525 |
</xsl:with-param> |
526 |
<xsl:with-param name="punctuation"> |
527 |
<xsl:text>:,;/ </xsl:text> |
528 |
</xsl:with-param> |
529 |
</xsl:call-template> |
530 |
<xsl:if test="marc:subfield[@code='j']"> |
531 |
<span class="relatorcode"> |
532 |
<xsl:text> [</xsl:text><xsl:value-of select="marc:subfield[@code='j']"/> |
533 |
<xsl:text>]</xsl:text> |
534 |
</span> |
535 |
</xsl:if> |
493 |
<xsl:choose> |
536 |
<xsl:choose> |
494 |
<xsl:when test="position()=1"> |
537 |
<!-- #13383 added separator with span --> |
495 |
<xsl:text> -- </xsl:text> |
538 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
496 |
</xsl:when> |
|
|
497 |
</xsl:choose> |
498 |
<xsl:choose> |
499 |
<xsl:when test="marc:subfield[@code='n']"> |
500 |
<xsl:text> </xsl:text> |
501 |
<xsl:call-template name="subfieldSelect"> |
502 |
<xsl:with-param name="codes">n</xsl:with-param> |
503 |
</xsl:call-template> |
504 |
<xsl:text> </xsl:text> |
505 |
</xsl:when> |
506 |
</xsl:choose> |
507 |
<xsl:choose> |
508 |
<xsl:when test="position()=last()"> |
509 |
<xsl:call-template name="nameACDEQ"/>. |
510 |
</xsl:when> |
511 |
<xsl:otherwise> |
512 |
<xsl:call-template name="nameACDEQ"/>; |
513 |
</xsl:otherwise> |
514 |
</xsl:choose> |
539 |
</xsl:choose> |
515 |
</xsl:for-each> |
540 |
</xsl:for-each> |
516 |
</span> |
541 |
</span> |
517 |
- |
|
|