https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36154 --- Comment #57 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 203645 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203645&action=edit Bug 36154: Display cover images coming from plugins in the OPAC Adds the [% CoverImagePlugins | $raw %] output to the OPAC "Your summary" (opac-user.tt) and "Your reading history" (opac-readingrecord.tt) pages, and extends the shelf browser's (shelfbrowser.inc) cover-image gating condition, so that a plugin implementing the opac_cover_images plugin hook can inject cover images on these pages the same way it already can elsewhere in the OPAC. Test plan: 1. Enable plugins (<enable_plugins> in koha-conf.xml) and install/enable a plugin implementing the opac_cover_images hook. For example, add the following method to any installed plugin (see t/lib/plugins/Koha/Plugin/Test.pm for the shape of a minimal plugin package): sub opac_cover_images { my $self = shift; return q{<script>console.log("opac_cover_images hook fired");</script>}; } 2. Log in to the OPAC and check out/return a title so it appears in your history, then go to "Your summary" (opac-user.pl) => Before the patch, "View page source" shows no trace of the plugin's output => After the patch, the <script> block returned by opac_cover_images is present in the page source and its console.log fires 3. Go to "Your reading history" (opac-readingrecord.pl) => Same check as step 2 4. Open the title's detail page in the OPAC and click "Browse shelf" => The shelf browser's cover-image condition now also accounts for CoverImagePlugins (the script injection for the shelf browser itself is wired up by the next patch in this series, which updates svc/shelfbrowser.tt) 5. Disable the plugin (or turn off enable_plugins) and confirm the three pages above still behave exactly as before, and that GoogleJackets/ Amazon/Syndetics/local/custom cover images are unaffected -- You are receiving this mail because: You are watching all bug changes.