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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-32 / +3 lines)
Lines 1114-1151 Link Here
1114
1114
1115
        <!-- Content Warning -->
1115
        <!-- Content Warning -->
1116
        <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1116
        <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1117
        <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1117
        <xsl:call-template name="content-warning">
1118
           <span class="results_summary content_warning">
1118
            <xsl:with-param name="tag" select="$ContentWarningField" />
1119
               <span class="label">Content warning: </span>
1119
        </xsl:call-template>
1120
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1121
                   <xsl:choose>
1122
                       <xsl:when test="marc:subfield[@code='u']">
1123
                           <a>
1124
                               <xsl:attribute name="href">
1125
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1126
                               </xsl:attribute>
1127
                               <xsl:choose>
1128
                                   <xsl:when test="marc:subfield[@code='a']">
1129
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1130
                                   </xsl:when>
1131
                                   <xsl:otherwise>
1132
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1133
                                   </xsl:otherwise>
1134
                               </xsl:choose>
1135
                           </a>
1136
                           <xsl:text> </xsl:text>
1137
                       </xsl:when>
1138
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1139
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1140
                       </xsl:when>
1141
                   </xsl:choose>
1142
                   <xsl:call-template name="subfieldSelect">
1143
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param>
1144
                   </xsl:call-template>
1145
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1146
               </xsl:for-each>
1147
           </span>
1148
        </xsl:if>
1149
1120
1150
        <!-- 866 textual holdings -->
1121
        <!-- 866 textual holdings -->
1151
        <xsl:if test="marc:datafield[@tag=866]">
1122
        <xsl:if test="marc:datafield[@tag=866]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-32 / +3 lines)
Lines 1024-1061 Link Here
1024
1024
1025
    <!-- Content Warning -->
1025
    <!-- Content Warning -->
1026
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1026
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1027
    <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1027
    <xsl:call-template name="content-warning">
1028
        <span class="results_summary content_warning">
1028
        <xsl:with-param name="tag" select="$ContentWarningField" />
1029
            <span class="label">Content warning: </span>
1029
    </xsl:call-template>
1030
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1031
                <xsl:choose>
1032
                    <xsl:when test="marc:subfield[@code='u']">
1033
                        <a>
1034
                            <xsl:attribute name="href">
1035
                                <xsl:value-of select="marc:subfield[@code='u']"/>
1036
                            </xsl:attribute>
1037
                            <xsl:choose>
1038
                                <xsl:when test="marc:subfield[@code='a']">
1039
                                    <xsl:value-of select="marc:subfield[@code='a']"/>
1040
                                </xsl:when>
1041
                                <xsl:otherwise>
1042
                                    <xsl:value-of select="marc:subfield[@code='u']"/>
1043
                                </xsl:otherwise>
1044
                            </xsl:choose>
1045
                        </a>
1046
                        <xsl:text> </xsl:text>
1047
                    </xsl:when>
1048
                    <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1049
                        <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1050
                    </xsl:when>
1051
                </xsl:choose>
1052
                <xsl:call-template name="subfieldSelect">
1053
                    <xsl:with-param name="codes">abcdefgijklnou</xsl:with-param>
1054
                </xsl:call-template>
1055
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1056
            </xsl:for-each>
1057
        </span>
1058
    </xsl:if>
1059
1030
1060
    <!-- Indicate if record is suppressed in OPAC -->
1031
    <!-- Indicate if record is suppressed in OPAC -->
1061
    <xsl:if test="$OpacSuppression = 1">
1032
    <xsl:if test="$OpacSuppression = 1">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (+36 lines)
Lines 691-696 Link Here
691
        </xsl:if>
691
        </xsl:if>
692
    </xsl:template>
692
    </xsl:template>
693
693
694
    <xsl:template name="content-warning">
695
        <xsl:param name="tag" />
696
        <xsl:if test="marc:datafield[@tag=$tag]">
697
            <span class="results_summary content_warning">
698
                <span class="label">Content warning: </span>
699
                <xsl:for-each select="marc:datafield[@tag=$tag]">
700
                    <xsl:choose>
701
                        <xsl:when test="marc:subfield[@code='u']">
702
                            <a>
703
                                <xsl:attribute name="href">
704
                                    <xsl:value-of select="marc:subfield[@code='u']"/>
705
                                </xsl:attribute>
706
                                <xsl:choose>
707
                                    <xsl:when test="marc:subfield[@code='a']">
708
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
709
                                    </xsl:when>
710
                                    <xsl:otherwise>
711
                                        <xsl:value-of select="marc:subfield[@code='u']"/>
712
                                    </xsl:otherwise>
713
                                </xsl:choose>
714
                            </a>
715
                            <xsl:text> </xsl:text>
716
                        </xsl:when>
717
                        <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
718
                            <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
719
                        </xsl:when>
720
                    </xsl:choose>
721
                    <xsl:call-template name="subfieldSelect">
722
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param>
723
                    </xsl:call-template>
724
                    <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
725
                </xsl:for-each>
726
            </span>
727
        </xsl:if>
728
    </xsl:template>
729
694
    <xsl:template name="AddMissingProtocol">
730
    <xsl:template name="AddMissingProtocol">
695
        <xsl:param name="resourceLocation"/>
731
        <xsl:param name="resourceLocation"/>
696
        <xsl:param name="indicator1"/>
732
        <xsl:param name="indicator1"/>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-32 / +3 lines)
Lines 1322-1359 Link Here
1322
1322
1323
        <!-- Content Warning -->
1323
        <!-- Content Warning -->
1324
        <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1324
        <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1325
        <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1325
        <xsl:call-template name="content-warning">
1326
           <span class="results_summary content_warning">
1326
            <xsl:with-param name="tag" select="$ContentWarningField" />
1327
               <span class="label">Content warning: </span>
1327
        </xsl:call-template>
1328
               <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1329
                   <xsl:choose>
1330
                       <xsl:when test="marc:subfield[@code='u']">
1331
                           <a>
1332
                               <xsl:attribute name="href">
1333
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1334
                               </xsl:attribute>
1335
                               <xsl:choose>
1336
                                   <xsl:when test="marc:subfield[@code='a']">
1337
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1338
                                   </xsl:when>
1339
                                   <xsl:otherwise>
1340
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1341
                                   </xsl:otherwise>
1342
                               </xsl:choose>
1343
                           </a>
1344
                           <xsl:text> </xsl:text>
1345
                       </xsl:when>
1346
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1347
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1348
                       </xsl:when>
1349
                   </xsl:choose>
1350
                   <xsl:call-template name="subfieldSelect">
1351
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param>
1352
                   </xsl:call-template>
1353
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1354
               </xsl:for-each>
1355
           </span>
1356
        </xsl:if>
1357
1328
1358
        <!-- 866 textual holdings -->
1329
        <!-- 866 textual holdings -->
1359
        <xsl:if test="marc:datafield[@tag=866]">
1330
        <xsl:if test="marc:datafield[@tag=866]">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-32 / +3 lines)
Lines 1182-1219 Link Here
1182
1182
1183
    <!-- Content Warning -->
1183
    <!-- Content Warning -->
1184
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1184
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1185
    <xsl:if test="marc:datafield[@tag=$ContentWarningField]">
1185
    <xsl:call-template name="content-warning">
1186
        <span class="results_summary content_warning">
1186
        <xsl:with-param name="tag" select="$ContentWarningField" />
1187
            <span class="label">Content warning: </span>
1187
    </xsl:call-template>
1188
            <xsl:for-each select="marc:datafield[@tag=$ContentWarningField]">
1189
                <xsl:choose>
1190
                       <xsl:when test="marc:subfield[@code='u']">
1191
                           <a>
1192
                               <xsl:attribute name="href">
1193
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
1194
                               </xsl:attribute>
1195
                               <xsl:choose>
1196
                                   <xsl:when test="marc:subfield[@code='a']">
1197
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
1198
                    </xsl:when>
1199
                    <xsl:otherwise>
1200
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
1201
                                   </xsl:otherwise>
1202
                               </xsl:choose>
1203
                           </a>
1204
                           <xsl:text> </xsl:text>
1205
                       </xsl:when>
1206
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
1207
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
1208
                       </xsl:when>
1209
                   </xsl:choose>
1210
                        <xsl:call-template name="subfieldSelect">
1211
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param>
1212
                        </xsl:call-template>
1213
                <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
1214
            </xsl:for-each>
1215
        </span>
1216
    </xsl:if>
1217
1188
1218
    <xsl:if test="marc:datafield[@tag=856]">
1189
    <xsl:if test="marc:datafield[@tag=856]">
1219
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1190
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl (-1 / +36 lines)
Lines 655-660 Link Here
655
        </xsl:if>
655
        </xsl:if>
656
    </xsl:template>
656
    </xsl:template>
657
657
658
    <xsl:template name="content-warning">
659
        <xsl:param name="tag" />
660
        <xsl:if test="marc:datafield[@tag=$tag]">
661
           <span class="results_summary content_warning">
662
               <span class="label">Content warning: </span>
663
               <xsl:for-each select="marc:datafield[@tag=$tag]">
664
                   <xsl:choose>
665
                       <xsl:when test="marc:subfield[@code='u']">
666
                           <a>
667
                               <xsl:attribute name="href">
668
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
669
                               </xsl:attribute>
670
                               <xsl:choose>
671
                                   <xsl:when test="marc:subfield[@code='a']">
672
                                       <xsl:value-of select="marc:subfield[@code='a']"/>
673
                                   </xsl:when>
674
                                   <xsl:otherwise>
675
                                       <xsl:value-of select="marc:subfield[@code='u']"/>
676
                                   </xsl:otherwise>
677
                               </xsl:choose>
678
                           </a>
679
                           <xsl:text> </xsl:text>
680
                       </xsl:when>
681
                       <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
682
                           <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
683
                       </xsl:when>
684
                   </xsl:choose>
685
                   <xsl:call-template name="subfieldSelect">
686
                        <xsl:with-param name="codes">bcdefghijklmnopqrstvwyz</xsl:with-param>
687
                   </xsl:call-template>
688
                   <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
689
               </xsl:for-each>
690
           </span>
691
        </xsl:if>
692
    </xsl:template>
693
658
    <xsl:template name="AddMissingProtocol">
694
    <xsl:template name="AddMissingProtocol">
659
        <xsl:param name="resourceLocation"/>
695
        <xsl:param name="resourceLocation"/>
660
        <xsl:param name="indicator1"/>
696
        <xsl:param name="indicator1"/>
661
- 

Return to bug 36375