From 37c68ad1bc92109ebebacb0523cec1cda1b65bdf Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 1 Jul 2019 11:45:14 +0000 Subject: [PATCH] Bug 13597: Make staff client Amazon no image results match OPAC The point is to make staff client HTML for missing Amazon cover images more equivalent to that of the OPAC To test: 1 - Enable Amazon images everywhere 2 - Search on the staff and OPAC to get some results without Amazon covers (missing ISBNs and bad ISBNs) 3 - Note OPAC missing images are like: No cover image available 4 - Note staff client are like: 5 - The staff links do not lend themselves to easy CSS hiding/styling 6 - Apply patch 7 - Repeat 8 - Note increased consistency Signed-off-by: Maryse Simard Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit fcc22df8ff277ac7041d5eb72e83821fb1ef1f37) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 626b23823d..10d0f60ed8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -390,8 +390,8 @@ [% ELSIF ( !LocalCoverImages ) %] - - + + No cover image available [% END %] [% END # /IF AmazonCoverImages %] @@ -653,9 +653,9 @@ w = this.width; 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 cover image available'); } 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 cover image available'); } } }); -- 2.39.5