]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 15 May 2023 21:51:43 +0000 (21:51 +0000)
commit6254b429b6659e38c554d58d784015600634971d
treeca4cdbfdd129eeab886a84f3985e0933bf797f16
parent38856cd65b54935f84eaa049050ce42d152f9047
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>
(cherry picked from commit cc1695ba96b79d85fe778af1c60b092b149dd449)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 9971011fb9271ee2c8bae9e979c15b51a7fdaad2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/maintenance/search_for_data_inconsistencies.pl