From 9bc2a942201722297b744f7df1ffe01b70a8d541 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: Michal Denar Signed-off-by: Michal Denar --- catalogue/detail.pl | 2 ++ .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 027ca5253a..19537fa0c6 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -534,6 +534,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 6520134dc2..019c4aad15 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -69,8 +69,14 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %] -
+ [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] + [% IF ( XSLTDetailsDisplay ) %] +
+
+ [% ELSE %] +
+
+ [% END %] [% ELSE %]
[% END %] @@ -121,7 +127,7 @@ [% END %] - [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %] + [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
[% IF ( LocalCoverImages ) %]
@@ -135,6 +141,10 @@
[% END %] + + [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %] + Cover image + [% END %] [% END %]
-- 2.11.0