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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-7 / +7 lines)
Lines 27-33 Link Here
27
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
27
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
28
function verify_images() {
28
function verify_images() {
29
    $("#bookcoverimg img").each(function(i){
29
    $("#bookcoverimg img").each(function(i){
30
           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
30
           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
31
            w = this.width;
31
            w = this.width;
32
            h = this.height;
32
            h = this.height;
33
            if ((w == 1) || (h == 1)) {
33
            if ((w == 1) || (h == 1)) {
Lines 40-52 function verify_images() { Link Here
40
        }
40
        }
41
        });
41
        });
42
	$("#editions img").each(function(i){
42
	$("#editions img").each(function(i){
43
           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
43
           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com'))) {
44
            w = this.width;
44
            w = this.width;
45
            h = this.height;
45
            h = this.height;
46
            if ((w == 1) || (h == 1)) {
46
            if ((w == 1) || (h == 1)) {
47
				this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
47
                          this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
48
            } else if ((this.complete != null) && (!this.complete)) {
48
            } else if ((this.complete != null) && (!this.complete)) {
49
				this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
49
                             this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
50
            }
50
            }
51
        }
51
        }
52
        });
52
        });
Lines 246-252 function verify_images() { Link Here
246
        [% 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 %]
246
        [% 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 %]
247
247
248
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
248
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
249
        <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 %]
249
        <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 %]
250
    [% ELSE %]
250
    [% ELSE %]
251
251
252
    <h3>[% title |html %]</h3>
252
    <h3>[% title |html %]</h3>
Lines 310-316 function verify_images() { Link Here
310
        </div>
310
        </div>
311
       
311
       
312
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
312
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg">
313
<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 %]
313
<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 %]
314
        
314
        
315
        <div class="yui-u" style="margin-top: 1em;">
315
        <div class="yui-u" style="margin-top: 1em;">
316
        <ul>
316
        <ul>
Lines 706-712 function verify_images() { Link Here
706
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
706
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]
707
<div id="editions"><h4>Editions</h4>
707
<div id="editions"><h4>Editions</h4>
708
<table>
708
<table>
709
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
709
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
710
[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
710
[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %]
711
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
711
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] &copy;[% XISBN.copyrightdate %]
712
  [% IF ( XISBN.publishercode ) %]
712
  [% IF ( XISBN.publishercode ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +3 lines)
Lines 19-27 function verify_images() { Link Here
19
            w = this.width;
19
            w = this.width;
20
            h = this.height;
20
            h = this.height;
21
            if ((w == 1) || (h == 1)) {
21
            if ((w == 1) || (h == 1)) {
22
                this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
22
                this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
23
            } else if ((this.complete != null) && (!this.complete)) {
23
            } else if ((this.complete != null) && (!this.complete)) {
24
                this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
24
                this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
25
            }
25
            }
26
        }
26
        }
27
    });
27
    });
Lines 441-447 var holdForPatron = function () { Link Here
441
                                <td>
441
                                <td>
442
                                    <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
442
                                    <a class="p1" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
443
									
443
									
444
                                        <img src="[% IF ( SEARCH_RESULT.normalized_isbn ) %]http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg[% ELSE %]http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif[% END %]" alt="" class="thumbnail" />
444
                                        <img src="[% IF ( SEARCH_RESULT.normalized_isbn ) %]https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg[% ELSE %]https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif[% END %]" alt="" class="thumbnail" />
445
                                    </a></td>
445
                                    </a></td>
446
                            [% END %]
446
                            [% END %]
447
                            <td>
447
                            <td>
448
- 

Return to bug 10944