Lines 73-79
if($itemnumber) {
Link Here
|
73 |
$item->{materials} = $descriptions->{lib} // ''; |
73 |
$item->{materials} = $descriptions->{lib} // ''; |
74 |
|
74 |
|
75 |
my $itemtype = Koha::ItemTypes->find( $item->{itype} ); |
75 |
my $itemtype = Koha::ItemTypes->find( $item->{itype} ); |
76 |
$item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description? |
76 |
if (defined $itemtype) { |
|
|
77 |
$item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description? |
78 |
} |
77 |
} |
79 |
} |
78 |
|
80 |
|
79 |
my $json_text = to_json( $item, { utf8 => 1 } ); |
81 |
my $json_text = to_json( $item, { utf8 => 1 } ); |
80 |
- |
|
|