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

(-)a/koha-tmpl/intranet-tmpl/prog/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/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
                '/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +30 lines)
Lines 184-189 function verify_images() { Link Here
184
        $("#marcPreview").on("hidden", function(){
184
        $("#marcPreview").on("hidden", function(){
185
            $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
185
            $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
186
        });
186
        });
187
        [% IF LocalCoverImages %]
188
        KOHA.LocalCover.GetCoverFromBibnumber(true);
189
        [% END %]
187
    });
190
    });
188
191
189
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
192
     [% IF ( AmazonCoverImages ) %]$(window).load(function() {
Lines 373-380 function verify_images() { Link Here
373
        <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 %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
376
        <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 %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
374
        [% 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 %]
377
        [% 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 %]
375
378
376
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
379
        [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
377
        <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 %]
380
        </div><div class="yui-u" id="bookcoverimg">
381
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
382
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
383
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
384
            [% IF ( using_https ) %]
385
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
386
            [% ELSE %]
387
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
388
            [% END %]
389
        </a></div>[% END %][% END %]
390
        [% END %]
378
    [% ELSE %]
391
    [% ELSE %]
379
392
380
    <h3>[% title |html %]</h3>
393
    <h3>[% title |html %]</h3>
Lines 437-444 function verify_images() { Link Here
437
        </ul>
450
        </ul>
438
        </div>
451
        </div>
439
       
452
       
440
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
453
    [% IF ( ( AmazonEnabled && AmazonCoverImages ) || LocalCoverImages ) %]
441
<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 %]
454
        <div class="yui-u" id="bookcoverimg">
455
        [% IF ( LocalCoverImages ) %]<div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>[% END %]
456
        [% IF ( AmazonEnabled ) %][% IF ( AmazonCoverImages ) %]<div id="bookcoverimg">
457
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link">
458
            [% IF ( using_https ) %]
459
            <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
460
            [% ELSE %]
461
            <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
462
            [% END %]
463
            </a>
464
        </div>
465
        [% END %][% END %]
466
        </div>
467
    [% END %]
442
        
468
        
443
        <div class="yui-u" style="margin-top: 1em;">
469
        <div class="yui-u" style="margin-top: 1em;">
444
        <ul>
470
        <ul>
(-)a/koha-tmpl/opac-tmpl/bootstrap/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