Lines 577-655
Link Here
|
577 |
<xsl:value-of select="$partName" /> |
577 |
<xsl:value-of select="$partName" /> |
578 |
</xsl:if> |
578 |
</xsl:if> |
579 |
</xsl:template> |
579 |
</xsl:template> |
580 |
|
|
|
581 |
<xsl:template name="showComponentParts"> |
582 |
<!-- Component part records: Displaying title and author of component part records --> |
583 |
<xsl:if test="marc:componentPartRecords"> |
584 |
<xsl:variable name="ComponentPartQuery" select="marc:variables/marc:variable[@name='ComponentPartQuery']" /> |
585 |
<div class="results_summary componentPartRecordsContainer"> |
586 |
<h5>Component part records</h5> |
587 |
<ol class="componentParts"> |
588 |
<xsl:for-each select="marc:componentPartRecords/marc:record"> |
589 |
<li> |
590 |
<span class="componentPartRecord"> |
591 |
<span class="componentPartRecordTitle"> |
592 |
<a> |
593 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:datafield[@tag=999]/marc:subfield[@code='c']" /></xsl:attribute> |
594 |
<xsl:choose> |
595 |
<xsl:when test="marc:datafield[@tag=245]/marc:subfield[@code='a']"> |
596 |
<xsl:value-of select="substring-before( concat(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/'), '/')" /> |
597 |
</xsl:when> |
598 |
<xsl:when test="marc:datafield[@tag=240]/marc:subfield[@code='a']"> |
599 |
<xsl:for-each select="marc:datafield[@tag=240]"> |
600 |
<xsl:call-template name="chopPunctuation"> |
601 |
<xsl:with-param name="chopString"> |
602 |
<xsl:call-template name="subfieldSelect"> |
603 |
<xsl:with-param name="codes">amnp</xsl:with-param> |
604 |
</xsl:call-template> |
605 |
</xsl:with-param> |
606 |
</xsl:call-template> |
607 |
</xsl:for-each> |
608 |
</xsl:when> |
609 |
<xsl:when test="marc:datafield[@tag=130]/marc:subfield[@code='a']"> |
610 |
<xsl:for-each select="marc:datafield[@tag=130]"> |
611 |
<xsl:call-template name="chopPunctuation"> |
612 |
<xsl:with-param name="chopString"> |
613 |
<xsl:call-template name="subfieldSelect"> |
614 |
<xsl:with-param name="codes">amnp</xsl:with-param> |
615 |
</xsl:call-template> |
616 |
</xsl:with-param> |
617 |
</xsl:call-template> |
618 |
</xsl:for-each> |
619 |
</xsl:when> |
620 |
<xsl:otherwise> |
621 |
<xsl:text>[Record with no title statement]</xsl:text> |
622 |
</xsl:otherwise> |
623 |
</xsl:choose> |
624 |
</a> |
625 |
</span> |
626 |
<xsl:choose> |
627 |
<xsl:when test="marc:datafield[@tag=100]/marc:subfield[@code='a']"> |
628 |
- |
629 |
<span class="componentPartRecordAuthor"> |
630 |
<xsl:value-of select="marc:datafield[@tag=100]/marc:subfield[@code='a']" /> |
631 |
</span> |
632 |
</xsl:when> |
633 |
<xsl:when test="marc:datafield[@tag=110]/marc:subfield[@code='a']"> |
634 |
- |
635 |
<span class="componentPartRecordAuthor"> |
636 |
<xsl:value-of select="marc:datafield[@tag=110]/marc:subfield[@code='a']" /> |
637 |
</span> |
638 |
</xsl:when> |
639 |
</xsl:choose> |
640 |
</span> |
641 |
</li> |
642 |
</xsl:for-each> |
643 |
</ol> |
644 |
<xsl:choose> |
645 |
<xsl:when test="count(marc:componentPartRecords/marc:record) = 300"> |
646 |
<p>Only 300 results are shown: <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($ComponentPartQuery, true())"/></xsl:attribute>show all component parts</a></p> |
647 |
</xsl:when> |
648 |
</xsl:choose> |
649 |
</div> |
650 |
</xsl:if> |
651 |
</xsl:template> |
652 |
|
653 |
</xsl:stylesheet> |
580 |
</xsl:stylesheet> |
654 |
|
581 |
|
655 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
582 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |