| Lines 1094-1114
          
      
      
        Link Here | 
        
          | 1094 |         <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> | 1094 |         <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span> | 
        
          | 1095 |         <xsl:for-each select="marc:datafield[@tag=787]"> | 1095 |         <xsl:for-each select="marc:datafield[@tag=787]"> | 
        
          | 1096 |             <span class="other_relationship_entry"> | 1096 |             <span class="other_relationship_entry"> | 
            
              | 1097 |                 <xsl:variable name="f787"> |  |  | 
            
              | 1098 |                     <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> | 
            
              | 1099 |                     <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1100 |                     </xsl:call-template></xsl:with-param></xsl:call-template> | 
            
              | 1101 |                 </xsl:variable> | 
        
          | 1102 |                 <xsl:if test="marc:subfield[@code='i']"> | 1097 |                 <xsl:if test="marc:subfield[@code='i']"> | 
        
          | 1103 |                     <xsl:call-template name="subfieldSelect"> | 1098 |                     <xsl:call-template name="subfieldSelect"> | 
        
          | 1104 |                         <xsl:with-param name="codes">i</xsl:with-param> | 1099 |                         <xsl:with-param name="codes">i</xsl:with-param> | 
        
          | 1105 |                     </xsl:call-template> | 1100 |                     </xsl:call-template> | 
          
            
              | 1106 |                     <xsl:text>: </xsl:text> | 1101 |                     <xsl:text> </xsl:text> | 
        
          | 1107 |                 </xsl:if> | 1102 |                 </xsl:if> | 
        
          | 1108 |                 <xsl:choose> | 1103 |                 <xsl:choose> | 
        
          | 1109 |                 <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 1104 |                 <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 
          
            
              | 1110 |                     <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> | 1105 |                     <a> | 
            
              | 1111 |                         <xsl:value-of select="$f787"/> | 1106 |                         <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> | 
            
              |  |  | 1107 |                         <xsl:call-template name="subfieldSelect"> | 
            
              | 1108 |                             <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1109 |                         </xsl:call-template> | 
        
          | 1112 |                     </a> | 1110 |                     </a> | 
        
          | 1113 |                 </xsl:when> | 1111 |                 </xsl:when> | 
        
          | 1114 |                 <xsl:otherwise> | 1112 |                 <xsl:otherwise> | 
  
    | Lines 1129-1137
          
      
      
        Link Here | 
        
          | 1129 |                         </xsl:if> | 1127 |                         </xsl:if> | 
        
          | 1130 |                     </xsl:variable> | 1128 |                     </xsl:variable> | 
        
          | 1131 |                     <a> | 1129 |                     <a> | 
          
            
              | 1132 |                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /> | 1130 |                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> | 
            
              | 1133 |                     </xsl:attribute> | 1131 |                     <xsl:call-template name="subfieldSelect"> | 
            
              | 1134 |                         <xsl:value-of select="$f787"/> | 1132 |                         <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              |  |  | 1133 |                     </xsl:call-template> | 
        
          | 1135 |                     </a> | 1134 |                     </a> | 
        
          | 1136 |                 </xsl:otherwise> | 1135 |                 </xsl:otherwise> | 
        
          | 1137 |                 </xsl:choose> | 1136 |                 </xsl:choose> | 
  
    | Lines 1532-1556
          
      
      
        Link Here | 
        
          | 1532 |         <xsl:if test="marc:datafield[@tag=775]"> | 1531 |         <xsl:if test="marc:datafield[@tag=775]"> | 
        
          | 1533 |         <span class="results_summary other_editions"><span class="label">Other editions: </span> | 1532 |         <span class="results_summary other_editions"><span class="label">Other editions: </span> | 
        
          | 1534 |         <xsl:for-each select="marc:datafield[@tag=775]"> | 1533 |         <xsl:for-each select="marc:datafield[@tag=775]"> | 
          
            
              | 1535 |             <xsl:variable name="f775"> | 1534 |  | 
            
              | 1536 |                 <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> | 1535 |             <xsl:variable name="relation_query"> | 
            
              | 1537 |                 <xsl:with-param name="codes">a_t</xsl:with-param> | 1536 |                 <xsl:text>ti,phr:(</xsl:text> | 
            
              | 1538 |                 </xsl:call-template></xsl:with-param></xsl:call-template> | 1537 |                 <xsl:call-template name="quote_search_term"> | 
            
              |  |  | 1538 |                     <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> | 
            
              | 1539 |                 </xsl:call-template> | 
            
              | 1540 |                 <xsl:text>)</xsl:text> | 
            
              | 1541 |                 <xsl:if test="marc:subfield[@code='a']"> | 
            
              | 1542 |                     <xsl:text> AND au:(</xsl:text> | 
            
              | 1543 |                     <xsl:call-template name="quote_search_term"> | 
            
              | 1544 |                         <xsl:with-param name="term"> | 
            
              | 1545 |                             <xsl:value-of select="marc:subfield[@code='a']"/> | 
            
              | 1546 |                         </xsl:with-param> | 
            
              | 1547 |                     </xsl:call-template> | 
            
              | 1548 |                     <xsl:text>)</xsl:text> | 
            
              | 1549 |                 </xsl:if> | 
        
          | 1539 |             </xsl:variable> | 1550 |             </xsl:variable> | 
            
              |  |  | 1551 |  | 
        
          | 1540 |             <xsl:if test="marc:subfield[@code='i']"> | 1552 |             <xsl:if test="marc:subfield[@code='i']"> | 
        
          | 1541 |                 <xsl:call-template name="subfieldSelect"> | 1553 |                 <xsl:call-template name="subfieldSelect"> | 
        
          | 1542 |                     <xsl:with-param name="codes">i</xsl:with-param> | 1554 |                     <xsl:with-param name="codes">i</xsl:with-param> | 
        
          | 1543 |                 </xsl:call-template> | 1555 |                 </xsl:call-template> | 
          
            
              | 1544 |                 <xsl:text>: </xsl:text> | 1556 |                 <xsl:text> </xsl:text> | 
        
          | 1545 |             </xsl:if> | 1557 |             </xsl:if> | 
        
          | 1546 |             <a> | 1558 |             <a> | 
        
          | 1547 |             <xsl:choose> | 1559 |             <xsl:choose> | 
          
            
              | 1548 |             <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 1560 |                 <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 
            
              | 1549 |                 <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> | 1561 |                     <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> | 
            
              | 1550 |             </xsl:when> | 1562 |                 </xsl:when> | 
            
              | 1551 |             <xsl:otherwise> | 1563 |                 <xsl:otherwise> | 
            
              | 1552 |                 <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> | 1564 |                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> | 
            
              | 1553 |             </xsl:otherwise> | 1565 |                 </xsl:otherwise> | 
        
          | 1554 |             </xsl:choose> | 1566 |             </xsl:choose> | 
        
          | 1555 |             <xsl:call-template name="subfieldSelect"> | 1567 |             <xsl:call-template name="subfieldSelect"> | 
        
          | 1556 |                 <xsl:with-param name="codes">a_t</xsl:with-param> | 1568 |                 <xsl:with-param name="codes">a_t</xsl:with-param> | 
  
    | Lines 1604-1624
          
      
      
        Link Here | 
        
          | 1604 |                             </span> | 1616 |                             </span> | 
        
          | 1605 |                         </xsl:if> | 1617 |                         </xsl:if> | 
        
          | 1606 |  | 1618 |  | 
          
            
              | 1607 |                         <xsl:variable name="f780"> | 1619 |                         <xsl:variable name="relation_query"> | 
            
              | 1608 |                             <xsl:call-template name="subfieldSelect"> | 1620 |                             <xsl:text>ti,phr:(</xsl:text> | 
            
              | 1609 |                                 <xsl:with-param name="codes">a_t</xsl:with-param> | 1621 |                             <xsl:call-template name="quote_search_term"> | 
            
              |  |  | 1622 |                                 <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> | 
        
          | 1610 |                             </xsl:call-template> | 1623 |                             </xsl:call-template> | 
            
              |  |  | 1624 |                             <xsl:text>)</xsl:text> | 
            
              | 1625 |                             <xsl:if test="marc:subfield[@code='a']"> | 
            
              | 1626 |                                 <xsl:text> AND au:(</xsl:text> | 
            
              | 1627 |                                 <xsl:call-template name="quote_search_term"> | 
            
              | 1628 |                                     <xsl:with-param name="term"> | 
            
              | 1629 |                                         <xsl:value-of select="marc:subfield[@code='a']"/> | 
            
              | 1630 |                                     </xsl:with-param> | 
            
              | 1631 |                                 </xsl:call-template> | 
            
              | 1632 |                                 <xsl:text>)</xsl:text> | 
            
              | 1633 |                             </xsl:if> | 
        
          | 1611 |                         </xsl:variable> | 1634 |                         </xsl:variable> | 
        
          | 1612 |  | 1635 |  | 
        
          | 1613 |                         <xsl:choose> | 1636 |                         <xsl:choose> | 
        
          | 1614 |                             <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 1637 |                             <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 
          
            
              | 1615 |                                 <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> | 1638 |                                 <a> | 
            
              | 1616 |                                     <xsl:value-of select="$f780"/> | 1639 |                                     <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> | 
            
              |  |  | 1640 |                                     <xsl:call-template name="subfieldSelect"> | 
            
              | 1641 |                                         <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1642 |                                     </xsl:call-template> | 
        
          | 1617 |                                 </a> | 1643 |                                 </a> | 
        
          | 1618 |                             </xsl:when> | 1644 |                             </xsl:when> | 
        
          | 1619 |                             <xsl:otherwise> | 1645 |                             <xsl:otherwise> | 
          
            
              | 1620 |                                 <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> | 1646 |                                 <a> | 
            
              | 1621 |                                     <xsl:value-of select="$f780"/> | 1647 |                                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> | 
            
              |  |  | 1648 |                                     <xsl:call-template name="subfieldSelect"> | 
            
              | 1649 |                                         <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1650 |                                     </xsl:call-template> | 
        
          | 1622 |                                 </a> | 1651 |                                 </a> | 
        
          | 1623 |                             </xsl:otherwise> | 1652 |                             </xsl:otherwise> | 
        
          | 1624 |                         </xsl:choose> | 1653 |                         </xsl:choose> | 
  
    | Lines 1675-1695
          
      
      
        Link Here | 
        
          | 1675 |                             </span> | 1704 |                             </span> | 
        
          | 1676 |                         </xsl:if> | 1705 |                         </xsl:if> | 
        
          | 1677 |  | 1706 |  | 
          
            
              | 1678 |                         <xsl:variable name="f785"> | 1707 |                         <xsl:variable name="relation_query"> | 
            
              | 1679 |                             <xsl:call-template name="subfieldSelect"> | 1708 |                             <xsl:text>ti,phr:(</xsl:text> | 
            
              | 1680 |                                 <xsl:with-param name="codes">a_t</xsl:with-param> | 1709 |                             <xsl:call-template name="quote_search_term"> | 
            
              |  |  | 1710 |                                 <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param> | 
        
          | 1681 |                             </xsl:call-template> | 1711 |                             </xsl:call-template> | 
            
              |  |  | 1712 |                             <xsl:text>)</xsl:text> | 
            
              | 1713 |                             <xsl:if test="marc:subfield[@code='a']"> | 
            
              | 1714 |                                 <xsl:text> AND au:(</xsl:text> | 
            
              | 1715 |                                 <xsl:call-template name="quote_search_term"> | 
            
              | 1716 |                                     <xsl:with-param name="term"> | 
            
              | 1717 |                                         <xsl:value-of select="marc:subfield[@code='a']"/> | 
            
              | 1718 |                                     </xsl:with-param> | 
            
              | 1719 |                                 </xsl:call-template> | 
            
              | 1720 |                                 <xsl:text>)</xsl:text> | 
            
              | 1721 |                             </xsl:if> | 
        
          | 1682 |                         </xsl:variable> | 1722 |                         </xsl:variable> | 
        
          | 1683 |  | 1723 |  | 
        
          | 1684 |                         <xsl:choose> | 1724 |                         <xsl:choose> | 
        
          | 1685 |                             <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 1725 |                             <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> | 
        
          | 1686 |                                 <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> | 1726 |                                 <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> | 
          
            
              | 1687 |                                     <xsl:value-of select="$f785"/> | 1727 |                                     <xsl:call-template name="subfieldSelect"> | 
            
              |  |  | 1728 |                                         <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1729 |                                     </xsl:call-template> | 
        
          | 1688 |                                 </a> | 1730 |                                 </a> | 
        
          | 1689 |                             </xsl:when> | 1731 |                             </xsl:when> | 
        
          | 1690 |                             <xsl:otherwise> | 1732 |                             <xsl:otherwise> | 
          
            
              | 1691 |                                 <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> | 1733 |                                 <a> | 
            
              | 1692 |                                     <xsl:value-of select="$f785"/> | 1734 |                                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute> | 
            
              |  |  | 1735 |                                     <xsl:call-template name="subfieldSelect"> | 
            
              | 1736 |                                         <xsl:with-param name="codes">a_t</xsl:with-param> | 
            
              | 1737 |                                     </xsl:call-template> | 
        
          | 1693 |                                 </a> | 1738 |                                 </a> | 
        
          | 1694 |                             </xsl:otherwise> | 1739 |                             </xsl:otherwise> | 
        
          | 1695 |                         </xsl:choose> | 1740 |                         </xsl:choose> | 
            
              | 1696 | -  |  |  |