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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-7 / +21 lines)
Lines 1306-1320 Link Here
1306
               <span class="label">Content warning: </span>
1306
               <span class="label">Content warning: </span>
1307
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1307
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1308
                   <xsl:choose>
1308
                   <xsl:choose>
1309
                       <xsl:when test="marc:subfield[@code='z']">
1309
                       <xsl:when test="marc:subfield[@code='u']">
1310
                           <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1310
                           <a>
1311
                               <xsl:attribute name="href">
1312
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1313
                               </xsl:attribute>
1314
                               <xsl:choose>
1315
                                   <xsl:when test="marc:subfield[@code='a']">
1316
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1317
                                   </xsl:when>
1318
                                   <xsl:otherwise>
1319
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1320
                                   </xsl:otherwise>
1321
                               </xsl:choose>
1322
                           </a>
1323
                           <xsl:text> </xsl:text>
1324
                       </xsl:when>
1325
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1326
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1311
                       </xsl:when>
1327
                       </xsl:when>
1312
                       <xsl:otherwise>
1313
                           <xsl:call-template name="subfieldSelect">
1314
                               <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1315
                           </xsl:call-template>
1316
                       </xsl:otherwise>
1317
                   </xsl:choose>
1328
                   </xsl:choose>
1329
                   <xsl:call-template name="subfieldSelect">
1330
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param>
1331
                   </xsl:call-template>
1318
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1332
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1319
               </xsl:for-each>
1333
               </xsl:for-each>
1320
           </span>
1334
           </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-6 / +19 lines)
Lines 1166-1180 Link Here
1166
            <span class="label">Content warning: </span>
1166
            <span class="label">Content warning: </span>
1167
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1167
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1168
                <xsl:choose>
1168
                <xsl:choose>
1169
                    <xsl:when test="marc:subfield[@code='z']">
1169
                       <xsl:when test="marc:subfield[@code='u']">
1170
                        <xsl:value-of select="marc:subfield[@code='z']"/><xsl:text> </xsl:text>
1170
                           <a>
1171
                               <xsl:attribute name="href">
1172
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1173
                               </xsl:attribute>
1174
                               <xsl:choose>
1175
                                   <xsl:when test="marc:subfield[@code='a']">
1176
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1171
                    </xsl:when>
1177
                    </xsl:when>
1172
                    <xsl:otherwise>
1178
                    <xsl:otherwise>
1179
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1180
                                   </xsl:otherwise>
1181
                               </xsl:choose>
1182
                           </a>
1183
                           <xsl:text> </xsl:text>
1184
                       </xsl:when>
1185
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1186
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1187
                       </xsl:when>
1188
                   </xsl:choose>
1173
                        <xsl:call-template name="subfieldSelect">
1189
                        <xsl:call-template name="subfieldSelect">
1174
                            <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1190
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param>
1175
                        </xsl:call-template>
1191
                        </xsl:call-template>
1176
                    </xsl:otherwise>
1177
                </xsl:choose>
1178
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1192
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1179
            </xsl:for-each>
1193
            </xsl:for-each>
1180
        </span>
1194
        </span>
1181
- 

Return to bug 31123