From 8ea1641401b894b9d9f5fe5828a4810cf04aea97 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 --- .../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 3b458dc9e7..e3197dbfb4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -86,7 +86,12 @@
  1. - Required + [% IF server.servername %] + + [% ELSE %] + + [% END %] + Required
  2. Required -- 2.30.2