Bug 16937 [Revised] Remove "onclick" from the manage staged MARC records template
authorOwen Leonard <oleonard@myacpl.org>
Mon, 18 Jul 2016 16:20:33 +0000 (12:20 -0400)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 13 Sep 2016 07:16:54 +0000 (09:16 +0200)
commit48ae7d583172be72917a44bc0ba03e2976dc67c1
treea52b0cb602e2a2cdf77602e8ba46064643bfd0a6
parent2763b96d2af3f3c10c6b5c392f85919f1225ab1a
Bug 16937 [Revised] Remove "onclick" from the manage staged MARC records template

This patch revises the manage staged MARC records template, removing
"onclick" attributes from the markup and defining those events in the
script.

To test, apply the patch and go to Tools -> Manage staged MARC records.

- If necessary, stage a MARC file for import.
- Click the name of the staged file and then the "Import this batch into
  the catalog" button. The batch should be correctly imported.
- Return to the list of staged MARC files.
- Click the name of an imported file and then the "Undo import into
  catalog" button. The import should be reverted.
- Return to the list of staged MARC files.
- Click the "Clean" button for any record. Confirm that the batch is
  cleaned.
- For any cleaned record, click the "Delete" button. The batch should be
  deleted.

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

QA revision: Corrected class name so that "delete" button triggers the
correct warning.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit caf6102db8e0e7fbb75be2c8c90b7ff07001a9f8)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt