From d5a1f3b419b51bf844d7b8739ce7252866f7c3aa Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 5 Feb 2023 00:17:01 +0000 Subject: [PATCH] Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server This makes sure that the focus is in the first form field when adding a new Z39.50 or SRU server. To test: * Administration > Z39.50/SRU servers * Add a new server for each * Verify the focus is not in the form * Apply patch * Verify the focus is now in the first form field * Edit an existing server * Verify the focus is not in the form Not having the focus when editing is to avoid accidental changes. Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 2504a282b5890168616c1a87206f8762c38a660d) Signed-off-by: Martin Renvoize (cherry picked from commit 71f20a1c3513759393a9bae3654eb295fcb4016e) Signed-off-by: Lucas Gass (cherry picked from commit ee095916fc0b94bf2e50a277fa6b188c72598246) Signed-off-by: danyonsewell (cherry picked from commit ee095916fc0b94bf2e50a277fa6b188c72598246) --- .../intranet-tmpl/prog/en/modules/admin/z3950servers.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt index 585e6bc86b..889c4e2d08 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -95,7 +95,12 @@
  1. - Required + [% IF server.servername %] + + [% ELSE %] + + [% END %] + Required
  2. Required -- 2.39.5