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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-7 / +21 lines)
Lines 1076-1090 Link Here
1076
               <span class="label">Content warning: </span>
1076
               <span class="label">Content warning: </span>
1077
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1077
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1078
                   <xsl:choose>
1078
                   <xsl:choose>
1079
                       <xsl:when test="marc:subfield[@code='z']">
1079
                       <xsl:when test="marc:subfield[@code='u']">
1080
                           <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1080
                           <a>
1081
                               <xsl:attribute name="href">
1082
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1083
                               </xsl:attribute>
1084
                               <xsl:choose>
1085
                                   <xsl:when test="marc:subfield[@code='a']">
1086
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1087
                                   </xsl:when>
1088
                                   <xsl:otherwise>
1089
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1090
                                   </xsl:otherwise>
1091
                               </xsl:choose>
1092
                           </a>
1093
                           <xsl:text> </xsl:text>
1094
                       </xsl:when>
1095
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1096
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1081
                       </xsl:when>
1097
                       </xsl:when>
1082
                       <xsl:otherwise>
1083
                           <xsl:call-template name="subfieldSelect">
1084
                               <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1085
                           </xsl:call-template>
1086
                       </xsl:otherwise>
1087
                   </xsl:choose>
1098
                   </xsl:choose>
1099
                   <xsl:call-template name="subfieldSelect">
1100
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param>
1101
                   </xsl:call-template>
1088
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1102
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1089
               </xsl:for-each>
1103
               </xsl:for-each>
1090
           </span>
1104
           </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-8 / +21 lines)
Lines 1014-1028 Link Here
1014
            <span class="label">Content warning: </span>
1014
            <span class="label">Content warning: </span>
1015
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1015
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1016
                <xsl:choose>
1016
                <xsl:choose>
1017
                    <xsl:when test="marc:subfield[@code='z']">
1017
                    <xsl:when test="marc:subfield[@code='u']">
1018
                        <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1018
                        <a>
1019
                            <xsl:attribute name="href">
1020
                                <xsl:value-of select="marc:subfield[@code='u']"/>
1021
                            </xsl:attribute>
1022
                            <xsl:choose>
1023
                                <xsl:when test="marc:subfield[@code='a']">
1024
                                    <xsl:value-of select="marc:subfield[@code='a']"/>
1025
                                </xsl:when>
1026
                                <xsl:otherwise>
1027
                                    <xsl:value-of select="marc:subfield[@code='u']"/>
1028
                                </xsl:otherwise>
1029
                            </xsl:choose>
1030
                        </a>
1031
                        <xsl:text> </xsl:text>
1032
                    </xsl:when>
1033
                    <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1034
                        <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1019
                    </xsl:when>
1035
                    </xsl:when>
1020
                    <xsl:otherwise>
1021
                        <xsl:call-template name="subfieldSelect">
1022
                            <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1023
                        </xsl:call-template>
1024
                    </xsl:otherwise>
1025
                </xsl:choose>
1036
                </xsl:choose>
1037
                <xsl:call-template name="subfieldSelect">
1038
                    <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1039
                </xsl:call-template>
1026
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1040
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1027
            </xsl:for-each>
1041
            </xsl:for-each>
1028
        </span>
1042
        </span>
1029
- 

Return to bug 31123