Lines 320-340
Link Here
|
320 |
</span> |
320 |
</span> |
321 |
</xsl:if> |
321 |
</xsl:if> |
322 |
|
322 |
|
323 |
<!-- Analytics --> |
323 |
<!-- Analytics information --> |
324 |
<xsl:if test="$leader7='s'"> |
324 |
<xsl:variable name="leader7_class"> |
325 |
<span class="results_summary analytics"><span class="label">Analytics: </span> |
|
|
326 |
<a> |
327 |
<xsl:choose> |
325 |
<xsl:choose> |
328 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
326 |
<!--xsl:when test="$leader7='a'">analytic_mcp</xsl:when--> |
329 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/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> |
327 |
<!--xsl:when test="$leader7='b'">analytic_scp</xsl:when--> |
330 |
</xsl:when> |
328 |
<xsl:when test="$leader7='c'">analytic_collection</xsl:when> |
331 |
<xsl:otherwise> |
329 |
<xsl:when test="$leader7='d'">analytic_subunit</xsl:when> |
332 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute> |
330 |
<xsl:when test="$leader7='i'">analytic_ires</xsl:when> |
333 |
</xsl:otherwise> |
331 |
<xsl:when test="$leader7='m'">analytic_monograph</xsl:when> |
|
|
332 |
<xsl:when test="$leader7='s'">analytic_serial</xsl:when> |
333 |
<xsl:otherwise>analytic_undefined</xsl:otherwise> |
334 |
</xsl:choose> |
334 |
</xsl:choose> |
335 |
<xsl:text>Show analytics</xsl:text> |
335 |
</xsl:variable> |
336 |
</a> |
336 |
|
337 |
</span> |
337 |
<xsl:variable name="show_analytics_link" select="marc:variables/marc:variable[@name='show_analytics_link']" /> |
|
|
338 |
<xsl:if test="$show_analytics_link='1'"> |
339 |
<xsl:element name="span"> |
340 |
<xsl:attribute name="class">results_summary analytics <xsl:value-of select="$leader7_class"/></xsl:attribute> |
341 |
<span class="label">Analytics: </span> |
342 |
<a> |
343 |
<xsl:choose> |
344 |
<xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]"> |
345 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/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> |
346 |
</xsl:when> |
347 |
<xsl:otherwise> |
348 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute> |
349 |
</xsl:otherwise> |
350 |
</xsl:choose> |
351 |
<xsl:text>Show analytics</xsl:text> |
352 |
</a> |
353 |
</xsl:element> |
338 |
</xsl:if> |
354 |
</xsl:if> |
339 |
|
355 |
|
340 |
<!-- Volumes of sets and traced series --> |
356 |
<!-- Volumes of sets and traced series --> |
341 |
- |
|
|