|
Lines 353-373
Link Here
|
| 353 |
</xsl:choose> |
353 |
</xsl:choose> |
| 354 |
</xsl:variable> |
354 |
</xsl:variable> |
| 355 |
|
355 |
|
| 356 |
<xsl:element name="span"> |
356 |
<xsl:variable name="show_analytics_link" select="marc:variables/marc:variable[@name='show_analytics_link']" /> |
| 357 |
<xsl:attribute name="class">results_summary analytics <xsl:value-of select="$leader7_class"/></xsl:attribute> |
357 |
<xsl:if test="$show_analytics_link='1'"> |
| 358 |
<span class="label">Analytics: </span> |
358 |
<xsl:element name="span"> |
| 359 |
<a> |
359 |
<xsl:attribute name="class">results_summary analytics <xsl:value-of select="$leader7_class"/></xsl:attribute> |
| 360 |
<xsl:choose> |
360 |
<span class="label">Analytics: </span> |
| 361 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
361 |
<a> |
| 362 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute> |
362 |
<xsl:choose> |
| 363 |
</xsl:when> |
363 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
| 364 |
<xsl:otherwise> |
364 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute> |
| 365 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute> |
365 |
</xsl:when> |
| 366 |
</xsl:otherwise> |
366 |
<xsl:otherwise> |
| 367 |
</xsl:choose> |
367 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute> |
| 368 |
<xsl:text>Show analytics</xsl:text> |
368 |
</xsl:otherwise> |
| 369 |
</a> |
369 |
</xsl:choose> |
| 370 |
</xsl:element> |
370 |
<xsl:text>Show analytics</xsl:text> |
|
|
371 |
</a> |
| 372 |
</xsl:element> |
| 373 |
</xsl:if> |
| 371 |
|
374 |
|
| 372 |
<!-- Volumes of sets and traced series --> |
375 |
<!-- Volumes of sets and traced series --> |
| 373 |
<xsl:if test="$materialTypeCode='ST' or substring($controlField008,22,1)='m'"> |
376 |
<xsl:if test="$materialTypeCode='ST' or substring($controlField008,22,1)='m'"> |