From b4f390e366006d0fd2c24a4eca8005921f2c5b75 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 Content-Type: text/plain; charset=utf-8 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 --- .../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 9135e7ef7d..398b41d0f2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1260,6 +1260,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' %] -- 2.39.5