|
Lines 1435-1440
Link Here
|
| 1435 |
</xsl:for-each> |
1435 |
</xsl:for-each> |
| 1436 |
</xsl:if> |
1436 |
</xsl:if> |
| 1437 |
|
1437 |
|
|
|
1438 |
<!-- 787 Other Relationship Entry --> |
| 1439 |
<xsl:if test="marc:datafield[@tag=787]"> |
| 1440 |
<span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> |
| 1441 |
<xsl:variable name="f580"> |
| 1442 |
<xsl:text></xsl:text> |
| 1443 |
<xsl:if test="marc:datafield[@tag=580]"> |
| 1444 |
<xsl:for-each select="marc:datafield[@tag=580]"> |
| 1445 |
<xsl:call-template name="subfieldSelect"> |
| 1446 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1447 |
</xsl:call-template> |
| 1448 |
</xsl:for-each> |
| 1449 |
</xsl:if> |
| 1450 |
</xsl:variable> |
| 1451 |
<xsl:for-each select="marc:datafield[@tag=787]"> |
| 1452 |
<xsl:variable name="f787"> |
| 1453 |
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> |
| 1454 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1455 |
</xsl:call-template></xsl:with-param></xsl:call-template> |
| 1456 |
</xsl:variable> |
| 1457 |
<xsl:if test="marc:subfield[@code='i']"> |
| 1458 |
<xsl:call-template name="subfieldSelect"> |
| 1459 |
<xsl:with-param name="codes">i</xsl:with-param> |
| 1460 |
</xsl:call-template> |
| 1461 |
<xsl:text>: </xsl:text> |
| 1462 |
</xsl:if> |
| 1463 |
<a> |
| 1464 |
<xsl:choose> |
| 1465 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 1466 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute> |
| 1467 |
</xsl:when> |
| 1468 |
<xsl:otherwise> |
| 1469 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f787, '()', ''), true())"/></xsl:attribute> |
| 1470 |
</xsl:otherwise> |
| 1471 |
</xsl:choose> |
| 1472 |
<xsl:choose> |
| 1473 |
<xsl:when test="$f580 != ''"> |
| 1474 |
<xsl:value-of select="$f580"/> |
| 1475 |
</xsl:when> |
| 1476 |
<xsl:otherwise> |
| 1477 |
<xsl:call-template name="subfieldSelect"> |
| 1478 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1479 |
</xsl:call-template> |
| 1480 |
</xsl:otherwise> |
| 1481 |
</xsl:choose> |
| 1482 |
</a> |
| 1483 |
<xsl:choose> |
| 1484 |
<xsl:when test="position()=last()"></xsl:when> |
| 1485 |
<xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise> |
| 1486 |
</xsl:choose> |
| 1487 |
</xsl:for-each> |
| 1488 |
</span> |
| 1489 |
</xsl:if> |
| 1490 |
|
| 1438 |
<!-- Indicate if record is suppressed in OPAC --> |
1491 |
<!-- Indicate if record is suppressed in OPAC --> |
| 1439 |
<xsl:choose> |
1492 |
<xsl:choose> |
| 1440 |
<xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']"> |
1493 |
<xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']"> |
| 1441 |
- |
|
|