| 
      
            Lines 126-193
          
      
      
        Link Here
      
     | 
  
        
          | 126 | 
                          </xsl:call-template>  | 
          126 | 
                          </xsl:call-template>  | 
        
        
          | 127 | 
                      </h5>  | 
          127 | 
                      </h5>  | 
        
        
          | 128 | 
                  </xsl:if>  | 
          128 | 
                  </xsl:if>  | 
        
            
              | 129 | 
               | 
               | 
               | 
            
            
              | 130 | 
                      <xsl:choose>  | 
            
            
              | 131 | 
                      <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">  | 
            
            
              | 132 | 
                      <h5 class="author">by  | 
            
            
              | 133 | 
                      <xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">  | 
            
            
              | 134 | 
                      <a>  | 
            
            
              | 135 | 
                      <xsl:choose>  | 
            
            
              | 136 | 
                          <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
            
            
              | 137 | 
                              <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
            
            
              | 138 | 
                          </xsl:when>  | 
            
            
              | 139 | 
                          <xsl:otherwise>  | 
            
            
              | 140 | 
                          <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>  | 
            
            
              | 141 | 
                          </xsl:otherwise>  | 
            
            
              | 142 | 
                      </xsl:choose>  | 
            
            
              | 143 | 
                      <xsl:call-template name="nameABCDQ"/></a>  | 
            
            
              | 144 | 
                      <xsl:choose>  | 
            
            
              | 145 | 
                      <xsl:when test="position()!=last()"><xsl:text>; </xsl:text></xsl:when></xsl:choose>  | 
            
            
              | 146 | 
                      </xsl:for-each>  | 
            
            
              | 147 | 
               | 
            
            
              | 148 | 
                      <xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">  | 
            
            
              | 149 | 
                          <xsl:choose>  | 
            
            
              | 150 | 
                              <xsl:when test="position()=1">  | 
            
            
              | 151 | 
                                  <xsl:text>; </xsl:text>  | 
            
            
              | 152 | 
                              </xsl:when>  | 
            
            
              | 153 | 
                          </xsl:choose>  | 
            
            
              | 154 | 
                      <a>  | 
            
        
          | 155 | 
                  <xsl:choose>  | 
          129 | 
                  <xsl:choose>  | 
        
          
            
              | 156 | 
                          <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
              130 | 
                          <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">  | 
            
            
              | 157 | 
                              <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
              131 | 
                              <h5 class="author">by  | 
            
            
              | 158 | 
                          </xsl:when>  | 
              132 | 
                                  <xsl:call-template name="showAuthor">  | 
            
            
              | 159 | 
                          <xsl:otherwise>  | 
              133 | 
                                      <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>  | 
            
            
              | 160 | 
                          <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>  | 
              134 | 
                                      <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>  | 
            
            
              | 161 | 
                          </xsl:otherwise>  | 
              135 | 
                                  </xsl:call-template>  | 
            
            
              | 162 | 
                      </xsl:choose>  | 
              136 | 
                              </h5>  | 
            
            
              | 163 | 
                      <xsl:call-template name="nameABCDN"/></a>  | 
               | 
               | 
            
            
              | 164 | 
                      <xsl:choose><xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
            
            
              | 165 | 
                      </xsl:for-each>  | 
            
            
              | 166 | 
               | 
            
            
              | 167 | 
                      <xsl:for-each select="marc:datafield[@tag=111 or @tag=711]">  | 
            
            
              | 168 | 
                          <xsl:choose>  | 
            
            
              | 169 | 
                          <xsl:when test="marc:subfield[@code='n']">  | 
            
            
              | 170 | 
                             <xsl:text> </xsl:text>  | 
            
            
              | 171 | 
                             <xsl:call-template name="subfieldSelect">  | 
            
            
              | 172 | 
                                <xsl:with-param name="codes">n</xsl:with-param>                              </xsl:call-template>  | 
            
            
              | 173 | 
                             <xsl:text> </xsl:text>  | 
            
            
              | 174 | 
                          </xsl:when>  | 
            
            
              | 175 | 
                          </xsl:choose>  | 
            
            
              | 176 | 
                      <a>  | 
            
            
              | 177 | 
                      <xsl:choose>  | 
            
            
              | 178 | 
                          <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
            
            
              | 179 | 
                              <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
            
        
          | 180 | 
                      </xsl:when>  | 
          137 | 
                      </xsl:when>  | 
        
            
              | 181 | 
                          <xsl:otherwise>  | 
               | 
               | 
            
            
              | 182 | 
                          <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>  | 
            
            
              | 183 | 
                          </xsl:otherwise>  | 
            
            
              | 184 | 
                      </xsl:choose>  | 
            
            
              | 185 | 
                      <xsl:call-template name="nameACDEQ"/></a>  | 
            
            
              | 186 | 
                      <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>  | 
            
            
              | 187 | 
               | 
            
            
              | 188 | 
                      </xsl:for-each>  | 
            
            
              | 189 | 
                      </h5>  | 
            
            
              | 190 | 
                      </xsl:when>  | 
            
        
          | 191 | 
                  </xsl:choose>  | 
          138 | 
                  </xsl:choose>  | 
        
        
          | 192 | 
           | 
          139 | 
           | 
        
        
          | 193 | 
             <xsl:if test="$DisplayOPACiconsXSLT!='0'">  | 
          140 | 
             <xsl:if test="$DisplayOPACiconsXSLT!='0'">  | 
        
  
    | 
      
            Lines 905-910
          
      
      
        Link Here
      
     | 
  
        
          | 905 | 
           | 
          852 | 
           | 
        
        
          | 906 | 
              </xsl:template>  | 
          853 | 
              </xsl:template>  | 
        
        
          | 907 | 
           | 
          854 | 
           | 
        
            
               | 
               | 
              855 | 
                  <xsl:template name="showAuthor">  | 
            
            
              | 856 | 
                      <xsl:param name="authorfield" />  | 
            
            
              | 857 | 
                      <xsl:param name="UseAuthoritiesForTracings" />  | 
            
            
              | 858 | 
                      <xsl:for-each select="$authorfield">  | 
            
            
              | 859 | 
                          <xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose>  | 
            
            
              | 860 | 
                          <xsl:choose>  | 
            
            
              | 861 | 
                              <xsl:when test="not(@tag=111 or @tag=711)" />  | 
            
            
              | 862 | 
                              <xsl:when test="marc:subfield[@code='n']">  | 
            
            
              | 863 | 
                                  <xsl:text> </xsl:text>  | 
            
            
              | 864 | 
                                  <xsl:call-template name="subfieldSelect">  | 
            
            
              | 865 | 
                                      <xsl:with-param name="codes">n</xsl:with-param>  | 
            
            
              | 866 | 
                                  </xsl:call-template>  | 
            
            
              | 867 | 
                                  <xsl:text> </xsl:text>  | 
            
            
              | 868 | 
                              </xsl:when>  | 
            
            
              | 869 | 
                          </xsl:choose>  | 
            
            
              | 870 | 
                          <a>  | 
            
            
              | 871 | 
                              <xsl:choose>  | 
            
            
              | 872 | 
                                  <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">  | 
            
            
              | 873 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>  | 
            
            
              | 874 | 
                                  </xsl:when>  | 
            
            
              | 875 | 
                                  <xsl:otherwise>  | 
            
            
              | 876 | 
                                      <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>  | 
            
            
              | 877 | 
                                  </xsl:otherwise>  | 
            
            
              | 878 | 
                              </xsl:choose>  | 
            
            
              | 879 | 
                              <xsl:choose>  | 
            
            
              | 880 | 
                                  <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>  | 
            
            
              | 881 | 
                                  <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>  | 
            
            
              | 882 | 
                                  <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>  | 
            
            
              | 883 | 
                              </xsl:choose>  | 
            
            
              | 884 | 
                              <!-- add relator code too between brackets-->  | 
            
            
              | 885 | 
                              <xsl:if test="marc:subfield[@code='4' or @code='e']">  | 
            
            
              | 886 | 
                                  <xsl:text>[</xsl:text>  | 
            
            
              | 887 | 
                                  <xsl:choose>  | 
            
            
              | 888 | 
                                      <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>  | 
            
            
              | 889 | 
                                      <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>  | 
            
            
              | 890 | 
                                  </xsl:choose>  | 
            
            
              | 891 | 
                                  <xsl:text>]</xsl:text>  | 
            
            
              | 892 | 
                              </xsl:if>  | 
            
            
              | 893 | 
                          </a>  | 
            
            
              | 894 | 
                      </xsl:for-each>  | 
            
            
              | 895 | 
                      <xsl:text>.</xsl:text>  | 
            
            
              | 896 | 
                  </xsl:template>  | 
            
            
              | 897 | 
               | 
            
        
          | 908 | 
              <xsl:template name="nameABCDQ">  | 
          898 | 
              <xsl:template name="nameABCDQ">  | 
        
        
          | 909 | 
                      <xsl:call-template name="chopPunctuation">  | 
          899 | 
                      <xsl:call-template name="chopPunctuation">  | 
        
        
          | 910 | 
                          <xsl:with-param name="chopString">  | 
          900 | 
                          <xsl:with-param name="chopString">  | 
        
            
              | 911 | 
              -   | 
               | 
               |