Bug 40284

Summary: MARC21: Adjust maxlength for 005, 006 and 007
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: MARC Bibliographic data supportAssignee: Marcel de Rooy <m.de.rooy>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40272
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40284: Adjust maxlength for 005-007.

Description Marcel de Rooy 2025-07-01 14:41:37 UTC
Field 000 (leader) and 008 are controlled with maxlength. This should be since version 3.07.00.037, although my production database somehow did not have 40 for field 008..

We can easily add the same check for 005, 006 and 007. Note that 007 does not always have the same length, depends on position 0.
Comment 1 Marcel de Rooy 2025-07-02 11:27:30 UTC
Created attachment 183688 [details] [review]
Bug 40284: Adjust maxlength for 005-007.

Test plan:
Run dbrev or new install.
Verify the maxlength for 005-007 in marc_subfield_structure.
Restart all. Check maxlength on input tags in the basic editor
for fields 005-007.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>