Lines 128-193
Link Here
|
128 |
</xsl:if> |
128 |
</xsl:if> |
129 |
|
129 |
|
130 |
<xsl:choose> |
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]"> |
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 |
132 |
<h5 class="author">by |
133 |
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]"> |
133 |
<xsl:call-template name="showAuthor"> |
134 |
<a> |
134 |
<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]"/> |
135 |
<xsl:choose> |
135 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
136 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
136 |
</xsl:call-template> |
137 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
137 |
</h5> |
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> |
156 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
157 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
158 |
</xsl:when> |
159 |
<xsl:otherwise> |
160 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
161 |
</xsl:otherwise> |
162 |
</xsl:choose> |
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> |
138 |
</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> |
139 |
</xsl:choose> |
192 |
|
140 |
|
193 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
141 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
Lines 882-887
Link Here
|
882 |
|
830 |
|
883 |
</xsl:template> |
831 |
</xsl:template> |
884 |
|
832 |
|
|
|
833 |
<xsl:template name="showAuthor"> |
834 |
<xsl:param name="authorfield" /> |
835 |
<xsl:param name="UseAuthoritiesForTracings" /> |
836 |
<xsl:for-each select="$authorfield"> |
837 |
<xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose> |
838 |
<xsl:choose> |
839 |
<xsl:when test="not(@tag=111 or @tag=711)" /> |
840 |
<xsl:when test="marc:subfield[@code='n']"> |
841 |
<xsl:text> </xsl:text> |
842 |
<xsl:call-template name="subfieldSelect"> |
843 |
<xsl:with-param name="codes">n</xsl:with-param> |
844 |
</xsl:call-template> |
845 |
<xsl:text> </xsl:text> |
846 |
</xsl:when> |
847 |
</xsl:choose> |
848 |
<a> |
849 |
<xsl:choose> |
850 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
851 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
852 |
</xsl:when> |
853 |
<xsl:otherwise> |
854 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
855 |
</xsl:otherwise> |
856 |
</xsl:choose> |
857 |
<xsl:choose> |
858 |
<xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when> |
859 |
<xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when> |
860 |
<xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when> |
861 |
</xsl:choose> |
862 |
<!-- add relator code too between brackets--> |
863 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
864 |
<xsl:text>[</xsl:text> |
865 |
<xsl:choose> |
866 |
<xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> |
867 |
<xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> |
868 |
</xsl:choose> |
869 |
<xsl:text>]</xsl:text> |
870 |
</xsl:if> |
871 |
</a> |
872 |
</xsl:for-each> |
873 |
<xsl:text>.</xsl:text> |
874 |
</xsl:template> |
875 |
|
885 |
<xsl:template name="nameABCDQ"> |
876 |
<xsl:template name="nameABCDQ"> |
886 |
<xsl:call-template name="chopPunctuation"> |
877 |
<xsl:call-template name="chopPunctuation"> |
887 |
<xsl:with-param name="chopString"> |
878 |
<xsl:with-param name="chopString"> |
888 |
- |
|
|