From 2eb8d90fc4e4e9bd8b056d415d5f3f8db9d42e5a Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 16 Feb 2009 10:42:36 -0600 Subject: [PATCH] Second patch to address LL Bug 367 Titles without ISBNs display "no cover image available" while titles with ISBNS that don't match a Syndetics cover display nothing Signed-off-by: Galen Charlton --- .../opac-tmpl/prog/en/includes/doc-head-close.inc | 13 ++++++++++++- koha-tmpl/opac-tmpl/prog/en/js/amazonimages.js | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index 16f611e37e..c70d1dd91f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -23,7 +23,15 @@ var NO_AMAZON_IMAGE = _("No cover image available"); //]]> - + + + + + + @@ -41,6 +49,9 @@ $(window).load(function() { verify_images(); }); + $(window).load(function() { + verify_images(); + }); //]]> diff --git a/koha-tmpl/opac-tmpl/prog/en/js/amazonimages.js b/koha-tmpl/opac-tmpl/prog/en/js/amazonimages.js index f7b4887e55..a4ca4ef426 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/amazonimages.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/amazonimages.js @@ -1,7 +1,7 @@ // 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) ) { + if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0) || (this.src.indexOf('syndetics.com') >=0) ) { w = this.width; h = this.height; if ((w == 1) || (h == 1)) { -- 2.39.5