From 6083f87f55fd7f0447aec2e9a660da5caead58e1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 24 Nov 2021 11:56:52 +0100 Subject: [PATCH] Bug 29567: (bug 28445 follow-up) Restore cataloguing plugins Broken by bug 28445. See also the FIXME from commit 86156da415141e32e16f2090477be32bda241afb Bug 28445: Adjust code to handle regexs The problem is that the cataloguing plugins inject JS code in the DOM BEFORE the footer in somes page we have all the JS loaded at the end of the DOM and so $ (jQuery) is not defined It's working on additem as we don't have the JS in the footer, but the batch item mod tool has it there. Test plan: Batch edit items and confirm that cataloguing are working correctly with this patch applied. --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 75402985f02..a7207e4b0b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -225,6 +225,7 @@ [% INCLUDE 'datatables.inc' %] [% Asset.js("js/pages/batchMod.js") | $raw %] [% INCLUDE 'select2.inc' %] + [% INCLUDE 'calendar.inc' %]