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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-3 / +5 lines)
Lines 921-928 Link Here
921
    </xsl:if>
921
    </xsl:if>
922
922
923
    <xsl:if test="marc:datafield[@tag=856]">
923
    <xsl:if test="marc:datafield[@tag=856]">
924
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
924
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
925
        <xsl:for-each select="marc:datafield[@tag=856]">
925
        <span class="results_summary online_resources">
926
                <span class="label">Online resources: </span>
927
        <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
926
            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
928
            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
927
            <a>
929
            <a>
928
                <xsl:attribute name="href">
930
                <xsl:attribute name="href">
Lines 958-966 Link Here
958
                <xsl:when test="position()=last()"><xsl:text>  </xsl:text></xsl:when>
960
                <xsl:when test="position()=last()"><xsl:text>  </xsl:text></xsl:when>
959
                <xsl:otherwise> | </xsl:otherwise>
961
                <xsl:otherwise> | </xsl:otherwise>
960
            </xsl:choose>
962
            </xsl:choose>
961
962
        </xsl:for-each>
963
        </xsl:for-each>
963
        </span>
964
        </span>
965
        </xsl:if>
964
    </xsl:if>
966
    </xsl:if>
965
967
966
        <!-- 505 - Formatted contents note -->
968
        <!-- 505 - Formatted contents note -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +4 lines)
Lines 978-986 Link Here
978
    </xsl:call-template>
978
    </xsl:call-template>
979
979
980
    <xsl:if test="marc:datafield[@tag=856]">
980
    <xsl:if test="marc:datafield[@tag=856]">
981
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
981
        <span class="results_summary online_resources">
982
        <span class="results_summary online_resources">
982
            <span class="label">Online resources: </span>
983
                <span class="label">Online resources: </span>
983
            <xsl:for-each select="marc:datafield[@tag=856]">
984
            <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
984
                <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
985
                <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
985
                <a>
986
                <a>
986
                    <xsl:attribute name="href">
987
                    <xsl:attribute name="href">
Lines 1018-1023 Link Here
1018
                </xsl:choose>
1019
                </xsl:choose>
1019
            </xsl:for-each>
1020
            </xsl:for-each>
1020
        </span>
1021
        </span>
1022
        </xsl:if>
1021
    </xsl:if>
1023
    </xsl:if>
1022
1024
1023
    <!-- Content Warning -->
1025
    <!-- Content Warning -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-7 / +13 lines)
Lines 1038-1047 Link Here
1038
1038
1039
    <!-- Image processing code added here, takes precedence over text links including y3z text   -->
1039
    <!-- Image processing code added here, takes precedence over text links including y3z text   -->
1040
    <xsl:if test="marc:datafield[@tag=856]">
1040
    <xsl:if test="marc:datafield[@tag=856]">
1041
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1041
        <span class="results_summary online_resources">
1042
        <span class="results_summary online_resources">
1042
            <span class="label">Online resources: </span>
1043
                <span class="label">Online resources: </span>
1043
                <ul class="resource_list">
1044
                <ul class="resource_list">
1044
                    <xsl:for-each select="marc:datafield[@tag=856]">
1045
                    <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1045
                        <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
1046
                        <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
1046
                        <li>
1047
                        <li>
1047
                            <a property="url">
1048
                            <a property="url">
Lines 1075-1092 Link Here
1075
                                            <xsl:with-param name="codes">y3z</xsl:with-param>
1076
                                            <xsl:with-param name="codes">y3z</xsl:with-param>
1076
                                        </xsl:call-template>
1077
                                        </xsl:call-template>
1077
                                    </xsl:when>
1078
                                    </xsl:when>
1078
                                    <xsl:when test="$URLLinkText!=''">
1079
                                    <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
1079
                                        <xsl:value-of select="$URLLinkText"/>
1080
                                        <xsl:choose>
1081
                                            <xsl:when test="$URLLinkText!=''">
1082
                                                <xsl:value-of select="$URLLinkText"/>
1083
                                            </xsl:when>
1084
                                            <xsl:otherwise>
1085
                                                <xsl:text>Click here to access online</xsl:text>
1086
                                            </xsl:otherwise>
1087
                                        </xsl:choose>
1080
                                    </xsl:when>
1088
                                    </xsl:when>
1081
                                    <xsl:otherwise>
1082
                                        <xsl:text>Click here to access online</xsl:text>
1083
                                    </xsl:otherwise>
1084
                                </xsl:choose>
1089
                                </xsl:choose>
1085
                            </a>
1090
                            </a>
1086
                        </li>
1091
                        </li>
1087
                    </xsl:for-each>
1092
                    </xsl:for-each>
1088
                </ul>
1093
                </ul>
1089
            </span>
1094
            </span>
1095
            </xsl:if>
1090
        </xsl:if>
1096
        </xsl:if>
1091
1097
1092
        <!--  787 Other Relationship Entry  -->
1098
        <!--  787 Other Relationship Entry  -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-9 / +16 lines)
Lines 1-3 Link Here
1
opacresult
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3
<!DOCTYPE stylesheet>
4
<!DOCTYPE stylesheet>
Lines 1216-1225 Link Here
1216
    </xsl:if>
1217
    </xsl:if>
1217
1218
1218
    <xsl:if test="marc:datafield[@tag=856]">
1219
    <xsl:if test="marc:datafield[@tag=856]">
1220
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1219
         <div class="results_summary online_resources">
1221
         <div class="results_summary online_resources">
1220
               <span class="label">Online resources: </span>
1222
               <span class="label">Online resources: </span>
1221
                    <ul class="resource_list">
1223
                    <ul class="resource_list">
1222
                            <xsl:for-each select="marc:datafield[@tag=856]">
1224
                            <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1223
                            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
1225
                            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
1224
                            <xsl:if test="$OPACURLOpenInNewWindow='0'">
1226
                            <xsl:if test="$OPACURLOpenInNewWindow='0'">
1225
			      <li><a>
1227
			      <li><a>
Lines 1255-1263 Link Here
1255
					<xsl:when test="$URLLinkText!=''">
1257
					<xsl:when test="$URLLinkText!=''">
1256
						<xsl:value-of select="$URLLinkText"/>
1258
						<xsl:value-of select="$URLLinkText"/>
1257
					</xsl:when>
1259
					</xsl:when>
1258
					<xsl:otherwise>
1260
                    <xsl:otherwise>
1259
						<xsl:text>Click here to access online</xsl:text>
1261
                        <xsl:text>Click here to access online</xsl:text>
1260
					</xsl:otherwise>
1262
                    </xsl:otherwise>
1261
					</xsl:choose>
1263
					</xsl:choose>
1262
                                    </xsl:when>
1264
                                    </xsl:when>
1263
                                    </xsl:choose>
1265
                                    </xsl:choose>
Lines 1274-1280 Link Here
1274
				     </xsl:when>
1276
				     </xsl:when>
1275
				     <xsl:otherwise>
1277
				     <xsl:otherwise>
1276
		                       <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1278
		                       <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1277
				     </xsl:otherwise>
1279
                                <xsl:if test="not(marc:subfield[@code='u'])">
1280
                                    <xsl:attribute name="style">pointer-events: none; color: #202020;</xsl:attribute>
1281
                                </xsl:if>
1282
                     </xsl:otherwise>
1278
				   </xsl:choose>
1283
				   </xsl:choose>
1279
                                    <xsl:choose>
1284
                                    <xsl:choose>
1280
                                    <xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and ($SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
1285
                                    <xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and ($SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')">
Lines 1290-1298 Link Here
1290
					<xsl:when test="$URLLinkText!=''">
1295
					<xsl:when test="$URLLinkText!=''">
1291
						<xsl:value-of select="$URLLinkText"/>
1296
						<xsl:value-of select="$URLLinkText"/>
1292
					</xsl:when>
1297
					</xsl:when>
1293
					<xsl:otherwise>
1298
                    <xsl:otherwise>
1294
						<xsl:text>Click here to access online</xsl:text>
1299
                        <xsl:text>Click here to access online</xsl:text>
1295
					</xsl:otherwise>
1300
                    </xsl:otherwise>
1296
					</xsl:choose>
1301
					</xsl:choose>
1297
                                    </xsl:when>
1302
                                    </xsl:when>
1298
                                    </xsl:choose>
1303
                                    </xsl:choose>
Lines 1302-1307 Link Here
1302
                            </ul>
1307
                            </ul>
1303
                            </div>
1308
                            </div>
1304
                        </xsl:if>
1309
                        </xsl:if>
1310
        </xsl:if>
1305
1311
1306
        <!-- Availability line -->
1312
        <!-- Availability line -->
1307
        <div class="results_summary availability">
1313
        <div class="results_summary availability">
Lines 1610-1612 Link Here
1610
1616
1611
1617
1612
</xsl:stylesheet>
1618
</xsl:stylesheet>
1613
- 
1619
1620
</xsl:stylesheet>

Return to bug 36111