Browse Source

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 <hayleymapley@catalyst.net.nz>
Signed-off-by: Hugo Agud <hagud@orex.es>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
remotes/origin/19.11.x
Jonathan Druart 5 years ago
committed by Martin Renvoize
parent
commit
558929d85d
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 5
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
  2. 3
      opac/opac-shelves.pl

5
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt

@ -360,6 +360,11 @@
<span class="no-image">No cover image available</span>
[% END %]
[% END %]
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
<img alt="Cover image" src="[% itemsloo.biblio_object.custom_cover_image_url | url %]" /></a>
[% END %]
</div>
[% IF ( itemsloo.XSLTBloc ) %]
[% itemsloo.XSLTBloc | $raw %]

3
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;
}

Loading…
Cancel
Save