Summary: | Limit new item type codes to letters and numbers | ||
---|---|---|---|
Product: | Koha | Reporter: | David Cook <dcook> |
Component: | Cataloging | Assignee: | David Cook <dcook> |
Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
Severity: | minor | ||
Priority: | P5 - low | CC: | esther.melander, m.de.rooy |
Version: | Main | Keywords: | Academy |
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: | Bug 40476: Limit item type codes to letters and numbers |
Description
David Cook
2025-07-23 06:52:05 UTC
I suspect there are (many) duplicates of this bug but I haven't been able to find them yet. Created attachment 184531 [details] [review] Bug 40476: Limit item type codes to letters and numbers This patch adds a custom jquery validator method to perform a regex test on item type codes in the admin module. Test plan: 0. Apply the patch 1. Go to http://localhost:8081/cgi-bin/koha/admin/itemtypes.pl?op=add_form 2. Try to input an "Item type" like "abc123+ 3. Note the input turns red and the message "Invalid pattern" appears. 4. Try to input an "Item type" like "ébook" 5. Note that the input is capitalised, it stays black, and there is no warning 6. Try out more combinations of things you'd like to use as item type codes Tested and works as described. Signed-off-by: Esther Melander <esther@bywatersolutions.com> |