From 7c33240af25b3dd3a417efcc9e56ead3dcedd769 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 12 Jun 2025 09:54:16 +0200 Subject: [PATCH] Bug 40127: Move build_items_table outside of document.ready So it's not delayed and we catch have the error in the Cypress test. Otherwise the error appear too late (in the after each) and the test does not fail Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit 2d1c6b8666650ebf9968ca203a028a735aff0a91) Signed-off-by: Paul Derscheid --- .../prog/en/modules/catalogue/detail.tt | 85 ++++++++++--------- 1 file changed, 43 insertions(+), 42 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 5f026f36d3..6b5f1c9959 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1262,6 +1262,11 @@ [% Asset.js("js/recalls.js") | $raw %] [% Asset.js("js/coce.js") | $raw %] [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %] + + [%# The following PROCESS needs: %] + [%# can_edit_items_from item_type_image_locations %] + [% PROCESS build_items_table_js biblio => biblio %] + [% IF ( Koha.Preference('CatalogConcerns') ) %] - [%# The following PROCESS needs: %] - [%# can_edit_items_from item_type_image_locations %] - [% PROCESS build_items_table_js biblio => biblio %] - [% CoverImagePlugins | $raw %] [% END # /jsinclude %] [% INCLUDE 'intranet-bottom.inc' %]