Bugzilla – Attachment 177443 Details for
Bug 36027
search_for_data_inconsistencies.pl - add options so you can choose what checks to run
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36027: (follow-up) Update help text and error message
Bug-36027-follow-up-Update-help-text-and-error-mes.patch (text/plain), 5.42 KB, created by
David Nind
on 2025-02-01 02:21:08 UTC
(
hide
)
Description:
Bug 36027: (follow-up) Update help text and error message
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-02-01 02:21:08 UTC
Size:
5.42 KB
patch
obsolete
>From 33d96f7c632830ae8a0c0cc57e612e86cd12301a Mon Sep 17 00:00:00 2001 >From: David Nind <david@davidnind.com> >Date: Sat, 1 Feb 2025 02:07:28 +0000 >Subject: [PATCH] Bug 36027: (follow-up) Update help text and error message > >This updates the help text and the error message when --check* >and --skip* options are used in the same command. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../search_for_data_inconsistencies.pl | 56 +++++++++++-------- > 1 file changed, 34 insertions(+), 22 deletions(-) > >diff --git a/misc/maintenance/search_for_data_inconsistencies.pl b/misc/maintenance/search_for_data_inconsistencies.pl >index e9c385201a..bf3ca54f61 100755 >--- a/misc/maintenance/search_for_data_inconsistencies.pl >+++ b/misc/maintenance/search_for_data_inconsistencies.pl >@@ -112,7 +112,7 @@ sub set_skip_options { > # if a least one skip option is provided, print a warning > my $has_skip_option = grep { $options{$_} == 1 } grep { /^skip-/ } keys %options; > if ($has_skip_option) { >- print("Warning : skip options are ignored when check options are provided\n"); >+ print("Warning: The --skip-* option(s) were ignored. Only the --check-* options in the command were run.\n"); > } > > # Set all skip options to 0 >@@ -727,40 +727,52 @@ sub new_hint { > > =head1 SYNOPSIS > >-search_for_data_inconsistencies.pl [options] >+ search_for_data_inconsistencies.pl [options] > > =head2 DESCRIPTION > >-Catch data inconsistencies in Koha database: >- >- * Items with undefined homebranch and/or holdingbranch >- * Authorities with undefined authtypecodes/authority types >- * Item types: >- * if item types are defined at item level (item-level_itypes=specific item), >- then items.itype must be set else biblioitems.itemtype must be set >- * Item types defined in items or biblioitems must be defined in the itemtypes table >+ Identify data inconsistencies in the Koha database. Checks for: >+ * Items without a home or holding library >+ * Authority records with an invalid authority type >+ * Records and items without an item type, or an invalid item type: >+ - if item types are defined at an item level >+ (item-level_itypes=specific item), then items.itype must >+ be set else biblioitems.itemtype must be set >+ - Item types defined in items or biblioitems must be defined >+ in the item types table >+ * Invalid values in framework fields using authorized values > * Bibliographic records without a title > * Invalid MARCXML in bibliographic records >- * Patrons with invalid category types due to lower and upper age limits >+ * Patrons with an invalid patron category type because of lower >+ and upper age limits > * Relationships that form guarantor loops >-* Any date fields in the database (timestamp, datetime, date) set to 0000-00-00 >+ * Any date fields in the database (timestamp, datetime, date) >+ set to 0000-00-00 > > =head2 OPTIONS > >- --check-branch Check for items without home or holding library >- --check-auth Check for authority records with invalid authority type >- --check-status Check for bibliographic records and items without an item type or with an invalid item type >- --check-framework Check for invalid values in fields where the framework limits to an authorized value category >+ --check-branch Check for items without a home or holding library >+ --check-auth Check for authority records with an invalid authority type >+ --check-status Check for bibliographic records and items without >+ an item type or with an invalid item type >+ --check-framework Check for invalid values in fields where the framework >+ limits the values to an authorized value category > --check-title Check for bibliographic records without a title >- --check-age Check for patrons with invalid age for category >+ --check-age Check for patrons with an invalid age for the patron >+ category > --check-loop Check for relationships that form guarantor loops > --check-all Run all checks without specifying any other option >- --skip-branch Skip checking for items without home or holding library >- --skip-auth Skip checking for authority records with invalid authority type >- --skip-status Skip checking for bibliographic records and items without an item type or with an invalid item type >- --skip-framework Skip checking for invalid values in fields where the framework limits to an authorized value category >+ --skip-branch Skip checking for items without a home or holding >+ library >+ --skip-auth Skip checking for authority records with an invalid >+ authority type >+ --skip-status Skip checking for bibliographic records and items without >+ an item type or with an invalid item type >+ --skip-framework Skip checking for invalid values in fields where the >+ framework limits the values to an authorized value category > --skip-title Skip checking for bibliographic records without a title >- --skip-age Skip checking for patrons with invalid age for category >+ --skip-age Skip checking for patrons with an invalid age for the >+ patron category > --skip-loop Skip checking for relationships that form guarantor loops > --help Print usage information > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36027
:
161852
|
161953
|
161954
|
162162
|
162349
|
162351
|
162540
|
162546
|
163259
|
163956
|
166117
|
167766
|
167787
|
168953
|
168954
|
169228
|
169229
|
170847
|
170848
|
170849
|
173269
|
173270
|
173271
|
173556
|
177270
|
177283
|
177438
|
177439
|
177440
|
177441
|
177442
|
177443
|
177444
|
177849
|
177850
|
177851
|
177852
|
177853
|
177854
|
180257
|
180258
|
180259
|
180260
|
180261
|
180262