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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-12 / +18 lines)
Lines 97-109 Link Here
97
            </xsl:choose>
97
            </xsl:choose>
98
        </xsl:variable>
98
        </xsl:variable>
99
99
100
        <!-- Indicate if record is suppressed in OPAC -->
101
        <xsl:if test="$OpacSuppression = 1">
102
            <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
103
                <span class="results_summary suppressed_opac">Suppressed in OPAC</span>
104
            </xsl:if>
105
        </xsl:if>
106
107
        <!-- Title Statement -->
100
        <!-- Title Statement -->
108
        <!-- Alternate Graphic Representation (MARC 880) -->
101
        <!-- Alternate Graphic Representation (MARC 880) -->
109
        <xsl:if test="$display880">
102
        <xsl:if test="$display880">
Lines 1428-1438 Link Here
1428
            </xsl:for-each>
1421
            </xsl:for-each>
1429
        </xsl:if>
1422
        </xsl:if>
1430
1423
1431
        <xsl:if test="$OPACBaseURL!=''">
1424
        <!-- Indicate if record is suppressed in OPAC -->
1432
        <span class="results_summary opac_view"><span class="label">OPAC view: </span>
1425
        <xsl:choose>
1433
            <a><xsl:attribute name="href"><xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:datafield[@tag=999]/marc:subfield[@code='c'], true())"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
1426
            <xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
1434
        </span>
1427
                <span class="results_summary suppressed_opac">
1435
        </xsl:if>
1428
                    <span class="label">OPAC view: </span>
1429
                    Suppressed in OPAC
1430
                </span>
1431
            </xsl:when>
1432
            <xsl:otherwise>
1433
                <xsl:if test="$OPACBaseURL!=''">
1434
                    <span class="results_summary opac_view"><span class="label">OPAC view: </span>
1435
                        <a><xsl:attribute name="href"><xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:datafield[@tag=999]/marc:subfield[@code='c'], true())"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
1436
                    </span>
1437
                </xsl:if>
1438
            </xsl:otherwise>
1439
        </xsl:choose>
1440
1441
1436
1442
1437
    </xsl:template>
1443
    </xsl:template>
1438
1444
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-8 / +8 lines)
Lines 283-295 Link Here
283
-->
283
-->
284
        </xsl:variable>
284
        </xsl:variable>
285
285
286
        <!-- Indicate if record is suppressed in OPAC -->
287
        <xsl:if test="$OpacSuppression = 1">
288
            <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
289
                <span class="results_summary suppressed_opac">Suppressed in OPAC</span>
290
            </xsl:if>
291
        </xsl:if>
292
293
        <!-- Title Statement: Alternate Graphic Representation (MARC 880) -->
286
        <!-- Title Statement: Alternate Graphic Representation (MARC 880) -->
294
        <xsl:if test="$display880">
287
        <xsl:if test="$display880">
295
           <xsl:call-template name="m880Select">
288
           <xsl:call-template name="m880Select">
Lines 1016-1021 Link Here
1016
            </xsl:for-each>
1009
            </xsl:for-each>
1017
        </span>
1010
        </span>
1018
    </xsl:if>
1011
    </xsl:if>
1012
1013
    <!-- Indicate if record is suppressed in OPAC -->
1014
    <xsl:if test="$OpacSuppression = 1">
1015
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
1016
            <span class="results_summary suppressed_opac">Suppressed in OPAC</span>
1017
        </xsl:if>
1018
    </xsl:if>
1019
1019
</xsl:template>
1020
</xsl:template>
1020
1021
1021
    <xsl:template name="nameABCQ">
1022
    <xsl:template name="nameABCQ">
1022
- 

Return to bug 29406