--- .../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 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
