Browse Source

Bug 29567: (bug 28445 follow-up) Restore cataloguing plugins

Broken by bug 28445.

See also the FIXME from
  commit 86156da415
  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>
21.11.x
Jonathan Druart 2 years ago
parent
commit
af0ec1e715
  1. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt

3
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' %]
<script>
// Prepare array of all column headers, incrementing each index by
// two to accommodate control and title columns
@ -283,7 +284,7 @@
[%- UNLESS (too_many_items_process) -%]
[%- FOREACH subfield IN subfields -%]
[% SET mv = subfield.marc_value %]
[%- IF ( mv.type == 'text2' ) -%]
[%- IF ( mv.type == 'text_plugin' ) -%]
<!-- subfield[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %] -->
[% mv.javascript | $raw %]
[%- END -%]

Loading…
Cancel
Save