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 %] ©[% XISBN.copyrightdate %] |
711 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] ©[% XISBN.copyrightdate %] |
712 |
[% IF ( XISBN.publishercode ) %] |
712 |
[% IF ( XISBN.publishercode ) %] |