[Koha-bugs] [Bug 35647] New: Coce images won't load on the staff results page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 22 22:39:27 CET 2023


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

            Bug ID: 35647
           Summary: Coce images won't load on the staff results page
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: lucas at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

To recreate:

1. Turn on all CoceProviders and IntranetCoce.
2. Set CoceHost to 'https://coce.bywatersolutions.com'
3. Do a search and notice that no Coce images load on the results page.
4. In intranet-tmpl/js/coce.js add a debug line inside the
`$("[id^=coce-thumbnail]").each(function() {` loop.
5. Nothing happens! This div is being prematurely removed via
intranet-tmpl/prog/js/pages/results.js

I don't think it is safe to remove the Coce div's without first knowing that
KOHA.coce is finished. In results.js:

102 $(window).load(function() {
103     verify_cover_images();
104 });


Just using a window load is not good enough. We either need to not remove the
div ( hiding it is safer ) or we need to use a callback, promise, or
async/await.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list