Bug 40284 - MARC21: Adjust maxlength for 005, 006 and 007
Summary: MARC21: Adjust maxlength for 005, 006 and 007
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Bibliographic data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Marcel de Rooy
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-01 14:41 UTC by Marcel de Rooy
Modified: 2025-07-02 11:27 UTC (History)
0 users

See Also:
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. (3.26 KB, patch)
2025-07-02 11:27 UTC, Marcel de Rooy
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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>