@@ -, +, @@
class, in the staff client
span.no-image {
display: none;
}
observe that 'no image' images are still displaying :(
observe that 'no image' images are not displaying :)
---
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 4 ++++
1 file changed, 4 insertions(+)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
@@ -22,7 +22,9 @@
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 ) %]
+var NO_AMAZON_IMAGE = _("No cover image available");
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
function verify_images() {
$("img").each(function(i){
@@ -31,8 +33,10 @@ function verify_images() {
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';
+ $(this).parent().html(""+NO_AMAZON_IMAGE+"");
} 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';
+ $(this).parent().html(""+NO_AMAZON_IMAGE+"");
}
}
});
--