https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41905
Bug ID: 41905
Summary: Local cover images are not displayed in the OPAC
public list page (opac-shelves.pl)
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
When viewing a public list in OPAC (opac-shelves.pl), cover images
are displayed using a lightbox/slider mechanism. Cover images are
loaded based on enabled system preferences,for e.g. including:
- OPACAmazonCoverImages
- GoogleJackets
- OpenLibraryCovers
- LocalCoverImages
All available cover sources should be included in the lightbox
slider.
Issue:
Local cover images are not included in the OPAC list page
lightbox slider, regardless of whether external cover images
(Amazon, Google, OpenLibrary) are available.
Observed behavior:
Scenario A – External cover images available:
1. A bibliographic record has a cover image available from Amazon,
Google, or OpenLibrary.
2. A local cover image is also uploaded for the same record.
3. On OPAC search results and bibliographic detail pages, the
local cover displays correctly.
4. On the OPAC public list page (opac-shelves.pl), the lightbox
slider displays only external cover images.
5. The local cover image is not included in the slider.
Scenario B – No external cover images available:
1. A bibliographic record has no cover image available from Amazon,
Google, or OpenLibrary.
2. A local cover image is uploaded for the record.
3. On OPAC search results and bibliographic detail pages, the
local cover displays correctly.
4. On the OPAC public list page (opac-shelves.pl), no cover image
is displayed.
5. The local cover image is not shown.
Apply the Patch:
The attached patch modifies opac/opac-shelves.pl to ensure that
local cover images are correctly included in the cover image
rendering logic for the OPAC list page.
Test Plan:
1. Enable the following system preferences:
- OPACAmazonCoverImages
- GoogleJackets
- OpenLibraryCovers
- LocalCoverImages
2. Create a public list and add bibliographic records.
3. Scenario A:
a. Select a record with an available external cover image.
b. Upload a local cover image for the same record.
c. View the public list in OPAC.
d. Confirm the local cover image appears in the lightbox slider.
4. Scenario B:
a. Select a record with no external cover images available.
b. Upload a local cover image.
c. View the public list in OPAC.
d. Confirm the local cover image is displayed.
5. Verify that:
- OPAC search results & bibliographic detail pages continue to display
covers correctly.
- No regressions occur in cover image rendering.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/