]> git.koha-community.org Git - koha.git/commit
Bug 33603: Fix misc/maintenance/search_for_data_inconsistencies.pl when biblio.biblio...
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 25 Apr 2023 06:05:50 +0000 (20:05 -1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 12:13:15 +0000 (09:13 -0300)
commitcc1695ba96b79d85fe778af1c60b092b149dd449
treea0132760a5b21baa520fe2c0e2ec42fa208cf80b
parentedbc81199798aa084365a1845188aa24e6ad010b
Bug 33603: Fix misc/maintenance/search_for_data_inconsistencies.pl when biblio.biblionumber on control field

Since bug 29486, misc/maintenance/search_for_data_inconsistencies.pl search for biblio.biblionumber in MARC record with $record->subfield().
This fails when field is a control field (< 10).
Idem for biblioitems.biblioitemnumber

Test plan :
1.0) On a UNIMARC database (biblio.biblionumber is on 001)
1.1) Run misc/maintenance/search_for_data_inconsistencies.pl
=> Without patch you get error : Control fields (generally, just tags below 010) do not have subfields, use data()
=> With patch no error
2.0) On a MARC21 database (biblio.biblionumber is on 999c)
2.1) Run misc/maintenance/search_for_data_inconsistencies.pl
=> Check you see no error

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/maintenance/search_for_data_inconsistencies.pl