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

(-)a/C4/XSLT.pm (-1 / +1 lines)
Lines 171-177 sub get_xslt_sysprefs { Link Here
171
                              OPACResultsLibrary OPACShowOpenURL
171
                              OPACResultsLibrary OPACShowOpenURL
172
                              OpenURLResolverURL OpenURLImageLocation
172
                              OpenURLResolverURL OpenURLImageLocation
173
                              OPACResultsMaxItems OPACResultsMaxItemsUnavailable OPACResultsUnavailableGroupingBy
173
                              OPACResultsMaxItems OPACResultsMaxItemsUnavailable OPACResultsUnavailableGroupingBy
174
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts / )
174
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts ContentWarningField / )
175
    {
175
    {
176
        my $sp = C4::Context->preference( $syspref );
176
        my $sp = C4::Context->preference( $syspref );
177
        next unless defined($sp);
177
        next unless defined($sp);
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+22 lines)
Lines 1053-1058 Link Here
1053
            </span>
1053
            </span>
1054
         </xsl:if>
1054
         </xsl:if>
1055
1055
1056
         <!-- Content Warning -->
1057
         <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1058
         <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1059
            <span class="results_summary content_warning">
1060
                <span class="label">Content warning: </span>
1061
                <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1062
                    <xsl:choose>
1063
                        <xsl:when test="marc:subfield[@code='z']">
1064
                            <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1065
                        </xsl:when>
1066
                        <xsl:otherwise>
1067
                            <xsl:call-template name="subfieldSelect">
1068
                                <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1069
                            </xsl:call-template>
1070
                        </xsl:otherwise>
1071
                    </xsl:choose>
1072
                    <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1073
                </xsl:for-each>
1074
            </span>
1075
         </xsl:if>
1076
1077
1056
        <!-- 773 -->
1078
        <!-- 773 -->
1057
        <xsl:if test="marc:datafield[@tag=773]">
1079
        <xsl:if test="marc:datafield[@tag=773]">
1058
            <xsl:for-each select="marc:datafield[@tag=773]">
1080
            <xsl:for-each select="marc:datafield[@tag=773]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-1 / +21 lines)
Lines 1010-1015 Link Here
1010
        </span>
1010
        </span>
1011
    </xsl:if>
1011
    </xsl:if>
1012
1012
1013
    <!-- Content Warning -->
1014
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1015
    <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1016
        <span class="results_summary content_warning">
1017
            <span class="label">Content warning: </span>
1018
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1019
                <xsl:choose>
1020
                    <xsl:when test="marc:subfield[@code='z']">
1021
                        <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1022
                    </xsl:when>
1023
                    <xsl:otherwise>
1024
                        <xsl:call-template name="subfieldSelect">
1025
                            <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1026
                        </xsl:call-template>
1027
                    </xsl:otherwise>
1028
                </xsl:choose>
1029
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1030
            </xsl:for-each>
1031
        </span>
1032
    </xsl:if>
1033
1013
    <!-- Indicate if record is suppressed in OPAC -->
1034
    <!-- Indicate if record is suppressed in OPAC -->
1014
    <xsl:if test="$OpacSuppression = 1">
1035
    <xsl:if test="$OpacSuppression = 1">
1015
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
1036
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
1016
- 

Return to bug 31123