Bug 39413

Summary: Add a check for item fields in bibliographic MARC records
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Command-line UtilitiesAssignee: Nick Clemens (kidclamp) <nick>
Status: Pushed to main --- QA Contact: Martin Renvoize (ashimema) <martin.renvoize>
Severity: normal    
Priority: P5 - low CC: bernard.scaife, martin.renvoize, matt.blenkinsop, robin
Version: MainKeywords: release-notes-needed
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39412
GIT URL: Change sponsored?: ---
Patch complexity: Small patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.05.00
Circulation function:
Attachments: Bug 39413: Add a check for item fields in MARC records to data inconsistencies script
Bug 39413: Add a check for item fields in MARC records to data inconsistencies script
Bug 39413: Add a check for item fields in MARC records to data inconsistencies script

Description Nick Clemens (kidclamp) 2025-03-21 16:35:08 UTC
See bug 39412 - we will need a script to help cleanup from possible bad data created
Comment 1 Nick Clemens (kidclamp) 2025-03-21 16:38:21 UTC Comment hidden (obsolete)
Comment 2 Magnus Enger 2025-04-01 14:29:13 UTC
Created attachment 180204 [details] [review]
Bug 39413: Add a check for item fields in MARC records to data inconsistencies script

This patch adds a new test to the data inconsistencies script to report where
MARC records contain item fields.

These may not cause issues in Koha, however, in discovery harvests they have eben found to create errors

To test:
1 - Follow test plan on bug 39412 to generate records with item tags
2 - perl misc/maintenance/search_for_data_inconsistencies.pl
3 - Note new section and hint on how to fix
4 - perl misc/maintenance/touch_all_biblios.pl
5 - repeat 2
6 - Errors cleared

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Comment 3 Martin Renvoize (ashimema) 2025-05-12 12:42:24 UTC
Created attachment 182268 [details] [review]
Bug 39413: Add a check for item fields in MARC records to data inconsistencies script

This patch adds a new test to the data inconsistencies script to report where
MARC records contain item fields.

These may not cause issues in Koha, however, in discovery harvests they have eben found to create errors

To test:
1 - Follow test plan on bug 39412 to generate records with item tags
2 - perl misc/maintenance/search_for_data_inconsistencies.pl
3 - Note new section and hint on how to fix
4 - perl misc/maintenance/touch_all_biblios.pl
5 - repeat 2
6 - Errors cleared

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Comment 4 Katrin Fischer 2025-05-12 16:32:11 UTC
Pushed for 25.05!

Well done everyone, thank you!