]> git.koha-community.org Git - koha.git/commit
Bug 36907: Add maxlength to OAI set mapping form fields
authorOwen Leonard <oleonard@myacpl.org>
Tue, 21 May 2024 15:09:59 +0000 (15:09 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 21 Oct 2024 12:25:15 +0000 (14:25 +0200)
commitb179037bc15207c05e79255995336b309c624124
treeeb06b0e8946d8a7864df0827c04968b45b5a80bd
parentca777e6c5d879e404702ddfa52f20137b6654ec8
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 <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c3f47091def8b03c9d5d4fbf5329d01d743398f5)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4f9707dcd16e77507f6703d59853f4649f85624d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt