From 1a750d873e5a2931080d47129b3c36890c61bbe8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 Feb 2016 14:46:45 +0000 Subject: [PATCH] Bug 15924 - Coce not enabled on lists To test: Enable Coce and disable other image services Load a list and not there are no covers Apply patch Load a list and note there are covers https://bugs.koha-community.org/show_bug.cgi?id=15924 Signed-off-by: Owen Leonard Signed-off-by: Kyle M Hall Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart (cherry picked from commit 85b963d11fb5d8674ca6b0ec60821663f9d8cf19) Signed-off-by: Fridolin Somers (cherry picked from commit 669b6839eab456f36ed7c65a7a97fa7b386ab4e6) Signed-off-by: Katrin Fischer --- .../bootstrap/en/modules/opac-shelves.tt | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 70a09f5ebc..e4dde34174 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -308,7 +308,7 @@ [% IF ( OPACAmazonCoverImages ) %] [% IF ( itemsloo.normalized_isbn ) %] - + [% ELSE %] No cover image available [% END %] @@ -316,9 +316,9 @@ [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] [% IF ( using_https ) %] - + [% ELSE %] - + [% END %] [% END %] @@ -330,6 +330,16 @@ [% END %] [% END %] + [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] + [% coce_id = itemsloo.normalized_ean || itemsloo.normalized_isbn %] + [% IF ( coce_id ) %] + + [% ELSE %] + No cover image available + [% END %] + [% END %] + + [% IF OpenLibraryCovers %] [% IF itemsloo.normalized_isbn %] @@ -937,6 +947,10 @@ $(function() { [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %] [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] + [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] + KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]'); + [% END %] + $('#sort-submit').hide(); [% IF print %] -- 2.39.5