From eaf82964fbdf9380433143b65798fb17f05b823d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 27 Oct 2008 14:41:01 -0500 Subject: [PATCH] This file was missing from previous commit. bakertaylorimages.js manages the display of 'missing cover' text when Baker & Taylor images are used. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 0000000000..00b025a56d --- /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(""+NO_BAKERTAYLOR_IMAGE+""); + } + } + }); + } -- 2.39.5