]> git.koha-community.org Git - koha.git/commit
Bug 35032: Remove the use of "onclick" from Koha to MARC mapping template
authorOwen Leonard <oleonard@myacpl.org>
Fri, 21 Jul 2023 16:41:48 +0000 (16:41 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Oct 2023 13:25:54 +0000 (10:25 -0300)
commit2fc96b840daee1994110be6efc5b7399422f8ec8
treed336ee0dc315528e517e30e4fe88ed22f3989158
parent06d182bc82b40872970d99055c449d3c406724fa
Bug 35032: Remove the use of "onclick" from Koha to MARC mapping template

This patch eliminates two instances of "onclick" from the Koha to MARC
mapping template, moving these event handlers into JS in the footer.

To test, apply the patch and go to Administration -> Koha to MARC
mapping.

- Click "Add" next to a Koha field.
  - You should get a JS popup asking for entry of a MARC tag. Confirm
    that this process completes correctly.
- Test a "Remove" link too. It should work to remove mapping from a Koha
  field.
- Test the "Cancel" choice in both the "Add" and "Remove" cases to
  confirm that the operation is cancelled.

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt