Koha-clms/koha-tmpl
Owen Leonard d044ba1899
Bug 40497: Item add form does not respect framework maxlength setting
This patch corrects the template variable which populates the maxlenth
attribute on text fields in the add/edit item form.

To test, apply the patch and go Administratoin -> MARC bibliographic
frameworks -> (framework) -> Tag 952 -> Edit subfields.

- Click the "p" tab and set the "Max length" field to "20"
- Save the framework and go to Cataloging.
- Locate a bibliographic record that uses the framework you edited.
- Add or edit an item on that bibliographic record.
- Check the "Barcode" field. The input tag should limit your entry to 20
  characters.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c7eae54f82)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-09-20 10:43:17 +02:00
..
intranet-tmpl Bug 40497: Item add form does not respect framework maxlength setting 2025-09-20 10:43:17 +02:00
opac-tmpl Bug 40482: Add useful data-attributes to cover image containers on OPAC/staff search results 2025-09-20 10:42:39 +02:00