Bug 15867: Move MARC modification templates JavaScript into separate file
authorOwen Leonard <oleonard@myacpl.org>
Fri, 19 Feb 2016 18:30:44 +0000 (13:30 -0500)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 03:19:30 +0000 (03:19 +0000)
commit9bc924d08619d89e43ceb36aa8ac29f0a99b9b41
tree4e3ef319360aa15b74b4d6218dd6895941a06f75
parente651025dd9d78591ad364e9402c6172b3e91008e
Bug 15867: Move MARC modification templates JavaScript into separate file

The JavaScript embedded in the MARC modification templates template is
not dependent on template processing to such an extent that it can't
be safely moved to a separate file. This patch does so, adding
definition of a some translatable strings to the template.

Other minor changes: A couple of JSHint warnings corrected, a couple of
missing semicolons added to template markup.

To test, apply the patch and go to Tools -> MARC modification templates

- Confirm that The add/update form works normally with various actions
  (Add/update,Delete,Move, etc.).
- Confirm that template switching works correctly.
- Confirm that template deletion confirmation works correctly.
- Confirm that cancelling an edit works correctly

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/js/marc_modification_templates.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt