Bug 30388: Fix some errors in the template for ordering from a MARC file
authorOwen Leonard <oleonard@myacpl.org>
Mon, 28 Mar 2022 17:28:50 +0000 (17:28 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Jun 2022 17:01:58 +0000 (14:01 -0300)
commit5f9214658850ce2e1fabecfeb10cd011f354a5e0
tree2d84dc36181ced85f204f0ba7432093e41066c5a
parentcec9ba5283f9766a277ec5416e6cb24c06680c65
Bug 30388: Fix some errors in the template for ordering from a MARC file

This patch fixes a few markup errors in the addorder2709 template. The
modal dialog markup is corrected and moved out of the loop of records so
that it doesn't create repeating id attributes. Obsolete CSS is removed,
fixing the width of the MARC preview modal.

The calendar include is added, fixing a Flatpickr error in the console.

Double ID attributes are removed from the Statistics 1 and Statistics 2
fields.

To test, apply the patch and test the process of adding an order to a
basket from a staged MARC file. Test in particular:

 - The MARC and Card previews
 - The "Date acquired" field under the "Item information" tab should
   trigger a Flatpickr widget.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt