+ [% IF ( AmazonCoverImages ) %]
+
+
+ [% IF ( using_https ) %]
+
+ [% ELSE %]
+
+ [% END %]
+ |
+ [% END %]
[% UNLESS ( item_level_itypes ) %][% IF ( noItemTypeImages ) %][% XISBN.description %][% ELSE %][% END %] | [% END %]
[% XISBN.title |html %] by [% XISBN.author %] ©[% XISBN.copyrightdate %]
[% IF ( XISBN.publishercode ) %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
@@ -13,21 +13,6 @@ var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
var q_array = new Array(); // will hold search terms, if present
[% IF ( AmazonCoverImages ) %]
-// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
-function verify_images() {
- $("img").each(function(i){
- if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
- w = this.width;
- h = this.height;
- if ((w == 1) || (h == 1)) {
- this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
- } else if ((this.complete != null) && (!this.complete)) {
- this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
- }
- }
- });
-}
-
$(window).load(function() {
verify_images();
});
@@ -449,11 +434,17 @@ var holdForPatron = function () {
[% IF ( LocalCoverImages ) %]
[% END %]
- [% IF ( AmazonCoverImages ) %]
-
-
-
- [% END %]
+
+ [% IF ( SEARCH_RESULT.normalized_isbn ) %]
+ [% IF ( using_https ) %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% ELSE %]
+ No cover image available
+ [% END %]
+
|
[% END %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt
@@ -37,7 +37,16 @@
ISBN [% SEARCH_RESULT.isbn |html %]
[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% END %][% END %]
[% END %][% END %]
+[% IF ( OPACAmazonCoverImages ) %]
+ [% IF ( SEARCH_RESULT.normalized_isbn ) %]
+ [% IF ( using_https ) %]
+
+ [% ELSE %]
+
+ [% END %]
+ [% END %]
+[% END %]
+
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]
[% ELSE %]
--- a/koha-tmpl/opac-tmpl/bootstrap/js/amazonimages.js
+++ a/koha-tmpl/opac-tmpl/bootstrap/js/amazonimages.js
@@ -1,14 +1,15 @@
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
function verify_images() {
- $("img").each(function(i){
- if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('syndetics.com') >=0) ) {
+ $("img").each(function(i){
+ if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)
+ || (this.src.indexOf('syndetics.com') >=0) || (this.src.indexOf('images-na.ssl-images-amazon.com') >= 0)) {
w = this.width;
h = this.height;
if ((w == 1) || (h == 1)) {
- $(this).parent().html(""+NO_AMAZON_IMAGE+"");
+ $(this).parent().html(""+NO_AMAZON_IMAGE+"");
} else if ((this.complete != null) && (!this.complete)) {
- $(this).parent().html(""+NO_AMAZON_IMAGE+"");
+ $(this).parent().html(""+NO_AMAZON_IMAGE+"");
}
}
- });
- }
+ });
+}
--
|