Bug 32542 - Coce images not appearing in staff interface
Summary: Coce images not appearing in staff interface
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 20:31 UTC by Lucas Gass (lukeg)
Modified: 2023-07-20 15:58 UTC (History)
6 users (show)

See Also:
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) 2022-12-28 20:31:40 UTC
To recreate:

1. Have Coce on, use 'https://coce.bywatersolututions.com' as the CoceProviders if needed. Select all providers
2. Turn on IntranetCoce and OpacCoce.
3. Do a OPAC search to retrieve some Coce images on both the OPAC results page and detail. 
4. Do the same search and look at the same detail pages in the staff client. Nothing appears.
Comment 1 Lucas Gass (lukeg) 2022-12-29 17:55:00 UTC
It seems like what is happening here is that we are removing the containers prematurely. 

coce.js fetches the images and adds them but not before other JS in results.js is deciding there is no image and removing the container.
Comment 2 Esther Melander 2023-03-14 17:52:44 UTC
This problem appears to be intermittent and random. For example, do a catalog search in the staff interface and the image will not show. Do the same search a few days later and the image shows. When doing a search and building a list with lots of different titles, some cover images show, others do not. We have tested different browsers, deleting cache, having librarians search on different browsers and computers, and the book covers will show one place and not another. We cannot pinpoint a reproducible show/not show of book cover images.
Comment 3 Lucas Gass (lukeg) 2023-06-29 15:18:45 UTC
(In reply to Esther Melander from comment #2)
> This problem appears to be intermittent and random. For example, do a
> catalog search in the staff interface and the image will not show. Do the
> same search a few days later and the image shows. When doing a search and
> building a list with lots of different titles, some cover images show,
> others do not. We have tested different browsers, deleting cache, having
> librarians search on different browsers and computers, and the book covers
> will show one place and not another. We cannot pinpoint a reproducible
> show/not show of book cover images.

Esther, the problem being intermittent and random makes sense to me. When the call to Coce takes too long we removed the parent container. So this can depend on the speed of your network connection.

I can more reliably recreate the issue when I clear my cache, as it then takes more time to load the images when nothing is cached.