From 4f9707dcd16e77507f6703d59853f4649f85624d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 May 2024 15:09:59 +0000 Subject: [PATCH] Bug 36907: Add maxlength to OAI set mapping form fields This patch adds a maxlength attribute to the field, subfield, and value fields in the OAI set mapping form. This helps prevent an error when the form data is too long for the database columns. Unrelated: The patch also adds quotes around two unquoted name attributes. To test, apply the patch and go to Administration -> OAI sets. - If necessary, create a new set. - Click Actions -> Define mappings. - Test that each form field is limited correctly: Field: 3 Subfield: 1 Value: 80 - Test that the form can be submitted successfully with the maximum number of characters in each field. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit c3f47091def8b03c9d5d4fbf5329d01d743398f5) Signed-off-by: Lucas Gass --- .../prog/en/modules/admin/oai_set_mappings.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt index 67ac3c0ff9..66df9095e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt @@ -81,9 +81,9 @@ [% END %] - - - + + - + [% IF ( loop.last ) %] @@ -119,7 +119,7 @@ - -- 2.39.5