Lines 48-53
Link Here
|
48 |
<xsl:variable name="leader" select="marc:leader"/> |
48 |
<xsl:variable name="leader" select="marc:leader"/> |
49 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
49 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
50 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
50 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
|
|
51 |
<xsl:variable name="leader18" select="substring($leader,19,1)"/> |
51 |
<xsl:variable name="leader19" select="substring($leader,20,1)"/> |
52 |
<xsl:variable name="leader19" select="substring($leader,20,1)"/> |
52 |
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/> |
53 |
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/> |
53 |
<xsl:variable name="materialTypeCode"> |
54 |
<xsl:variable name="materialTypeCode"> |
Lines 337-342
Link Here
|
337 |
<xsl:with-param name="show_url">1</xsl:with-param> |
338 |
<xsl:with-param name="show_url">1</xsl:with-param> |
338 |
</xsl:call-template> |
339 |
</xsl:call-template> |
339 |
</xsl:when> |
340 |
</xsl:when> |
|
|
341 |
|
340 |
<xsl:when test="marc:datafield[@tag=260]"> |
342 |
<xsl:when test="marc:datafield[@tag=260]"> |
341 |
<span class="results_summary publisher"><span class="label">Publication details: </span> |
343 |
<span class="results_summary publisher"><span class="label">Publication details: </span> |
342 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
344 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
Lines 344-359
Link Here
|
344 |
<xsl:if test="@code='a'"> |
346 |
<xsl:if test="@code='a'"> |
345 |
<span class="publisher_place" property="location"> |
347 |
<span class="publisher_place" property="location"> |
346 |
<a> |
348 |
<a> |
347 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pl:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute> |
349 |
<!-- do not trim `.` as it is used in abbreviations --> |
348 |
<xsl:value-of select="current()"/> |
350 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pl:"<xsl:value-of select="str:encode-uri(normalize-space(translate(current(), ',;/:', '')), true())"/>"</xsl:attribute> |
|
|
351 |
<xsl:value-of select="current()"/> |
349 |
</a> |
352 |
</a> |
350 |
</span> |
353 |
</span> |
351 |
</xsl:if> |
354 |
</xsl:if> |
352 |
<xsl:if test="@code='b'"> |
355 |
<xsl:if test="@code='b'"> |
353 |
<span property="publisher" typeof="Organization"> |
356 |
<span property="publisher" typeof="Organization"> |
354 |
<span property="name" class="publisher_name"> |
357 |
<span property="name" class="publisher_name"> |
355 |
<a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute> |
358 |
<a> |
356 |
<xsl:value-of select="current()"/> |
359 |
<!-- do not trim `.` as it is used in abbreviations --> |
|
|
360 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:"<xsl:value-of select="str:encode-uri(normalize-space(translate(current(), ',;/:', '')), true())"/>"</xsl:attribute> |
361 |
<xsl:value-of select="current()"/> |
357 |
</a> |
362 |
</a> |
358 |
</span> |
363 |
</span> |
359 |
</span> |
364 |
</span> |
Lines 361-371
Link Here
|
361 |
<xsl:if test="@code='c'"> |
366 |
<xsl:if test="@code='c'"> |
362 |
<span property="datePublished" class="publisher_date"> |
367 |
<span property="datePublished" class="publisher_date"> |
363 |
<a> |
368 |
<a> |
364 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=copydate:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute> |
369 |
<!-- do not trim `.` as it is used in abbreviations --> |
365 |
<xsl:value-of select="current()"/> |
370 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=copydate:"<xsl:value-of select="str:encode-uri(normalize-space(translate(current(), ',;/:', '')), true())"/>"</xsl:attribute> |
|
|
371 |
<xsl:value-of select="current()"/> |
366 |
</a> |
372 |
</a> |
367 |
</span> |
373 |
</span> |
368 |
</xsl:if> |
374 |
</xsl:if> |
|
|
375 |
<xsl:if test="@code='e'"> |
376 |
<span property="location" class="manufacturer_place"> |
377 |
<xsl:value-of select="current()"/> |
378 |
</span> |
379 |
</xsl:if> |
380 |
<xsl:if test="@code='f'"> |
381 |
<span property="manufacturer" typeOf="Organization"> |
382 |
<span property="name" class="manufacturer_name"> |
383 |
<xsl:value-of select="current()"/> |
384 |
</span> |
385 |
</span> |
386 |
</xsl:if> |
387 |
<xsl:if test="@code='q'"> |
388 |
<span property="address" class="address"> |
389 |
<xsl:value-of select="current()"/> |
390 |
</span> |
391 |
</xsl:if> |
369 |
<xsl:if test="@code='g'"> |
392 |
<xsl:if test="@code='g'"> |
370 |
<span property="datePublished" class="publisher_date"> |
393 |
<span property="datePublished" class="publisher_date"> |
371 |
<xsl:call-template name="chopPunctuation"> |
394 |
<xsl:call-template name="chopPunctuation"> |
Lines 375-385
Link Here
|
375 |
</xsl:call-template> |
398 |
</xsl:call-template> |
376 |
</span> |
399 |
</span> |
377 |
</xsl:if> |
400 |
</xsl:if> |
378 |
<xsl:if test="position() != last()"> |
401 |
<xsl:if test="not($leader18='c' or $leader18='n')"> |
379 |
<xsl:text> </xsl:text> |
402 |
<!-- if punctuation is added automatically do not add additional spaces --> |
380 |
</xsl:if> |
403 |
<xsl:if test="position() != last()"> |
|
|
404 |
<xsl:text> </xsl:text> |
405 |
</xsl:if> |
406 |
</xsl:if> |
381 |
</xsl:for-each> |
407 |
</xsl:for-each> |
382 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
408 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
|
|
409 |
<xsl:if test="$leader18='c' or $leader18='n'"> |
410 |
<!-- if punctuation is added automatically add the `.` at the end --> |
411 |
<xsl:if test="position()=last()"> |
412 |
<xsl:text>.</xsl:text> |
413 |
</xsl:if> |
414 |
</xsl:if> |
383 |
</xsl:for-each> |
415 |
</xsl:for-each> |
384 |
</span> |
416 |
</span> |
385 |
</xsl:when> |
417 |
</xsl:when> |