[Koha-bugs] [Bug 31207] The OPAC Shelf browser fails to display local cover images
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 31 11:50:47 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31207
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Failed QA
--- Comment #21 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
+ [% IF itemloop_has_images OR otheritemloop_has_images %]
+ KOHA.LocalCover.GetCoverFromItemnumber(true);
+ [% END %]
This is not correct, that's not what we want here.
You don't want to get the image at the item level if the *current* biblio has
image at the item level.
If you want to implement that you need to:
1. Create a new JS function in localcovers.jsĀ (say
GetCoverFromItemnumberOrBibnumber) that would call opac-image.pl with a new
parameter (say biblio-fallback=1)
2. Modify opac-image.pl to retrieve this parameter and return
$item->cover_image || $biblio->cover_image
The selenium test could also cover this situation :)
Does that make sense?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list