Koha/misc/maintenance
Nick Clemens 392f673cae Bug 28352: Only check authorised values mapped to DB fields
The errors reported seem to be caused by authorised values mapped to MARC fields
but not mapped to a koha field.

We should additionally make sure to check the Default framework

Also, adding comment to indicate we only check records with items, because we do

TO test:
1 - In a framework that is not the default map a MARC field to an authorised value, but not a koha field
2 - In SQL, force the kohafield to NULL for the mapping you just make
    UPDATE marc_subfield_structure SET kohafield = NULL WHERE frameworkcode='BKS' and authorised_value='HINGS_AS'
3 - perl misc/maintenance/search_for_data_inconsistencies.pl
4 - get the following errors:
Use of uninitialized value $tmp_kohafield in pattern match (m//) at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 151.
Use of uninitialized value $tmp_kohafield in substitution (s///) at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 154.
Can't call method "get_column" on an undefined value at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 157.
5 - Apply patch
6 - Repeat
7 - No more errors

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-08 09:52:43 -04:00
..
auth_show_hidden_data.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
borrowers-force-messaging-defaults.pl Bug 27276: Fix syntax error 2021-01-04 16:33:15 +01:00
check_syspref_cache.pl Bug 24272: Correctly encode output to prevent 'Wide character in say' 2021-01-20 13:42:08 +01:00
check_sysprefs.sh
cmp_sysprefs.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
compare_es_to_db.pl Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
fix_accountlines_date.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fix_accountlines_rmdupfines_bug8253.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
fix_mysql_constraints.pl Bug 27673: Replace YAML with YAML::XS 2021-02-16 14:54:50 +01:00
fix_tags_weight.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
generate_MARC21Languages.pl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
make_zebra_dom_cfg_from_record_abs Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
process_record_through_filter.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
remove_items_from_biblioitems.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
sanitize_records.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
search_for_data_inconsistencies.pl Bug 28352: Only check authorised values mapped to DB fields 2021-10-08 09:52:43 -04:00
touch_all_biblios.pl Bug 29078: Resolve division by zero in touch_all scripts 2021-10-08 09:19:28 -04:00
touch_all_items.pl Bug 29078: Resolve division by zero in touch_all scripts 2021-10-08 09:19:28 -04:00
UNIMARC_fix_collectiontitle.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
UNIMARC_sync_date_created_with_marc_biblio.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
update_authorities.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00