|
Lines 16-22
Link Here
|
| 16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 17 |
|
17 |
|
| 18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
| 19 |
|
|
|
| 20 |
use Koha::Script; |
19 |
use Koha::Script; |
| 21 |
use Koha::AuthorisedValues; |
20 |
use Koha::AuthorisedValues; |
| 22 |
use Koha::Authorities; |
21 |
use Koha::Authorities; |
|
Lines 62-68
CheckItemsFramework() if $options{'framework'};
Link Here
|
| 62 |
CheckItemsTitle() if $options{'title'}; |
61 |
CheckItemsTitle() if $options{'title'}; |
| 63 |
CheckAgeForCategory() if $options{'age'}; |
62 |
CheckAgeForCategory() if $options{'age'}; |
| 64 |
|
63 |
|
| 65 |
|
|
|
| 66 |
sub CheckItemsBranch { |
64 |
sub CheckItemsBranch { |
| 67 |
my $items = Koha::Items->search({ -or => { homebranch => undef, holdingbranch => undef }}); |
65 |
my $items = Koha::Items->search({ -or => { homebranch => undef, holdingbranch => undef }}); |
| 68 |
if ( $items->count ) { new_section("Not defined items.homebranch and/or items.holdingbranch")} |
66 |
if ( $items->count ) { new_section("Not defined items.homebranch and/or items.holdingbranch")} |
|
Lines 372-378
sub new_hint {
Link Here
|
| 372 |
say "=> $name"; |
370 |
say "=> $name"; |
| 373 |
} |
371 |
} |
| 374 |
|
372 |
|
| 375 |
|
|
|
| 376 |
=head1 SYNOPSIS |
373 |
=head1 SYNOPSIS |
| 377 |
|
374 |
|
| 378 |
search_for_data_inconsistencies.pl [options] |
375 |
search_for_data_inconsistencies.pl [options] |
|
Lines 385-391
Catch data inconsistencies in Koha database:
Link Here
|
| 385 |
* Authorities with undefined authtypecodes/authority types |
382 |
* Authorities with undefined authtypecodes/authority types |
| 386 |
* Item types: |
383 |
* Item types: |
| 387 |
* if item types are defined at item level (item-level_itypes=specific item), |
384 |
* if item types are defined at item level (item-level_itypes=specific item), |
| 388 |
then items.itype must be set else biblioitems.itemtype must be set |
385 |
then items.itype must be set else biblioitems.itemtype must be set |
| 389 |
* Item types defined in items or biblioitems must be defined in the itemtypes table |
386 |
* Item types defined in items or biblioitems must be defined in the itemtypes table |
| 390 |
* Bibliographic records without a title |
387 |
* Bibliographic records without a title |
| 391 |
* Invalid MARCXML in bibliographic records |
388 |
* Invalid MARCXML in bibliographic records |
| 392 |
- |
|
|