From 19ba76da70ac8280eb09e2c33140bc11365a13b8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 21 Jul 2023 16:41:48 +0000 Subject: [PATCH] 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 Signed-off-by: Nick Clemens --- .../prog/en/modules/admin/koha2marclinks.tt | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt index 70976c367f..9f4173498a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt @@ -33,7 +33,7 @@

Koha to MARC mapping

-
+
If you make any change to the mappings, you must ask your administrator to run misc/batchRebuildBiblioTables.pl.
@@ -59,8 +59,10 @@ [% loo.liblibrarian | html %] [% IF !loo.readonly %] - Add - [% IF loo.tagfield %] Remove [% END %] + Add + [% IF loo.tagfield %] + Remove + [% END %] [% END %] @@ -90,12 +92,14 @@ [% END %] -- 2.30.2