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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-3 / +3 lines)
Lines 528-538 OPAC: Link Here
528
            - 'Location of image for OpenURL links:'
528
            - 'Location of image for OpenURL links:'
529
            - pref: OpenURLImageLocation
529
            - pref: OpenURLImageLocation
530
              class: url
530
              class: url
531
            - '<br />Can be a complete URL starting with <code>http://</code> or'
531
            - '<br />Can be an absolute URL starting with <code>http://</code> or'
532
            - '<code>https://</code> or the name of a file in <code>images</code> directory'
532
            - '<code>https://</code> or a relative URL'
533
            - '<br />Examples:'
533
            - '<br />Examples:'
534
            - '<br />- <code>http://www.example.com/img/openurl.png</code>'
534
            - '<br />- <code>http://www.example.com/img/openurl.png</code>'
535
            - '<br />- <code>OpenURL/OpenURL.png</code> (file is in <code>opac-tmpl/&lt;opacthemes&gt;/images/OpenURL/OpenURL.png</code>)'
535
            - '<br />- <code>/opac-tmpl/bootstrap/images/OpenURL.png</code>'
536
        -
536
        -
537
            - pref: OPACShowOpenURL
537
            - pref: OPACShowOpenURL
538
              choices:
538
              choices:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-14 / +2 lines)
Lines 1265-1282 Link Here
1265
            </xsl:choose>
1265
            </xsl:choose>
1266
          </xsl:variable>
1266
          </xsl:variable>
1267
1267
1268
          <xsl:variable name="openurlimagelocation">
1269
            <xsl:choose>
1270
              <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
1271
                <xsl:value-of select="$OpenURLImageLocation" />
1272
              </xsl:when>
1273
              <xsl:when test="$OpenURLImageLocation != ''">
1274
                <xsl:text>/opac-tmpl/prog/images/</xsl:text>
1275
                <xsl:value-of select="$OpenURLImageLocation" />
1276
              </xsl:when>
1277
            </xsl:choose>
1278
          </xsl:variable>
1279
1280
          <span class="results_summary"><a>
1268
          <span class="results_summary"><a>
1281
            <xsl:attribute name="href">
1269
            <xsl:attribute name="href">
1282
              <xsl:value-of select="$OpenURLResolverURL" />
1270
              <xsl:value-of select="$OpenURLResolverURL" />
Lines 1293-1302 Link Here
1293
              </xsl:attribute>
1281
              </xsl:attribute>
1294
            </xsl:if>
1282
            </xsl:if>
1295
            <xsl:choose>
1283
            <xsl:choose>
1296
              <xsl:when test="$openurlimagelocation != ''">
1284
              <xsl:when test="$OpenURLImageLocation != ''">
1297
                <img>
1285
                <img>
1298
                  <xsl:attribute name="src">
1286
                  <xsl:attribute name="src">
1299
                    <xsl:value-of select="$openurlimagelocation" />
1287
                    <xsl:value-of select="$OpenURLImageLocation" />
1300
                  </xsl:attribute>
1288
                  </xsl:attribute>
1301
                </img>
1289
                </img>
1302
              </xsl:when>
1290
              </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-14 / +2 lines)
Lines 462-479 Link Here
462
        </xsl:choose>
462
        </xsl:choose>
463
      </xsl:variable>
463
      </xsl:variable>
464
464
465
      <xsl:variable name="openurlimagelocation">
466
        <xsl:choose>
467
          <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
468
            <xsl:value-of select="$OpenURLImageLocation" />
469
          </xsl:when>
470
          <xsl:when test="$OpenURLImageLocation != ''">
471
            <xsl:text>/opac-tmpl/prog/images/</xsl:text>
472
            <xsl:value-of select="$OpenURLImageLocation" />
473
          </xsl:when>
474
        </xsl:choose>
475
      </xsl:variable>
476
477
      <span class="results_summary"><a>
465
      <span class="results_summary"><a>
478
        <xsl:attribute name="href">
466
        <xsl:attribute name="href">
479
          <xsl:value-of select="$OpenURLResolverURL" />
467
          <xsl:value-of select="$OpenURLResolverURL" />
Lines 490-499 Link Here
490
          </xsl:attribute>
478
          </xsl:attribute>
491
        </xsl:if>
479
        </xsl:if>
492
        <xsl:choose>
480
        <xsl:choose>
493
          <xsl:when test="$openurlimagelocation != ''">
481
          <xsl:when test="$OpenURLImageLocation != ''">
494
            <img>
482
            <img>
495
              <xsl:attribute name="src">
483
              <xsl:attribute name="src">
496
                <xsl:value-of select="$openurlimagelocation" />
484
                <xsl:value-of select="$OpenURLImageLocation" />
497
              </xsl:attribute>
485
              </xsl:attribute>
498
            </img>
486
            </img>
499
          </xsl:when>
487
          </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl (-14 / +2 lines)
Lines 461-478 Link Here
461
      </xsl:choose>
461
      </xsl:choose>
462
    </xsl:variable>
462
    </xsl:variable>
463
463
464
    <xsl:variable name="openurlimagelocation">
465
      <xsl:choose>
466
        <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
467
          <xsl:value-of select="$OpenURLImageLocation" />
468
        </xsl:when>
469
        <xsl:when test="$OpenURLImageLocation != ''">
470
          <xsl:text>/opac-tmpl/prog/images/</xsl:text>
471
          <xsl:value-of select="$OpenURLImageLocation" />
472
        </xsl:when>
473
      </xsl:choose>
474
    </xsl:variable>
475
476
    <span class="results_summary"><a>
464
    <span class="results_summary"><a>
477
      <xsl:attribute name="href">
465
      <xsl:attribute name="href">
478
        <xsl:value-of select="$OpenURLResolverURL" />
466
        <xsl:value-of select="$OpenURLResolverURL" />
Lines 489-498 Link Here
489
        </xsl:attribute>
477
        </xsl:attribute>
490
      </xsl:if>
478
      </xsl:if>
491
      <xsl:choose>
479
      <xsl:choose>
492
        <xsl:when test="$openurlimagelocation != ''">
480
        <xsl:when test="$OpenURLImageLocation != ''">
493
          <img>
481
          <img>
494
            <xsl:attribute name="src">
482
            <xsl:attribute name="src">
495
              <xsl:value-of select="$openurlimagelocation" />
483
              <xsl:value-of select="$OpenURLImageLocation" />
496
            </xsl:attribute>
484
            </xsl:attribute>
497
          </img>
485
          </img>
498
        </xsl:when>
486
        </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (-15 / +2 lines)
Lines 102-119 Link Here
102
      </xsl:choose>
102
      </xsl:choose>
103
    </xsl:variable>
103
    </xsl:variable>
104
104
105
    <xsl:variable name="openurlimagelocation">
106
      <xsl:choose>
107
        <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
108
          <xsl:value-of select="$OpenURLImageLocation" />
109
        </xsl:when>
110
        <xsl:when test="$OpenURLImageLocation != ''">
111
          <xsl:text>/opac-tmpl/prog/images/</xsl:text>
112
          <xsl:value-of select="$OpenURLImageLocation" />
113
        </xsl:when>
114
      </xsl:choose>
115
    </xsl:variable>
116
117
    <span class="results_summary"><a>
105
    <span class="results_summary"><a>
118
      <xsl:attribute name="href">
106
      <xsl:attribute name="href">
119
        <xsl:value-of select="$OpenURLResolverURL" />
107
        <xsl:value-of select="$OpenURLResolverURL" />
Lines 130-139 Link Here
130
        </xsl:attribute>
118
        </xsl:attribute>
131
      </xsl:if>
119
      </xsl:if>
132
      <xsl:choose>
120
      <xsl:choose>
133
        <xsl:when test="$openurlimagelocation != ''">
121
        <xsl:when test="$OpenURLImageLocation != ''">
134
          <img>
122
          <img>
135
            <xsl:attribute name="src">
123
            <xsl:attribute name="src">
136
              <xsl:value-of select="$openurlimagelocation" />
124
              <xsl:value-of select="$OpenURLImageLocation" />
137
            </xsl:attribute>
125
            </xsl:attribute>
138
          </img>
126
          </img>
139
        </xsl:when>
127
        </xsl:when>
140
- 

Return to bug 8995