|
Lines 1086-1106
Link Here
|
| 1086 |
<span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> |
1086 |
<span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> |
| 1087 |
<xsl:for-each select="marc:datafield[@tag=787]"> |
1087 |
<xsl:for-each select="marc:datafield[@tag=787]"> |
| 1088 |
<span class="other_relationship_entry"> |
1088 |
<span class="other_relationship_entry"> |
| 1089 |
<xsl:variable name="f787"> |
|
|
| 1090 |
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> |
| 1091 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1092 |
</xsl:call-template></xsl:with-param></xsl:call-template> |
| 1093 |
</xsl:variable> |
| 1094 |
<xsl:if test="marc:subfield[@code='i']"> |
1089 |
<xsl:if test="marc:subfield[@code='i']"> |
| 1095 |
<xsl:call-template name="subfieldSelect"> |
1090 |
<xsl:call-template name="subfieldSelect"> |
| 1096 |
<xsl:with-param name="codes">i</xsl:with-param> |
1091 |
<xsl:with-param name="codes">i</xsl:with-param> |
| 1097 |
</xsl:call-template> |
1092 |
</xsl:call-template> |
| 1098 |
<xsl:text>: </xsl:text> |
1093 |
<xsl:text> </xsl:text> |
| 1099 |
</xsl:if> |
1094 |
</xsl:if> |
| 1100 |
<xsl:choose> |
1095 |
<xsl:choose> |
| 1101 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1096 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 1102 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-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> |
1097 |
<a> |
| 1103 |
<xsl:value-of select="$f787"/> |
1098 |
<xsl:attribute name="href">/cgi-bin/koha/opac-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> |
|
|
1099 |
<xsl:call-template name="subfieldSelect"> |
| 1100 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1101 |
</xsl:call-template> |
| 1104 |
</a> |
1102 |
</a> |
| 1105 |
</xsl:when> |
1103 |
</xsl:when> |
| 1106 |
<xsl:otherwise> |
1104 |
<xsl:otherwise> |
|
Lines 1121-1129
Link Here
|
| 1121 |
</xsl:if> |
1119 |
</xsl:if> |
| 1122 |
</xsl:variable> |
1120 |
</xsl:variable> |
| 1123 |
<a> |
1121 |
<a> |
| 1124 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /> |
1122 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> |
| 1125 |
</xsl:attribute> |
1123 |
<xsl:call-template name="subfieldSelect"> |
| 1126 |
<xsl:value-of select="$f787"/> |
1124 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
|
|
1125 |
</xsl:call-template> |
| 1127 |
</a> |
1126 |
</a> |
| 1128 |
</xsl:otherwise> |
1127 |
</xsl:otherwise> |
| 1129 |
</xsl:choose> |
1128 |
</xsl:choose> |
|
Lines 1504-1528
Link Here
|
| 1504 |
<xsl:if test="marc:datafield[@tag=775]"> |
1503 |
<xsl:if test="marc:datafield[@tag=775]"> |
| 1505 |
<span class="results_summary other_editions"><span class="label">Other editions: </span> |
1504 |
<span class="results_summary other_editions"><span class="label">Other editions: </span> |
| 1506 |
<xsl:for-each select="marc:datafield[@tag=775]"> |
1505 |
<xsl:for-each select="marc:datafield[@tag=775]"> |
| 1507 |
<xsl:variable name="f775"> |
1506 |
|
| 1508 |
<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> |
1507 |
<xsl:variable name="relation_query"> |
| 1509 |
<xsl:with-param name="codes">t</xsl:with-param> |
1508 |
<xsl:text>ti,phr:(</xsl:text> |
| 1510 |
</xsl:call-template></xsl:with-param></xsl:call-template> |
1509 |
<xsl:call-template name="quote_search_term"> |
|
|
1510 |
<xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> |
| 1511 |
</xsl:call-template> |
| 1512 |
<xsl:text>)</xsl:text> |
| 1513 |
<xsl:if test="marc:subfield[@code='a']"> |
| 1514 |
<xsl:text> AND au:(</xsl:text> |
| 1515 |
<xsl:call-template name="quote_search_term"> |
| 1516 |
<xsl:with-param name="term"> |
| 1517 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
| 1518 |
</xsl:with-param> |
| 1519 |
</xsl:call-template> |
| 1520 |
<xsl:text>)</xsl:text> |
| 1521 |
</xsl:if> |
| 1511 |
</xsl:variable> |
1522 |
</xsl:variable> |
|
|
1523 |
|
| 1512 |
<xsl:if test="marc:subfield[@code='i']"> |
1524 |
<xsl:if test="marc:subfield[@code='i']"> |
| 1513 |
<xsl:call-template name="subfieldSelect"> |
1525 |
<xsl:call-template name="subfieldSelect"> |
| 1514 |
<xsl:with-param name="codes">i</xsl:with-param> |
1526 |
<xsl:with-param name="codes">i</xsl:with-param> |
| 1515 |
</xsl:call-template> |
1527 |
</xsl:call-template> |
| 1516 |
<xsl:text>: </xsl:text> |
1528 |
<xsl:text> </xsl:text> |
| 1517 |
</xsl:if> |
1529 |
</xsl:if> |
| 1518 |
<a> |
1530 |
<a> |
| 1519 |
<xsl:choose> |
1531 |
<xsl:choose> |
| 1520 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1532 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 1521 |
<xsl:attribute name="href">/cgi-bin/koha/opac-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> |
1533 |
<xsl:attribute name="href">/cgi-bin/koha/opac-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> |
| 1522 |
</xsl:when> |
1534 |
</xsl:when> |
| 1523 |
<xsl:otherwise> |
1535 |
<xsl:otherwise> |
| 1524 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f775, '()', ''), true())"/></xsl:attribute> |
1536 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> |
| 1525 |
</xsl:otherwise> |
1537 |
</xsl:otherwise> |
| 1526 |
</xsl:choose> |
1538 |
</xsl:choose> |
| 1527 |
<xsl:call-template name="subfieldSelect"> |
1539 |
<xsl:call-template name="subfieldSelect"> |
| 1528 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
1540 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
|
Lines 1576-1596
Link Here
|
| 1576 |
</span> |
1588 |
</span> |
| 1577 |
</xsl:if> |
1589 |
</xsl:if> |
| 1578 |
|
1590 |
|
| 1579 |
<xsl:variable name="f780"> |
1591 |
<xsl:variable name="relation_query"> |
| 1580 |
<xsl:call-template name="subfieldSelect"> |
1592 |
<xsl:text>ti,phr:(</xsl:text> |
| 1581 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
1593 |
<xsl:call-template name="quote_search_term"> |
|
|
1594 |
<xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> |
| 1582 |
</xsl:call-template> |
1595 |
</xsl:call-template> |
|
|
1596 |
<xsl:text>)</xsl:text> |
| 1597 |
<xsl:if test="marc:subfield[@code='a']"> |
| 1598 |
<xsl:text> AND au:(</xsl:text> |
| 1599 |
<xsl:call-template name="quote_search_term"> |
| 1600 |
<xsl:with-param name="term"> |
| 1601 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
| 1602 |
</xsl:with-param> |
| 1603 |
</xsl:call-template> |
| 1604 |
<xsl:text>)</xsl:text> |
| 1605 |
</xsl:if> |
| 1583 |
</xsl:variable> |
1606 |
</xsl:variable> |
| 1584 |
|
1607 |
|
| 1585 |
<xsl:choose> |
1608 |
<xsl:choose> |
| 1586 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1609 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 1587 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-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> |
1610 |
<a> |
| 1588 |
<xsl:value-of select="$f780"/> |
1611 |
<xsl:attribute name="href">/cgi-bin/koha/opac-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> |
|
|
1612 |
<xsl:call-template name="subfieldSelect"> |
| 1613 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1614 |
</xsl:call-template> |
| 1589 |
</a> |
1615 |
</a> |
| 1590 |
</xsl:when> |
1616 |
</xsl:when> |
| 1591 |
<xsl:otherwise> |
1617 |
<xsl:otherwise> |
| 1592 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute> |
1618 |
<a> |
| 1593 |
<xsl:value-of select="$f780"/> |
1619 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> |
|
|
1620 |
<xsl:call-template name="subfieldSelect"> |
| 1621 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1622 |
</xsl:call-template> |
| 1594 |
</a> |
1623 |
</a> |
| 1595 |
</xsl:otherwise> |
1624 |
</xsl:otherwise> |
| 1596 |
</xsl:choose> |
1625 |
</xsl:choose> |
|
Lines 1647-1667
Link Here
|
| 1647 |
</span> |
1676 |
</span> |
| 1648 |
</xsl:if> |
1677 |
</xsl:if> |
| 1649 |
|
1678 |
|
| 1650 |
<xsl:variable name="f785"> |
1679 |
<xsl:variable name="relation_query"> |
| 1651 |
<xsl:call-template name="subfieldSelect"> |
1680 |
<xsl:text>ti,phr:(</xsl:text> |
| 1652 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
1681 |
<xsl:call-template name="quote_search_term"> |
|
|
1682 |
<xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> |
| 1653 |
</xsl:call-template> |
1683 |
</xsl:call-template> |
|
|
1684 |
<xsl:text>)</xsl:text> |
| 1685 |
<xsl:if test="marc:subfield[@code='a']"> |
| 1686 |
<xsl:text> AND au:(</xsl:text> |
| 1687 |
<xsl:call-template name="quote_search_term"> |
| 1688 |
<xsl:with-param name="term"> |
| 1689 |
<xsl:value-of select="marc:subfield[@code='a']"/> |
| 1690 |
</xsl:with-param> |
| 1691 |
</xsl:call-template> |
| 1692 |
<xsl:text>)</xsl:text> |
| 1693 |
</xsl:if> |
| 1654 |
</xsl:variable> |
1694 |
</xsl:variable> |
| 1655 |
|
1695 |
|
| 1656 |
<xsl:choose> |
1696 |
<xsl:choose> |
| 1657 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1697 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
| 1658 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-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> |
1698 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-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> |
| 1659 |
<xsl:value-of select="$f785"/> |
1699 |
<xsl:call-template name="subfieldSelect"> |
|
|
1700 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1701 |
</xsl:call-template> |
| 1660 |
</a> |
1702 |
</a> |
| 1661 |
</xsl:when> |
1703 |
</xsl:when> |
| 1662 |
<xsl:otherwise> |
1704 |
<xsl:otherwise> |
| 1663 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute> |
1705 |
<a> |
| 1664 |
<xsl:value-of select="$f785"/> |
1706 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> |
|
|
1707 |
<xsl:call-template name="subfieldSelect"> |
| 1708 |
<xsl:with-param name="codes">a_t</xsl:with-param> |
| 1709 |
</xsl:call-template> |
| 1665 |
</a> |
1710 |
</a> |
| 1666 |
</xsl:otherwise> |
1711 |
</xsl:otherwise> |
| 1667 |
</xsl:choose> |
1712 |
</xsl:choose> |
| 1668 |
- |
|
|