|
Lines 281-321
Link Here
|
| 281 |
</xsl:when> |
281 |
</xsl:when> |
| 282 |
</xsl:choose> |
282 |
</xsl:choose> |
| 283 |
|
283 |
|
| 284 |
<xsl:if test="$field/marc:subfield[@code='a']"> |
284 |
<xsl:for-each select="marc:subfield"> |
| 285 |
<xsl:call-template name="subfieldSelect"> |
285 |
<xsl:if test="@code='a'"> |
| 286 |
<xsl:with-param name="codes">a</xsl:with-param> |
286 |
<xsl:value-of select="current()"/> |
| 287 |
</xsl:call-template> |
287 |
</xsl:if> |
| 288 |
</xsl:if> |
288 |
<xsl:if test="@code='b'"> |
| 289 |
<xsl:text> </xsl:text> |
289 |
<xsl:choose> |
| 290 |
|
290 |
<xsl:when test="$url='1'"> |
| 291 |
<xsl:choose> |
291 |
<a> |
| 292 |
<xsl:when test="$url='1'"> |
292 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
| 293 |
<xsl:if test="$field/marc:subfield[@code='b']"> |
293 |
<xsl:value-of select="current()"/> |
| 294 |
<a> |
294 |
</a> |
| 295 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:<xsl:value-of select="str:encode-uri($field/marc:subfield[@code='b'], true())"/></xsl:attribute> |
295 |
</xsl:when> |
| 296 |
<xsl:call-template name="subfieldSelect"> |
296 |
<xsl:otherwise> |
| 297 |
<xsl:with-param name="codes">b</xsl:with-param> |
297 |
<xsl:value-of select="current()"/> |
| 298 |
</xsl:call-template> |
298 |
</xsl:otherwise> |
| 299 |
</a> |
299 |
</xsl:choose> |
| 300 |
</xsl:if> |
|
|
| 301 |
</xsl:when> |
| 302 |
<xsl:otherwise> |
| 303 |
<xsl:if test="$field/marc:subfield[@code='b']"> |
| 304 |
<xsl:call-template name="subfieldSelect"> |
| 305 |
<xsl:with-param name="codes">b</xsl:with-param> |
| 306 |
</xsl:call-template> |
| 307 |
</xsl:if> |
300 |
</xsl:if> |
| 308 |
</xsl:otherwise> |
301 |
<xsl:if test="@code='c'"> |
| 309 |
</xsl:choose> |
302 |
<xsl:call-template name="chopPunctuation"> |
| 310 |
<xsl:text> </xsl:text> |
303 |
<xsl:with-param name="chopString"> |
| 311 |
<xsl:call-template name="chopPunctuation"> |
304 |
<xsl:value-of select="current()"/> |
| 312 |
<xsl:with-param name="chopString"> |
305 |
</xsl:with-param> |
| 313 |
<xsl:call-template name="subfieldSelect"> |
|
|
| 314 |
<xsl:with-param name="codes">c</xsl:with-param> |
| 315 |
</xsl:call-template> |
306 |
</xsl:call-template> |
| 316 |
</xsl:with-param> |
307 |
</xsl:if> |
| 317 |
</xsl:call-template> |
308 |
<xsl:if test="position() != last()"> |
| 318 |
|
309 |
<xsl:text> </xsl:text> |
|
|
310 |
</xsl:if> |
| 311 |
</xsl:for-each> |
| 319 |
</span> |
312 |
</span> |
| 320 |
</xsl:template> |
313 |
</xsl:template> |
| 321 |
|
314 |
|