From 558929d85d1eb909459d42f2ab7288435937206b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Feb 2019 18:50:21 -0300 Subject: [PATCH] Bug 22445: Custom cover images - opac shelves Test plan: Add a bibliographic record (that has a custom image) to a shelf, view the shelf (OPAC). You should see the 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 --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 5 +++++ opac/opac-shelves.pl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 358475e5ef..b9e7a67f69 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -360,6 +360,11 @@ No cover image available [% END %] [% END %] + + [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] + Cover image + [% END %] + [% IF ( itemsloo.XSLTBloc ) %] [% itemsloo.XSLTBloc | $raw %] diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index 8ae84e414d..802366d994 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -327,7 +327,8 @@ if ( $op eq 'view' ) { $this_item->{incart} = 1; } - $this_item->{biblionumber} = $biblionumber; + $this_item->{biblio_object} = $biblio; + $this_item->{biblionumber} = $biblionumber; push @items, $this_item; } -- 2.39.5