From bb4c9592e76f36c2a83f1e38f2deaa7b8309ca9f Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 7 Mar 2012 13:29:58 -0600 Subject: [PATCH] Bug 7665 - Bibs with no ISBN's show broken images for covers when using Syndetics cover images Patch fixes problem for syndetics + bibs with no ISBN. Also adds "no image found" capability to Syndetics results. To test (first, contact me and I will let you use my syndetics credentials *for testing this bug only*): * replicate bug - have a bib with an ISBN, and one without. The one with the ISBN should show a cover, the one without will show a broken image. * apply patch * search for the same bib - you should now see "no image available" for the one with no ISBN, and a cover image for your bib with an ISBN. Signed-off-by: Owen Leonard Signed-off-by: Ian Walls QA Comment: normalized spacing Signed-off-by: Paul Poulain --- .../opac-tmpl/prog/en/modules/opac-results.tt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index 26a97a42d7..bf0e6cd172 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -535,10 +535,19 @@ $(document).ready(function(){ [% IF ( OPACLocalCoverImages ) %][% END %] [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %][% ELSE %]No cover image available[% END %][% END %][% END %] - [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %] - - [% ELSE %] - [% END %][% END %][% END %] + [% IF ( SyndeticsEnabled ) %] + [% IF ( SyndeticsCoverImages ) %] + [% IF SEARCH_RESULT.normalized_isbn %] + [% IF ( using_https ) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + No cover image available + [% END %] + [% END %] + [% END %] [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]
[% ELSE %]No cover image available[% END %][% END %] [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %]
[% ELSE %]No cover image available[% END %][% END %] -- 2.39.5