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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-3 / +3 lines)
Lines 1039-1046 Link Here
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
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1042
        <span class="results_summary online_resources">
1042
            <span class="results_summary online_resources">
1043
            <span class="label">Online resources: </span>
1043
                <span class="label">Online resources: </span>
1044
                <ul class="resource_list">
1044
                <ul class="resource_list">
1045
                    <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1045
                    <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1046
                        <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>
Lines 1088-1095 Link Here
1088
                    </xsl:for-each>
1088
                    </xsl:for-each>
1089
                </ul>
1089
                </ul>
1090
            </span>
1090
            </span>
1091
            </xsl:if>
1092
        </xsl:if>
1091
        </xsl:if>
1092
    </xsl:if>
1093
1093
1094
        <!--  787 Other Relationship Entry  -->
1094
        <!--  787 Other Relationship Entry  -->
1095
        <xsl:if test="marc:datafield[@tag=787]">
1095
        <xsl:if test="marc:datafield[@tag=787]">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-84 / +46 lines)
Lines 1215-1308 Link Here
1215
        </span>
1215
        </span>
1216
    </xsl:if>
1216
    </xsl:if>
1217
1217
1218
    <xsl:if test="marc:datafield[@tag=856]">
1218
            <xsl:if test="marc:datafield[@tag=856]">
1219
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1219
                <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1220
         <div class="results_summary online_resources">
1220
                    <div class="results_summary online_resources">
1221
               <span class="label">Online resources: </span>
1221
                    <span class="label">Online resources: </span>
1222
                    <ul class="resource_list">
1222
                    <ul class="resource_list">
1223
                            <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1223
                        <xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]">
1224
                            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable>
1224
                            <xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']" /></xsl:variable>
1225
                            <xsl:if test="$OPACURLOpenInNewWindow='0'">
1225
                            <li>
1226
			      <li><a>
1226
                                <a property="url">
1227
			      <xsl:choose>
1228
			        <xsl:when test="$OPACTrackClicks='track'">
1229
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1230
				</xsl:when>
1231
	                        <xsl:when test="$OPACTrackClicks='anonymous'">
1232
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1233
				</xsl:when>
1234
				<xsl:otherwise>
1235
                    <xsl:attribute name="href">
1236
                        <xsl:call-template name="AddMissingProtocol">
1237
                            <xsl:with-param name="resourceLocation" select="marc:subfield[@code='u']"/>
1238
                            <xsl:with-param name="indicator1" select="@ind1"/>
1239
                            <xsl:with-param name="accessMethod" select="marc:subfield[@code='2']"/>
1240
                        </xsl:call-template>
1241
                        <xsl:value-of select="marc:subfield[@code='u']"/>
1242
                    </xsl:attribute>
1243
				</xsl:otherwise>
1244
			      </xsl:choose>
1245
                                    <xsl:choose>
1227
                                    <xsl:choose>
1246
                                     <xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $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')">
1228
                                        <xsl:when test="$OPACTrackClicks='track'">
1247
                                        <xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="style">height:100px;</xsl:attribute></xsl:element><xsl:text></xsl:text>
1229
                                            <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1248
                                    </xsl:when>
1230
                                        </xsl:when>
1249
                                    <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
1231
                                        <xsl:when test="$OPACTrackClicks='anonymous'">
1250
                                        <xsl:call-template name="subfieldSelect">
1232
                                            <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())" />&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1251
                                        <xsl:with-param name="codes">y3z</xsl:with-param>
1233
                                        </xsl:when>
1252
                                        </xsl:call-template>
1234
                                        <xsl:otherwise>
1253
                                    </xsl:when>
1235
                                            <xsl:attribute name="href">
1254
                                    <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
1236
                                                <xsl:call-template name="AddMissingProtocol">
1255
					<xsl:choose>
1237
                                                    <xsl:with-param name="resourceLocation" select="marc:subfield[@code='u']" />
1256
					<xsl:when test="$URLLinkText!=''">
1238
                                                    <xsl:with-param name="indicator1" select="@ind1" />
1257
						<xsl:value-of select="$URLLinkText"/>
1239
                                                    <xsl:with-param name="accessMethod" select="marc:subfield[@code='2']" />
1258
					</xsl:when>
1240
                                                </xsl:call-template>
1259
					<xsl:otherwise>
1241
                                                <xsl:value-of select="marc:subfield[@code='u']" />
1260
						<xsl:text>Click here to access online</xsl:text>
1242
                                            </xsl:attribute>
1261
					</xsl:otherwise>
1243
                                        </xsl:otherwise>
1262
					</xsl:choose>
1263
                                    </xsl:when>
1264
                                    </xsl:choose>
1244
                                    </xsl:choose>
1265
                                    </a></li>
1245
                                    <xsl:if test="$OPACURLOpenInNewWindow='1'">
1266
                              </xsl:if>
1246
                                        <xsl:attribute name="target">_blank</xsl:attribute>
1267
                            <xsl:if test="$OPACURLOpenInNewWindow='1'">
1247
                                    </xsl:if>
1268
                                   <li><a target='_blank'>
1269
				   <xsl:choose>
1270
				     <xsl:when test="$OPACTrackClicks='track'">
1271
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1272
				     </xsl:when>
1273
				     <xsl:when test="$OPACTrackClicks='anonymous'">
1274
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1275
				     </xsl:when>
1276
				     <xsl:otherwise>
1277
		                       <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1278
				     </xsl:otherwise>
1279
				   </xsl:choose>
1280
                                    <xsl:choose>
1248
                                    <xsl:choose>
1281
                                    <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')">
1249
                                        <xsl:when test="($Show856uAsImage='Results' or $Show856uAsImage='Both') and (substring($SubqText,1,6)='image/' or $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')">
1282
                                        <xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="style">height:100px</xsl:attribute></xsl:element><xsl:text></xsl:text>
1250
                                            <xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']" /></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']" /></xsl:attribute><xsl:attribute name="style">height:100px;</xsl:attribute></xsl:element><xsl:text></xsl:text>
1283
                                    </xsl:when>
1251
                                        </xsl:when>
1284
                                    <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
1252
                                        <xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
1285
                                        <xsl:call-template name="subfieldSelect">
1253
                                            <xsl:call-template name="subfieldSelect">
1286
                                        <xsl:with-param name="codes">y3z</xsl:with-param>
1254
                                                <xsl:with-param name="codes">y3z</xsl:with-param>
1287
                                        </xsl:call-template>
1255
                                            </xsl:call-template>
1288
                                    </xsl:when>
1256
                                        </xsl:when>
1289
                                    <xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
1257
                                        <xsl:when test="$URLLinkText!=''">
1290
					<xsl:choose>
1258
                                            <xsl:value-of select="$URLLinkText" />
1291
					<xsl:when test="$URLLinkText!=''">
1259
                                        </xsl:when>
1292
						<xsl:value-of select="$URLLinkText"/>
1260
                                        <xsl:otherwise>
1293
					</xsl:when>
1261
                                            <xsl:text>Click here to access online</xsl:text>
1294
					<xsl:otherwise>
1262
                                        </xsl:otherwise>
1295
						<xsl:text>Click here to access online</xsl:text>
1296
					</xsl:otherwise>
1297
					</xsl:choose>
1298
                                    </xsl:when>
1299
                                    </xsl:choose>
1263
                                    </xsl:choose>
1300
                                    </a></li>
1264
                                </a></li>
1301
                              </xsl:if>
1265
                        </xsl:for-each>
1302
                            </xsl:for-each>
1266
                    </ul>
1303
                            </ul>
1267
                </div>
1304
                            </div>
1268
            </xsl:if>
1305
                        </xsl:if>
1306
        </xsl:if>
1269
        </xsl:if>
1307
1270
1308
        <!-- Availability line -->
1271
        <!-- Availability line -->
1309
- 

Return to bug 38096