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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +7 lines)
Lines 228-234 function verify_images() { Link Here
228
[% IF ( subscriptionsnumber ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#subscriptions">Subscriptions</a></li>[% END %]
228
[% IF ( subscriptionsnumber ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#subscriptions">Subscriptions</a></li>[% END %]
229
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#editions">Editions</a></li>[% END %][% END %]
229
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#editions">Editions</a></li>[% END %][% END %]
230
[% IF ( AmazonSimilarItems ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#related">Related Titles</a></li>[% END %]
230
[% IF ( AmazonSimilarItems ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#related">Related Titles</a></li>[% END %]
231
[% IF ( LocalCoverImages ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#images">Images</a></li>[% END %]
231
[% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]#images">Images</a></li>[% END %][% END %]
232
 </ul>
232
 </ul>
233
233
234
<div id="holdings">
234
<div id="holdings">
Lines 519-530 function verify_images() { Link Here
519
519
520
[% IF ( LocalCoverImages ) %]
520
[% IF ( LocalCoverImages ) %]
521
<div id="images">
521
<div id="images">
522
[% IF ( localimages ) %]
522
<div>Click on an image to view it in the image viewer</div>
523
<div>Click on an image to view it in the image viewer</div>
523
[% FOREACH image IN localimages %]
524
[% FOREACH image IN localimages %]
524
[% IF image %]
525
[% IF image %]
525
<span class="localimage"><a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]"><img alt="img" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" /></a></span>
526
<span class="localimage"><a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]"><img alt="img" src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image %]" /></a></span>
526
[% END %]
527
[% END %]
527
[% END %]
528
[% END %]
529
[% ELSE %]
530
[% IF ( CAN_user_tools_upload_local_cover_images ) %]
531
<p>No images have been uploaded for this bibliographic record yet. Please <a href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'>upload</a> one.</p>
532
[% END %]
533
[% END %]
528
</div>
534
</div>
529
[% END %]
535
[% END %]
530
536
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-1 / +1 lines)
Lines 548-554 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
548
		<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#serialcollection">Serial Collection</a></li>
548
		<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#serialcollection">Serial Collection</a></li>
549
    [% END %]
549
    [% END %]
550
550
551
    [% IF ( OPACLocalCoverImages ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#images">Images</a></li>[% END %]
551
    [% IF ( OPACLocalCoverImages ) %][% IF ( localimages ) %]<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]#images">Images</a></li>[% END %][% END %]
552
</ul>
552
</ul>
553
553
554
[% IF ( serialcollection ) %]
554
[% IF ( serialcollection ) %]
(-)a/opac/opac-imageviewer.pl (-2 / +1 lines)
Lines 46-52 if (C4::Context->preference("OPACLocalCoverImages")) { Link Here
46
    $template->{VARS}->{'OPACLocalCoverImages'} = 1;
46
    $template->{VARS}->{'OPACLocalCoverImages'} = 1;
47
    $template->{VARS}->{'images'} = \@images;
47
    $template->{VARS}->{'images'} = \@images;
48
    $template->{VARS}->{'biblionumber'} = $biblionumber;
48
    $template->{VARS}->{'biblionumber'} = $biblionumber;
49
    $template->{VARS}->{'imagenumber'} = $images[0] || '';
49
    $template->{VARS}->{'imagenumber'} = $imagenumber || $images[0] || '';
50
}
50
}
51
51
52
$template->{VARS}->{'biblio'} = $biblio;
52
$template->{VARS}->{'biblio'} = $biblio;
53
- 

Return to bug 1633