Lines 42-54
function verify_images() {
Link Here
|
42 |
} |
42 |
} |
43 |
}); |
43 |
}); |
44 |
$("#editions img").each(function(i){ |
44 |
$("#editions img").each(function(i){ |
45 |
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'))) { |
45 |
if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) |
|
|
46 |
|| (this.src.indexOf('images-na.ssl-images-amazon.com') >= 0)) { |
46 |
w = this.width; |
47 |
w = this.width; |
47 |
h = this.height; |
48 |
h = this.height; |
48 |
if ((w == 1) || (h == 1)) { |
49 |
if ((w == 1) || (h == 1)) { |
49 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
50 |
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>"); |
50 |
} else if ((this.complete != null) && (!this.complete)) { |
51 |
} else if ((this.complete != null) && (!this.complete)) { |
51 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
52 |
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>"); |
52 |
} |
53 |
} |
53 |
} |
54 |
} |
54 |
}); |
55 |
}); |
Lines 349-355
function verify_images() {
Link Here
|
349 |
|
350 |
|
350 |
[% IF ( XSLTDetailsDisplay ) %] |
351 |
[% IF ( XSLTDetailsDisplay ) %] |
351 |
[% XSLTBloc %] |
352 |
[% XSLTBloc %] |
352 |
|
|
|
353 |
[% IF ( GetShelves ) %] |
353 |
[% IF ( GetShelves ) %] |
354 |
<span class="results_summary"><span class="label">Lists that include this title: </span> |
354 |
<span class="results_summary"><span class="label">Lists that include this title: </span> |
355 |
[% FOREACH GetShelve IN GetShelves %] |
355 |
[% FOREACH GetShelve IN GetShelves %] |
Lines 374-380
function verify_images() {
Link Here
|
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 %] |
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 %] |
375 |
|
375 |
|
376 |
[% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg"> |
376 |
[% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg"> |
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 %] |
377 |
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"> |
|
|
378 |
[% IF ( using_https ) %] |
379 |
<img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /> |
380 |
[% ELSE %] |
381 |
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /> |
382 |
[% END %] |
383 |
</a>[% END %] |
378 |
[% ELSE %] |
384 |
[% ELSE %] |
379 |
|
385 |
|
380 |
<h3>[% title |html %]</h3> |
386 |
<h3>[% title |html %]</h3> |
Lines 438-444
function verify_images() {
Link Here
|
438 |
</div> |
444 |
</div> |
439 |
|
445 |
|
440 |
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg"> |
446 |
[% IF ( AmazonCoverImages ) %]<div class="yui-u" id="bookcoverimg"> |
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 %] |
447 |
<a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"> |
|
|
448 |
[% IF ( using_https ) %] |
449 |
<img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /> |
450 |
[% ELSE %] |
451 |
<img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /> |
452 |
[% END %] |
453 |
</a></div> |
454 |
[% END %] |
442 |
|
455 |
|
443 |
<div class="yui-u" style="margin-top: 1em;"> |
456 |
<div class="yui-u" style="margin-top: 1em;"> |
444 |
<ul> |
457 |
<ul> |
Lines 944-950
function verify_images() {
Link Here
|
944 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] |
957 |
[% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] |
945 |
<div id="editions"><h4>Editions</h4> |
958 |
<div id="editions"><h4>Editions</h4> |
946 |
<table> |
959 |
<table> |
947 |
[% 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 %] |
960 |
[% FOREACH XISBN IN XISBNS %] |
|
|
961 |
<tr> |
962 |
[% IF ( AmazonCoverImages ) %] |
963 |
<td> |
964 |
<a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"> |
965 |
[% IF ( using_https ) %] |
966 |
<img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a> |
967 |
[% ELSE %] |
968 |
<img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" /></a> |
969 |
[% END %] |
970 |
</td> |
971 |
[% END %] |
948 |
[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %] |
972 |
[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %]<img src="[% XISBN.imageurl %]" alt="[% XISBN.description %]" title="[% XISBN.description %]">[% END %]</td>[% END %] |
949 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] ©[% XISBN.copyrightdate %] |
973 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a> by [% XISBN.author %] ©[% XISBN.copyrightdate %] |
950 |
[% IF ( XISBN.publishercode ) %] |
974 |
[% IF ( XISBN.publishercode ) %] |