[Koha-patches] [PATCH] This file was missing from previous commit. bakertaylorimages.js manages the display of 'missing cover' text when Baker & Taylor images are used.

Owen Leonard oleonard at myacpl.org
Mon Oct 27 20:41:01 CET 2008


---
 .../opac-tmpl/prog/en/js/bakertaylorimages.js      |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js

diff --git a/koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js b/koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js
new file mode 100644
index 0000000..00b025a
--- /dev/null
+++ b/koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js
@@ -0,0 +1,11 @@
+// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
+function bt_verify_images() {
+	$("img").each(function(i){
+	       if (this.src.indexOf('btol.com') >= 0) {
+            h = this.height;
+            if (h == 20) {
+				$(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+NO_BAKERTAYLOR_IMAGE+"</span>");
+            }
+		}
+		});
+		}
-- 
1.5.5.GIT




More information about the Koha-patches mailing list