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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +30 lines)
Lines 175-180 function verify_images() { Link Here
175
    [% IF ( LocalCoverImages && ! localimages.0 ) %]
175
    [% IF ( LocalCoverImages && ! localimages.0 ) %]
176
        showNoImageMessage();
176
        showNoImageMessage();
177
    [% END %]
177
    [% END %]
178
        [% IF LocalCoverImages %]
179
        KOHA.LocalCover.GetCoverFromBibnumber(true);
180
        [% END %]
178
    });
181
    });
179
182
180
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
183
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
Lines 366-373 function verify_images() { Link Here
366
        <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span>
369
        <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span>
367
        [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %]
370
        [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %]
368
371
369
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
372
        [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
370
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a>[% END %]
373
        </div><div class="yui-u" id="bookcoverimg">
374
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
375
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
376
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
377
            [% IF ( using_https ) %]
378
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
379
            [% ELSE %]
380
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
381
            [% END %]
382
        </a></div>[% END %][% END %]
383
        [% END %]
371
    [% ELSE %]
384
    [% ELSE %]
372
385
373
    <h3>[% title |html %]</h3>
386
    <h3>[% title |html %]</h3>
Lines 430-437 function verify_images() { Link Here
430
        </ul>
443
        </ul>
431
        </div>
444
        </div>
432
       
445
       
433
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
446
    [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
434
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a></div>[% END %]
447
        <div class="yui-u" id="bookcoverimg">
448
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
449
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
450
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
451
            [% IF ( using_https ) %]
452
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
453
            [% ELSE %]
454
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
455
            [% END %]
456
            </a>
457
        </div>
458
        [% END %][% END %]
459
        </div>
460
    [% END %]
435
        
461
        
436
        <div class="yui-u" style="margin-top: 1em;">
462
        <div class="yui-u" style="margin-top: 1em;">
437
        <ul>
463
        <ul>
(-)a/koha-tmpl/opac-tmpl/ccsr/en/js/localcovers.js (+1 lines)
Lines 23-28 KOHA.LocalCover = { Link Here
23
            var message = document.createElement("span");
23
            var message = document.createElement("span");
24
            $(message).attr("class","no-image");
24
            $(message).attr("class","no-image");
25
            $(message).html(NO_LOCAL_JACKET);
25
            $(message).html(NO_LOCAL_JACKET);
26
            $(mydiv).parent().find('.no-image').remove();
26
            $(mydiv).append(message);
27
            $(mydiv).append(message);
27
            var img = $("<img />").attr('src',
28
            var img = $("<img />").attr('src',
28
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
(-)a/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js (-1 / +1 lines)
Lines 23-28 KOHA.LocalCover = { Link Here
23
            var message = document.createElement("span");
23
            var message = document.createElement("span");
24
            $(message).attr("class","no-image");
24
            $(message).attr("class","no-image");
25
            $(message).html(NO_LOCAL_JACKET);
25
            $(message).html(NO_LOCAL_JACKET);
26
            $(mydiv).parent().find('.no-image').remove();
26
            $(mydiv).append(message);
27
            $(mydiv).append(message);
27
            var img = $("<img />").attr('src',
28
            var img = $("<img />").attr('src',
28
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
- 

Return to bug 11982