From a981c2aaf95f9c82fdffcf46eb5b2b07d59c2e53 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 Signed-off-by: Jared Camins-Esakov --- .../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 a0944ae8d3..b3f23d0b92 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -530,10 +530,19 @@ $(document).ready(function(){ [% 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