From 8860de8574dd8c6e561c3e2afde1e1e27aa45978 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. --- .../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.2