|
Lines 1193-1200
Link Here
|
| 1193 |
<ul class="resource_list"> |
1193 |
<ul class="resource_list"> |
| 1194 |
<xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]"> |
1194 |
<xsl:for-each select="marc:datafield[@tag=856 and marc:subfield[@code='u']]"> |
| 1195 |
<xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> |
1195 |
<xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> |
| 1196 |
<xsl:if test="$OPACURLOpenInNewWindow='0'"> |
1196 |
<li> |
| 1197 |
<li><a> |
1197 |
<a property="url"> |
| 1198 |
<xsl:choose> |
1198 |
<xsl:choose> |
| 1199 |
<xsl:when test="$OPACTrackClicks='track'"> |
1199 |
<xsl:when test="$OPACTrackClicks='track'"> |
| 1200 |
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> |
1200 |
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> |
|
Lines 1213-1218
Link Here
|
| 1213 |
</xsl:attribute> |
1213 |
</xsl:attribute> |
| 1214 |
</xsl:otherwise> |
1214 |
</xsl:otherwise> |
| 1215 |
</xsl:choose> |
1215 |
</xsl:choose> |
|
|
1216 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
| 1217 |
<xsl:attribute name="target">_blank</xsl:attribute> |
| 1218 |
</xsl:if> |
| 1216 |
<xsl:choose> |
1219 |
<xsl:choose> |
| 1217 |
<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')"> |
1220 |
<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')"> |
| 1218 |
<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> |
1221 |
<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> |
|
Lines 1222-1272
Link Here
|
| 1222 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
1225 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
| 1223 |
</xsl:call-template> |
1226 |
</xsl:call-template> |
| 1224 |
</xsl:when> |
1227 |
</xsl:when> |
| 1225 |
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])"> |
|
|
| 1226 |
<xsl:choose> |
| 1227 |
<xsl:when test="$URLLinkText!=''"> |
| 1228 |
<xsl:value-of select="$URLLinkText"/> |
| 1229 |
</xsl:when> |
| 1230 |
<xsl:otherwise> |
| 1231 |
<xsl:text>Click here to access online</xsl:text> |
| 1232 |
</xsl:otherwise> |
| 1233 |
</xsl:choose> |
| 1234 |
</xsl:when> |
| 1235 |
</xsl:choose> |
| 1236 |
</a></li> |
| 1237 |
</xsl:if> |
| 1238 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
| 1239 |
<li><a target='_blank'> |
| 1240 |
<xsl:choose> |
| 1241 |
<xsl:when test="$OPACTrackClicks='track'"> |
| 1242 |
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> |
| 1243 |
</xsl:when> |
| 1244 |
<xsl:when test="$OPACTrackClicks='anonymous'"> |
| 1245 |
<xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> |
| 1246 |
</xsl:when> |
| 1247 |
<xsl:otherwise> |
| 1248 |
<xsl:attribute name="href"> |
| 1249 |
<xsl:call-template name="AddMissingProtocol"> |
| 1250 |
<xsl:with-param name="resourceLocation" select="marc:subfield[@code='u']"/> |
| 1251 |
<xsl:with-param name="indicator1" select="@ind1"/> |
| 1252 |
<xsl:with-param name="accessMethod" select="marc:subfield[@code='2']"/> |
| 1253 |
</xsl:call-template> |
| 1254 |
<xsl:value-of select="marc:subfield[@code='u']"/> |
| 1255 |
</xsl:attribute> |
| 1256 |
|
| 1257 |
</xsl:otherwise> |
| 1258 |
</xsl:choose> |
| 1259 |
<xsl:choose> |
| 1260 |
<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')"> |
| 1261 |
<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> |
| 1262 |
</xsl:when> |
| 1263 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
| 1264 |
<xsl:call-template name="subfieldSelect"> |
| 1265 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
| 1266 |
</xsl:call-template> |
| 1267 |
</xsl:when> |
| 1268 |
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])"> |
| 1269 |
<xsl:choose> |
| 1270 |
<xsl:when test="$URLLinkText!=''"> |
1228 |
<xsl:when test="$URLLinkText!=''"> |
| 1271 |
<xsl:value-of select="$URLLinkText"/> |
1229 |
<xsl:value-of select="$URLLinkText"/> |
| 1272 |
</xsl:when> |
1230 |
</xsl:when> |
|
Lines 1274-1283
Link Here
|
| 1274 |
<xsl:text>Click here to access online</xsl:text> |
1232 |
<xsl:text>Click here to access online</xsl:text> |
| 1275 |
</xsl:otherwise> |
1233 |
</xsl:otherwise> |
| 1276 |
</xsl:choose> |
1234 |
</xsl:choose> |
| 1277 |
</xsl:when> |
|
|
| 1278 |
</xsl:choose> |
| 1279 |
</a></li> |
1235 |
</a></li> |
| 1280 |
</xsl:if> |
|
|
| 1281 |
</xsl:for-each> |
1236 |
</xsl:for-each> |
| 1282 |
</ul> |
1237 |
</ul> |
| 1283 |
</div> |
1238 |
</div> |
| 1284 |
- |
|
|