From 3965ce05d5767656f9e393b0b341330b449da0f6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 14 May 2020 11:47:51 +0000 Subject: [PATCH] Bug 25473: Move JavaScript out of the footer of addorderiso2709.tt This patch undoes the move of the JavaScript block to the footer made in Bug 22734. The item information tab can include embedded JavaScript for cataloging plugins, and these don't currently work with JS in the footer. To test, apply the patch and test the JavaScript driven features of the "Add to basket from a staged file" page: - Acquisitions -> Vendor -> Basket -> Add to basket from a staged file - MARC and Card previews, select all/clear all - Item information tab: Cataloging plugins for fields like date acquired, barcode - Default accounting details tab: Show inactive control --- .../prog/en/modules/acqui/addorderiso2709.tt | 30 ++++++++++------------ 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 80d6cba40c..e30734d7ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -2,7 +2,6 @@ [% USE Asset %] [% USE KohaDates %] [% USE Branches %] -[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Order staged MARC records [% IF ( batch_details ) %] @@ -13,6 +12,19 @@ [% INCLUDE 'doc-head-close.inc' %] +[%# As long as cataloging plugins rely on @@ -432,20 +444,4 @@ [% # /div.col-sm-6 %] [% # /div.row %] - -[% MACRO jsinclude BLOCK %] - [% Asset.js("js/acquisitions-menu.js") | $raw %] - [% INCLUDE 'datatables.inc' %] - [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] - [% Asset.js("js/acq.js") | $raw %] - [% Asset.js("js/funds_sorts.js") | $raw %] - [% Asset.js("js/addorderiso2709.js") | $raw %] - -[% END %] - [% INCLUDE 'intranet-bottom.inc' %] -- 2.11.0