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

(-)a/tools/inventory.pl (-2 / +1 lines)
Lines 272-278 foreach my $item ( @scanned_items ) { Link Here
272
        # If the koha field is mapped to a marc field
272
        # If the koha field is mapped to a marc field
273
        my $fc = $item->{'frameworkcode'} || '';
273
        my $fc = $item->{'frameworkcode'} || '';
274
        my ($f, $sf) = GetMarcFromKohaField("items.$field", $fc);
274
        my ($f, $sf) = GetMarcFromKohaField("items.$field", $fc);
275
        if ($f and $sf) {
275
        if (defined $f and defined $sf) {
276
            # We replace the code with it's description
276
            # We replace the code with it's description
277
            my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $fc);
277
            my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $fc);
278
            if ($authvals and defined $item->{$field} and defined $authvals->{$item->{$field}}) {
278
            if ($authvals and defined $item->{$field} and defined $authvals->{$item->{$field}}) {
279
- 

Return to bug 14061