Bug 29567: (bug 28445 follow-up) Restore cataloguing plugins
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Nov 2021 10:56:52 +0000 (11:56 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Nov 2021 08:48:42 +0000 (09:48 +0100)
commitaf0ec1e715a31fa16df0cb13e38de1cbdb03a1c1
tree7038ed3912bfa49f70ecda63f8cba096a5b1bc59
parent92dce6465e496dbf79d17ef2409ae2e498283773
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.

Signed-off-by: Andrew Nugged <nugged@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt