Koha-clms/misc
Fridolin Somers 9971011fb9
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 cc1695ba96)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-05-11 11:56:57 +01:00
..
admin
…
bin
…
cronjobs Bug 33285: (QA follow-up) add POD and fix some code style 2023-04-16 18:13:55 +01:00
devel
…
interface_customization
…
maintenance Bug 33603: Fix misc/maintenance/search_for_data_inconsistencies.pl when biblio.biblionumber on control field 2023-05-11 11:56:57 +01:00
migration_tools Bug 32800: Don't embed items for deleted records 2023-04-17 08:54:10 +00:00
release_notes Update release notes for 22.11.05 release 2023-05-02 15:58:16 +01:00
search_tools
…
translator Fix translations for Koha 22.11.05 2023-05-02 15:13:49 +01:00
workers Bug 33108: (follow-up) Don't die, only warn if not using ES 2023-05-03 13:11:15 +01:00
add_date_fields_to_marc_records.pl
…
add_statistics_borrowers_categorycode.pl Bug 32922: Remove space in shebang 2023-02-24 07:51:37 +00:00
batchCompareMARCvsFrameworks.pl
…
batchDeleteUnusedSubfields.pl
…
batchImportMARCWithBiblionumbers.pl
…
batchRebuildBiblioTables.pl
…
batchRebuildItemsTables.pl
…
batchRepairMissingBiblionumbers.pl
…
batchdeletebiblios.pl
…
check_sysprefs.pl
…
commit_file.pl Bug 15869: Change framework on overlay 2023-02-08 16:34:09 +00:00
export_borrowers.pl Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
export_records.pl
…
exportauth.pl
…
import_patrons.pl Bug 32793: import_patrons.pl typo in usage 2023-02-06 17:21:14 +00:00
koha-install-log
…
link_bibs_to_authorities.pl
…
load_yaml.pl
…
mod_zebraqueue.pl
…
perlmodule_ls.pl
…
perlmodule_rm.pl
…
process_ill_updates.pl Bug 30484: Implement support for ILL request updates 2022-09-23 09:18:45 -03:00
recreateIssueStatistics.pl
…
sax_parser_print.pl
…
sax_parser_test.pl
…
sip_cli_emulator.pl Bug 32537: (QA follow-up): Tidy code 2023-02-06 16:18:19 +00:00
stage_file.pl
…
z3950_responder.pl
…