Bug 40638 - Cover images should not remove the container when an image is not found on the results page
Summary: Cover images should not remove the container when an image is not found on th...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-12 15:52 UTC by Lucas Gass (lukeg)
Modified: 2025-08-12 15:52 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-08-12 15:52:17 UTC
If you look at pages/results.js the cover images container is removed when no image is loaded:

103             } else {
104                 blanks.push(coverId);
105                 div.remove();
106             } /* /IF there is an image tag */
107             /* console.log( coverImages ); */


If you are on a slower connection this can remove the entire container before the image has gotten a chance to load. 


This is mostly a problem with results pages where many images are trying to load.