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:for-each select="marc:datafield[@tag=580]"> |
1442 |
<span class="linking_complexity_note"> |
1443 |
<xsl:call-template name="subfieldSelect"> |
1444 |
<xsl:with-param name="codes">a</xsl:with-param> |
1445 |
</xsl:call-template> |
1446 |
<xsl:text> </xsl:text> |
1447 |
</span> |
1448 |
</xsl:for-each> |
1449 |
<xsl:for-each select="marc:datafield[@tag=787]"> |
1450 |
<span class="other_relationship_entry"> |
1451 |
<xsl:variable name="f787"> |
1452 |
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> |
1453 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
1454 |
</xsl:call-template></xsl:with-param></xsl:call-template> |
1455 |
</xsl:variable> |
1456 |
<xsl:if test="marc:subfield[@code='i']"> |
1457 |
<xsl:call-template name="subfieldSelect"> |
1458 |
<xsl:with-param name="codes">i</xsl:with-param> |
1459 |
</xsl:call-template> |
1460 |
<xsl:text>: </xsl:text> |
1461 |
</xsl:if> |
1462 |
<xsl:choose> |
1463 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1464 |
<a><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> |
1465 |
<xsl:value-of select="$f787"/> |
1466 |
</a> |
1467 |
</xsl:when> |
1468 |
<xsl:otherwise> |
1469 |
<xsl:variable name="relation_query"> |
1470 |
<xsl:text>ti,phr:(</xsl:text> |
1471 |
<xsl:call-template name="quote_search_term"> |
1472 |
<xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> |
1473 |
</xsl:call-template> |
1474 |
<xsl:text>)</xsl:text> |
1475 |
<xsl:if test="marc:subfield[@code='a']"> |
1476 |
<xsl:text> AND au:(</xsl:text> |
1477 |
<xsl:call-template name="quote_search_term"> |
1478 |
<xsl:with-param name="term"> |
1479 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
1480 |
</xsl:with-param> |
1481 |
</xsl:call-template> |
1482 |
<xsl:text>)</xsl:text> |
1483 |
</xsl:if> |
1484 |
</xsl:variable> |
1485 |
<a> |
1486 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /> |
1487 |
</xsl:attribute> |
1488 |
<xsl:value-of select="$f787"/> |
1489 |
</a> |
1490 |
</xsl:otherwise> |
1491 |
</xsl:choose> |
1492 |
<xsl:choose> |
1493 |
<xsl:when test="position()=last()"></xsl:when> |
1494 |
<xsl:otherwise><span class="separator"><xsl:text>; </xsl:text></span></xsl:otherwise> |
1495 |
</xsl:choose> |
1496 |
</span> |
1497 |
</xsl:for-each> |
1498 |
</span> |
1499 |
</xsl:if> |
1500 |
|
1438 |
<!-- Indicate if record is suppressed in OPAC --> |
1501 |
<!-- Indicate if record is suppressed in OPAC --> |
1439 |
<xsl:choose> |
1502 |
<xsl:choose> |
1440 |
<xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']"> |
1503 |
<xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']"> |
1441 |
- |
|
|