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 155-160 function verify_images() { Link Here
155
155
156
            return false;
156
            return false;
157
        });
157
        });
158
        [% IF LocalCoverImages %]
159
        KOHA.LocalCover.GetCoverFromBibnumber(true);
160
        [% END %]
158
    });
161
    });
159
162
160
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
163
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
Lines 346-353 function verify_images() { Link Here
346
        <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>
349
        <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>
347
        [% 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 %]
350
        [% 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 %]
348
351
349
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
352
        [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
350
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a>[% END %]
353
        </div><div class="yui-u" id="bookcoverimg">
354
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
355
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
356
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
357
            [% IF ( using_https ) %]
358
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
359
            [% ELSE %]
360
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
361
            [% END %]
362
        </a></div>[% END %][% END %]
363
        [% END %]
351
    [% ELSE %]
364
    [% ELSE %]
352
365
353
    <h3>[% title |html %]</h3>
366
    <h3>[% title |html %]</h3>
Lines 410-417 function verify_images() { Link Here
410
        </ul>
423
        </ul>
411
        </div>
424
        </div>
412
       
425
       
413
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
426
    [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
414
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a></div>[% END %]
427
        <div class="yui-u" id="bookcoverimg">
428
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
429
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
430
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
431
            [% IF ( using_https ) %]
432
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
433
            [% ELSE %]
434
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
435
            [% END %]
436
            </a>
437
        </div>
438
        [% END %][% END %]
439
        </div>
440
    [% END %]
415
        
441
        
416
        <div class="yui-u" style="margin-top: 1em;">
442
        <div class="yui-u" style="margin-top: 1em;">
417
        <ul>
443
        <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