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