From 1e3d24e0589a622b823609b73039aac18cf37c95 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 16 Sep 2024 11:31:45 +0200 Subject: [PATCH] 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 Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index d465aca384..7a00e941dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -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) { -- 2.39.5