From b314f6d056d463b0b4656ba66ce66f4330bba8eb 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 --- .../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 6a182c17d7..c8af35f986 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.17.1