View | Details | Raw Unified | Return to bug 21591
Collapse All | Expand All

(-)a/misc/maintenance/search_for_data_inconsistencies.pl (-5 / +11 lines)
Lines 54-63 use Koha::Authorities; Link Here
54
        if ( $items_without_itype->count ) {
54
        if ( $items_without_itype->count ) {
55
            new_section("Items do not have itype defined");
55
            new_section("Items do not have itype defined");
56
            while ( my $item = $items_without_itype->next ) {
56
            while ( my $item = $items_without_itype->next ) {
57
                new_item(
57
                if (defined $item->biblioitem->itemtype) {
58
                    sprintf "Item with itemnumber=%s does not have a itype value, biblio's item type will be used (%s)",
58
                    new_item(
59
                    $item->itemnumber, $item->biblioitem->itemtype
59
                        sprintf "Item with itemnumber=%s does not have a itype value, biblio's item type will be used (%s)",
60
                );
60
                        $item->itemnumber, $item->biblioitem->itemtype
61
                    );
62
                } else {
63
                    new_item(
64
                        sprintf "Item with itemnumber=%s does not have a itype value, additionally no item type defined for biblionumber=%s",
65
                        $item->itemnumber, $item->biblioitem->biblionumber
66
                    );
67
               }
61
            }
68
            }
62
            new_hint("The system preference item-level_itypes expects item types to be defined at item level");
69
            new_hint("The system preference item-level_itypes expects item types to be defined at item level");
63
        }
70
        }
64
- 

Return to bug 21591