Bug 37330: (bug 33526 follow-up) Fix display of cover images for items

The id has been modified by bug 33526. We can simply pass the table
element however.

Test plan:
Have some cover images at item level and notice that they are correctly
displayed on the bibliographic record detail page.

Note that the slider does not work correctly. If you click on the dot
(so if you have several images for an item) the scrollbar is going to
hit the top of the page and the image won't change.
Could be reported separately if not done yet.

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2024-09-16 11:31:45 +02:00 committed by Martin Renvoize
parent 326c0156f4
commit 1e3d24e058
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -1480,8 +1480,7 @@
}
let build_items_table_drawncallback = function (table) {
let tab_id = table.parents('.tab-pane').attr('id');
verify_cover_images($("#" + tab_id + '_table'));
verify_cover_images(table);
};
function removeLocalImage(imagenumber) {