|
Lines 112-118
sub set_skip_options {
Link Here
|
| 112 |
# if a least one skip option is provided, print a warning |
112 |
# if a least one skip option is provided, print a warning |
| 113 |
my $has_skip_option = grep { $options{$_} == 1 } grep { /^skip-/ } keys %options; |
113 |
my $has_skip_option = grep { $options{$_} == 1 } grep { /^skip-/ } keys %options; |
| 114 |
if ($has_skip_option) { |
114 |
if ($has_skip_option) { |
| 115 |
print("Warning : skip options are ignored when check options are provided\n"); |
115 |
print("Warning: The --skip-* option(s) were ignored. Only the --check-* options in the command were run.\n"); |
| 116 |
} |
116 |
} |
| 117 |
|
117 |
|
| 118 |
# Set all skip options to 0 |
118 |
# Set all skip options to 0 |
|
Lines 727-766
sub new_hint {
Link Here
|
| 727 |
|
727 |
|
| 728 |
=head1 SYNOPSIS |
728 |
=head1 SYNOPSIS |
| 729 |
|
729 |
|
| 730 |
search_for_data_inconsistencies.pl [options] |
730 |
search_for_data_inconsistencies.pl [options] |
| 731 |
|
731 |
|
| 732 |
=head2 DESCRIPTION |
732 |
=head2 DESCRIPTION |
| 733 |
|
733 |
|
| 734 |
Catch data inconsistencies in Koha database: |
734 |
Identify data inconsistencies in the Koha database. Checks for: |
| 735 |
|
735 |
* Items without a home or holding library |
| 736 |
* Items with undefined homebranch and/or holdingbranch |
736 |
* Authority records with an invalid authority type |
| 737 |
* Authorities with undefined authtypecodes/authority types |
737 |
* Records and items without an item type, or an invalid item type: |
| 738 |
* Item types: |
738 |
- if item types are defined at an item level |
| 739 |
* if item types are defined at item level (item-level_itypes=specific item), |
739 |
(item-level_itypes=specific item), then items.itype must |
| 740 |
then items.itype must be set else biblioitems.itemtype must be set |
740 |
be set else biblioitems.itemtype must be set |
| 741 |
* Item types defined in items or biblioitems must be defined in the itemtypes table |
741 |
- Item types defined in items or biblioitems must be defined |
|
|
742 |
in the item types table |
| 743 |
* Invalid values in framework fields using authorized values |
| 742 |
* Bibliographic records without a title |
744 |
* Bibliographic records without a title |
| 743 |
* Invalid MARCXML in bibliographic records |
745 |
* Invalid MARCXML in bibliographic records |
| 744 |
* Patrons with invalid category types due to lower and upper age limits |
746 |
* Patrons with an invalid patron category type because of lower |
|
|
747 |
and upper age limits |
| 745 |
* Relationships that form guarantor loops |
748 |
* Relationships that form guarantor loops |
| 746 |
* Any date fields in the database (timestamp, datetime, date) set to 0000-00-00 |
749 |
* Any date fields in the database (timestamp, datetime, date) |
|
|
750 |
set to 0000-00-00 |
| 747 |
|
751 |
|
| 748 |
=head2 OPTIONS |
752 |
=head2 OPTIONS |
| 749 |
|
753 |
|
| 750 |
--check-branch Check for items without home or holding library |
754 |
--check-branch Check for items without a home or holding library |
| 751 |
--check-auth Check for authority records with invalid authority type |
755 |
--check-auth Check for authority records with an invalid authority type |
| 752 |
--check-status Check for bibliographic records and items without an item type or with an invalid item type |
756 |
--check-status Check for bibliographic records and items without |
| 753 |
--check-framework Check for invalid values in fields where the framework limits to an authorized value category |
757 |
an item type or with an invalid item type |
|
|
758 |
--check-framework Check for invalid values in fields where the framework |
| 759 |
limits the values to an authorized value category |
| 754 |
--check-title Check for bibliographic records without a title |
760 |
--check-title Check for bibliographic records without a title |
| 755 |
--check-age Check for patrons with invalid age for category |
761 |
--check-age Check for patrons with an invalid age for the patron |
|
|
762 |
category |
| 756 |
--check-loop Check for relationships that form guarantor loops |
763 |
--check-loop Check for relationships that form guarantor loops |
| 757 |
--check-all Run all checks without specifying any other option |
764 |
--check-all Run all checks without specifying any other option |
| 758 |
--skip-branch Skip checking for items without home or holding library |
765 |
--skip-branch Skip checking for items without a home or holding |
| 759 |
--skip-auth Skip checking for authority records with invalid authority type |
766 |
library |
| 760 |
--skip-status Skip checking for bibliographic records and items without an item type or with an invalid item type |
767 |
--skip-auth Skip checking for authority records with an invalid |
| 761 |
--skip-framework Skip checking for invalid values in fields where the framework limits to an authorized value category |
768 |
authority type |
|
|
769 |
--skip-status Skip checking for bibliographic records and items without |
| 770 |
an item type or with an invalid item type |
| 771 |
--skip-framework Skip checking for invalid values in fields where the |
| 772 |
framework limits the values to an authorized value category |
| 762 |
--skip-title Skip checking for bibliographic records without a title |
773 |
--skip-title Skip checking for bibliographic records without a title |
| 763 |
--skip-age Skip checking for patrons with invalid age for category |
774 |
--skip-age Skip checking for patrons with an invalid age for the |
|
|
775 |
patron category |
| 764 |
--skip-loop Skip checking for relationships that form guarantor loops |
776 |
--skip-loop Skip checking for relationships that form guarantor loops |
| 765 |
--help Print usage information |
777 |
--help Print usage information |
| 766 |
|
778 |
|
| 767 |
- |
|
|