View | Details | Raw Unified | Return to bug 15851
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-12 / +24 lines)
Lines 339-360 Link Here
339
        </span>
339
        </span>
340
        </xsl:if>
340
        </xsl:if>
341
341
342
        <!-- Analytics -->
342
        <!-- Analytics information -->
343
        <xsl:if test="$leader7='s'">
343
        <xsl:variable name="leader7_class">
344
        <span class="results_summary analytics"><span class="label">Analytics: </span>
344
            <xsl:choose>
345
                <!--xsl:when test="$leader7='a'">analytic_mcp</xsl:when-->
346
                <!--xsl:when test="$leader7='b'">analytic_scp</xsl:when-->
347
                <xsl:when test="$leader7='c'">analytic_collection</xsl:when>
348
                <xsl:when test="$leader7='d'">analytic_subunit</xsl:when>
349
                <xsl:when test="$leader7='i'">analytic_ires</xsl:when>
350
                <xsl:when test="$leader7='m'">analytic_monograph</xsl:when>
351
                <xsl:when test="$leader7='s'">analytic_serial</xsl:when>
352
                <xsl:otherwise>analytic_undefined</xsl:otherwise>
353
            </xsl:choose>
354
        </xsl:variable>
355
356
        <xsl:element name="span">
357
            <xsl:attribute name="class">results_summary analytics <xsl:value-of select="$leader7_class"/></xsl:attribute>
358
            <span class="label">Analytics: </span>
345
            <a>
359
            <a>
346
            <xsl:choose>
360
            <xsl:choose>
347
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
361
                <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
348
                <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: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>
349
            </xsl:when>
363
                </xsl:when>
350
            <xsl:otherwise>
364
                <xsl:otherwise>
351
                <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: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>
352
            </xsl:otherwise>
366
                </xsl:otherwise>
353
            </xsl:choose>
367
            </xsl:choose>
354
            <xsl:text>Show analytics</xsl:text>
368
            <xsl:text>Show analytics</xsl:text>
355
            </a>
369
            </a>
356
        </span>
370
        </xsl:element>
357
        </xsl:if>
358
371
359
        <!-- Volumes of sets and traced series -->
372
        <!-- Volumes of sets and traced series -->
360
        <xsl:if test="$materialTypeCode='ST' or substring($controlField008,22,1)='m'">
373
        <xsl:if test="$materialTypeCode='ST' or substring($controlField008,22,1)='m'">
361
- 

Return to bug 15851