https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36154

--- Comment #58 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 203646
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203646&action=edit
Bug 36154: Inject plugin cover images into the OPAC shelf browser widget

The shelf browser widget ("Browse shelf" on opac-detail.pl) is rendered
server-side by svc/shelfbrowser.tt, which processes shelfbrowser.inc
directly and is never routed through opac-bottom.inc. Because of that, the
CoverImagePlugins output added for the rest of the OPAC in the previous
patch is not automatically available here and has to be set up and printed
explicitly in this template too.

Test plan:
1. Enable plugins and install/enable a plugin implementing opac_cover_images
   (see the previous patch in this series for a minimal example method)
2. In the OPAC, open a bibliographic detail page for a title shelved near
   other items, and click "Browse shelf" to open the shelf browser
3. View the page source of the shelf browser response
   (/cgi-bin/koha/svc/shelfbrowser)
   => Before the patch, the plugin's <script> output is absent
   => After the patch, it is present and its console.log fires
4. Disable the plugin and confirm the shelf browser still renders normally
   for titles using Local/Custom/Amazon/Syndetics/GoogleJackets/Coce cover
   sources

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to