From b4e9d551dcd951e5f92f138cfa152d590a9fd49e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 24 Jun 2020 16:17:19 +0000 Subject: [PATCH] Bug 25869: Fix Coce display for lists To test: 1 - Enable Coce for Opac CoceHost: https://coce.bywatersolutions.com CoceProviders: Select all OpacCoce: Enable 2 - Do a search on the Opac, confirm you see some covers 3 - Add some of the items with covers to a public list 4 - View the public list 5 - Note no covers display 6 - Apply patch 7 - Success! Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit f77a377c939080eed36401746b5d722c91ee964b) Signed-off-by: Lucas Gass (cherry picked from commit ca2e551a4ab5aaf5a9e9fb0b87af4519d8fb5d61) Signed-off-by: Aleisha Amohia --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 c0a9069038..50789e8a62 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -339,7 +339,7 @@ [% END %] [% END %] - [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %] + [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] [% coce_id = itemsloo.normalized_ean || itemsloo.normalized_isbn %] [% IF ( coce_id ) %] @@ -963,7 +963,7 @@ $(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') ) %] + [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]'); [% END %] -- 2.39.5