Lines 1133-1138
Link Here
|
1133 |
</xsl:for-each> |
1133 |
</xsl:for-each> |
1134 |
</xsl:if> |
1134 |
</xsl:if> |
1135 |
|
1135 |
|
|
|
1136 |
<!-- 770 Bug no. 20200: Show MARC 770 Supplement/Special Issue Entry on detail pages--> |
1137 |
<xsl:if test="marc:datafield[@tag=770]"> |
1138 |
<xsl:for-each select="marc:datafield[@tag=770]"> |
1139 |
<xsl:if test="@ind1 !=1"> |
1140 |
<span class="results_supplement"><span class="label"> |
1141 |
<xsl:choose> |
1142 |
<xsl:when test="@ind2=' '"> |
1143 |
Has supplement: |
1144 |
</xsl:when> |
1145 |
<xsl:when test="@ind2='8'"> |
1146 |
<xsl:if test="marc:subfield[@code='i']"> |
1147 |
<xsl:value-of select="marc:subfield[@code='i']"/> |
1148 |
</xsl:if> |
1149 |
</xsl:when> |
1150 |
</xsl:choose> |
1151 |
</span> |
1152 |
<xsl:variable name="f770"> |
1153 |
<xsl:call-template name="chopPunctuation"> |
1154 |
<xsl:with-param name="chopString"> |
1155 |
<xsl:call-template name="subfieldSelect"> |
1156 |
<xsl:with-param name="codes">atdw</xsl:with-param> |
1157 |
</xsl:call-template> |
1158 |
</xsl:with-param> |
1159 |
</xsl:call-template> |
1160 |
</xsl:variable> |
1161 |
<xsl:choose> |
1162 |
<xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> |
1163 |
<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> |
1164 |
<xsl:value-of select="translate($f770, '()', '')"/> |
1165 |
</a> |
1166 |
</xsl:when> |
1167 |
<xsl:when test="marc:subfield[@code='0']"> |
1168 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:subfield[@code='0'], true())"/></xsl:attribute> |
1169 |
<xsl:value-of select="$f770"/> |
1170 |
</a> |
1171 |
</xsl:when> |
1172 |
<xsl:otherwise> |
1173 |
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f770, '()', ''), true())"/></xsl:attribute> |
1174 |
<xsl:value-of select="$f770"/> |
1175 |
</a> |
1176 |
</xsl:otherwise> |
1177 |
</xsl:choose> |
1178 |
<xsl:if test="marc:subfield[@code='g']"> |
1179 |
<xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/> |
1180 |
</xsl:if> |
1181 |
</span> |
1182 |
|
1183 |
<xsl:if test="marc:subfield[@code='n']"> |
1184 |
<span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span> |
1185 |
</xsl:if> |
1186 |
|
1187 |
</xsl:if> |
1188 |
</xsl:for-each> |
1189 |
</xsl:if> |
1190 |
|
1136 |
<xsl:if test="marc:datafield[@tag=502]"> |
1191 |
<xsl:if test="marc:datafield[@tag=502]"> |
1137 |
<span class="results_summary diss_note"> |
1192 |
<span class="results_summary diss_note"> |
1138 |
<span class="label">Dissertation note: </span> |
1193 |
<span class="label">Dissertation note: </span> |