From dabf82999dfb2570dc3fca077f03d1bfe396d2b9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 Feb 2016 14:46:45 +0000 Subject: [PATCH] [SIGNED-OFF] 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 --- .../opac-tmpl/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 0e20fcf..147ae00 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 %] @@ -935,6 +945,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.1.4