From 2892d964c72f4c4073fbc03e4149149dfc4553cb 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: Michal Denar Signed-off-by: Michal Denar --- 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 10d452da36..37187dc21d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -358,6 +358,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 d235292875..c2f7c576b6 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -328,7 +328,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.11.0