From 06681a90c91a609b3d9affa3a8254b81e100d6db Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 21 Aug 2019 02:24:11 +0000 Subject: [PATCH] Bug 23482: Fix BakerTaylor cover images on lists While this needs a username/pass to fully test, it should be possible to verify the code changes by comparing to opac-results code To test: 1 - Enable BakerTaylor images 2 - Enter your usernme and password 3 - Do not fill the BookStore URL 4 - Verify OPAC covers are working 5 - Save some times with covers to a public list 6 - Verify they do not display in list 7 - Apply patch 8 - Verify images now work Signed-off-by: Kelly McElligott --- opac/opac-shelves.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index b9724ee214..bfa28e29f0 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -42,6 +42,13 @@ use Koha::RecordProcessor; use constant ANYONE => 2; +BEGIN { + if (C4::Context->preference('BakerTaylorEnabled')) { + require C4::External::BakerTaylor; + import C4::External::BakerTaylor qw(&image_url &link_url); + } +} + my $query = new CGI; my $template_name = $query->param('rss') ? "opac-shelves-rss.tt" : "opac-shelves.tt"; -- 2.11.0