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 531-541 OPAC: Link Here
531
            - 'Location of image for OpenURL links:'
531
            - 'Location of image for OpenURL links:'
532
            - pref: OpenURLImageLocation
532
            - pref: OpenURLImageLocation
533
              class: url
533
              class: url
534
            - '<br />Can be a complete URL starting with <code>http://</code> or'
534
            - '<br />Can be an absolute URL starting with <code>http://</code> or'
535
            - '<code>https://</code> or the name of a file in <code>images</code> directory'
535
            - '<code>https://</code> or a relative URL'
536
            - '<br />Examples:'
536
            - '<br />Examples:'
537
            - '<br />- <code>http://www.example.com/img/openurl.png</code>'
537
            - '<br />- <code>http://www.example.com/img/openurl.png</code>'
538
            - '<br />- <code>OpenURL/OpenURL.png</code> (file is in <code>opac-tmpl/&lt;opacthemes&gt;/images/OpenURL/OpenURL.png</code>)'
538
            - '<br />- <code>/opac-tmpl/bootstrap/images/OpenURL.png</code>'
539
        -
539
        -
540
            - pref: OPACShowOpenURL
540
            - pref: OPACShowOpenURL
541
              choices:
541
              choices:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-14 / +2 lines)
Lines 1331-1348 Link Here
1331
            </xsl:choose>
1331
            </xsl:choose>
1332
          </xsl:variable>
1332
          </xsl:variable>
1333
1333
1334
          <xsl:variable name="openurlimagelocation">
1335
            <xsl:choose>
1336
              <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
1337
                <xsl:value-of select="$OpenURLImageLocation" />
1338
              </xsl:when>
1339
              <xsl:when test="$OpenURLImageLocation != ''">
1340
                <xsl:text>/opac-tmpl/prog/images/</xsl:text>
1341
                <xsl:value-of select="$OpenURLImageLocation" />
1342
              </xsl:when>
1343
            </xsl:choose>
1344
          </xsl:variable>
1345
1346
          <span class="results_summary"><a>
1334
          <span class="results_summary"><a>
1347
            <xsl:attribute name="href">
1335
            <xsl:attribute name="href">
1348
              <xsl:value-of select="$OpenURLResolverURL" />
1336
              <xsl:value-of select="$OpenURLResolverURL" />
Lines 1359-1368 Link Here
1359
              </xsl:attribute>
1347
              </xsl:attribute>
1360
            </xsl:if>
1348
            </xsl:if>
1361
            <xsl:choose>
1349
            <xsl:choose>
1362
              <xsl:when test="$openurlimagelocation != ''">
1350
              <xsl:when test="$OpenURLImageLocation != ''">
1363
                <img>
1351
                <img>
1364
                  <xsl:attribute name="src">
1352
                  <xsl:attribute name="src">
1365
                    <xsl:value-of select="$openurlimagelocation" />
1353
                    <xsl:value-of select="$OpenURLImageLocation" />
1366
                  </xsl:attribute>
1354
                  </xsl:attribute>
1367
                </img>
1355
                </img>
1368
              </xsl:when>
1356
              </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-14 / +2 lines)
Lines 463-480 Link Here
463
        </xsl:choose>
463
        </xsl:choose>
464
      </xsl:variable>
464
      </xsl:variable>
465
465
466
      <xsl:variable name="openurlimagelocation">
467
        <xsl:choose>
468
          <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
469
            <xsl:value-of select="$OpenURLImageLocation" />
470
          </xsl:when>
471
          <xsl:when test="$OpenURLImageLocation != ''">
472
            <xsl:text>/opac-tmpl/prog/images/</xsl:text>
473
            <xsl:value-of select="$OpenURLImageLocation" />
474
          </xsl:when>
475
        </xsl:choose>
476
      </xsl:variable>
477
478
      <span class="results_summary"><a>
466
      <span class="results_summary"><a>
479
        <xsl:attribute name="href">
467
        <xsl:attribute name="href">
480
          <xsl:value-of select="$OpenURLResolverURL" />
468
          <xsl:value-of select="$OpenURLResolverURL" />
Lines 491-500 Link Here
491
          </xsl:attribute>
479
          </xsl:attribute>
492
        </xsl:if>
480
        </xsl:if>
493
        <xsl:choose>
481
        <xsl:choose>
494
          <xsl:when test="$openurlimagelocation != ''">
482
          <xsl:when test="$OpenURLImageLocation != ''">
495
            <img>
483
            <img>
496
              <xsl:attribute name="src">
484
              <xsl:attribute name="src">
497
                <xsl:value-of select="$openurlimagelocation" />
485
                <xsl:value-of select="$OpenURLImageLocation" />
498
              </xsl:attribute>
486
              </xsl:attribute>
499
            </img>
487
            </img>
500
          </xsl:when>
488
          </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.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/UNIMARCslim2OPACResults.xsl (-15 / +2 lines)
Lines 103-120 Link Here
103
      </xsl:choose>
103
      </xsl:choose>
104
    </xsl:variable>
104
    </xsl:variable>
105
105
106
    <xsl:variable name="openurlimagelocation">
107
      <xsl:choose>
108
        <xsl:when test="starts-with($OpenURLImageLocation, 'http://') or starts-with($OpenURLImageLocation, 'https://')">
109
          <xsl:value-of select="$OpenURLImageLocation" />
110
        </xsl:when>
111
        <xsl:when test="$OpenURLImageLocation != ''">
112
          <xsl:text>/opac-tmpl/prog/images/</xsl:text>
113
          <xsl:value-of select="$OpenURLImageLocation" />
114
        </xsl:when>
115
      </xsl:choose>
116
    </xsl:variable>
117
118
    <span class="results_summary"><a>
106
    <span class="results_summary"><a>
119
      <xsl:attribute name="href">
107
      <xsl:attribute name="href">
120
        <xsl:value-of select="$OpenURLResolverURL" />
108
        <xsl:value-of select="$OpenURLResolverURL" />
Lines 131-140 Link Here
131
        </xsl:attribute>
119
        </xsl:attribute>
132
      </xsl:if>
120
      </xsl:if>
133
      <xsl:choose>
121
      <xsl:choose>
134
        <xsl:when test="$openurlimagelocation != ''">
122
        <xsl:when test="$OpenURLImageLocation != ''">
135
          <img>
123
          <img>
136
            <xsl:attribute name="src">
124
            <xsl:attribute name="src">
137
              <xsl:value-of select="$openurlimagelocation" />
125
              <xsl:value-of select="$OpenURLImageLocation" />
138
            </xsl:attribute>
126
            </xsl:attribute>
139
          </img>
127
          </img>
140
        </xsl:when>
128
        </xsl:when>
141
- 

Return to bug 8995