From 41aec2dccb00fd3fa88b1cdd7a8f9258a6b7698b 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 --- 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 581adfdd1e..a1bff69991 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 ab1a835c08..51eb0d8f6e 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