From 8767b2346901bfe2f1b96882b216f53e75fe368e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Feb 2019 19:11:19 -0300 Subject: [PATCH] Bug 22445: Custom cover images - detail (staff) Test plan: Staff side now, go the detail page of a bibliographic record You should see the cover image. Sponsored-by: Orex Digital Signed-off-by: Hayley Mapley Signed-off-by: Hugo Agud Signed-off-by: Owen Leonard Signed-off-by: Michal Denar Signed-off-by: Kyle Hall Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- catalogue/detail.pl | 2 ++ .../prog/en/modules/catalogue/detail.tt | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index b4d9bae646..303d709c7b 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -533,6 +533,8 @@ foreach my $myorder (@allorders_using_biblio) { } } +$template->param(biblio => $biblio); + my $count_orders_using_biblio = scalar @orders_using_biblio ; $template->param (countorders => $count_orders_using_biblio); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 4f6f474db6..21feb30194 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -73,8 +73,12 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %] -
+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] + [% IF ( XSLTDetailsDisplay ) %] +
+ [% ELSE %] +
+ [% END %] [% ELSE %]
[% END %] @@ -125,7 +129,7 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %] + [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
[% IF ( LocalCoverImages ) %]
@@ -149,6 +153,10 @@ [% END %] [% END %] + + [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] + Cover image + [% END %] [% END %]
-- 2.20.1