From 85b963d11fb5d8674ca6b0ec60821663f9d8cf19 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 --- .../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 f662c88ff1..0791bb6269 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -301,7 +301,7 @@ [% IF ( OPACAmazonCoverImages ) %] [% IF ( itemsloo.normalized_isbn ) %] - + [% ELSE %] No cover image available [% END %] @@ -309,9 +309,9 @@ [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] [% IF ( using_https ) %] - + [% ELSE %] - + [% END %] [% END %] @@ -323,6 +323,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 %] @@ -928,6 +938,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