From 25f15d8785913ff5824d149c305bded9031cf5b8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 6 Feb 2019 13:15:00 +0000 Subject: [PATCH] Bug 21989: [18.05.x] JS error in "Add orders from MARC file" - addorderiso2709.pl This patch undoes the changes to addorderiso2709.tt introduced by Bug 19753. 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 | 308 ++++++++++----------- 1 file changed, 152 insertions(+), 156 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 44880f89..6627bcf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -1,7 +1,6 @@ [% USE Asset %] [% USE KohaDates %] [% USE Branches %] -[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › Order staged MARC records [% IF ( batch_details ) %] @@ -11,8 +10,159 @@ [% END %] [% Asset.css("css/datatables.css") %] - + [% INCLUDE 'doc-head-close.inc' %] +[% Asset.js("js/acquisitions-menu.js") %] +[% INCLUDE 'datatables.inc' %] +[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] +[% Asset.js("js/acq.js") %] + @@ -425,158 +575,4 @@ -[% MACRO jsinclude BLOCK %] - [% Asset.js("js/acquisitions-menu.js") %] -[% INCLUDE 'datatables.inc' %] - [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] - [% Asset.js("js/acq.js") %] - -[% END %] - [% INCLUDE 'intranet-bottom.inc' %] -- 2.1.4