+ my $itemtype = Koha::ItemTypes->find( $item_level_itypes ? $c->{itype} : $c->{itemtype} );
+ my $location;
+ if ( $c->{location} ) {
+ my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} });
+ $location = $av->count ? $av->next->lib : '';
+ }
+ my $collection;
+ if ( $c->{collection} ) {
+ my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $c->{collection} });
+ $collection = $av->count ? $av->next->lib : '';
+ }
+ my $lost;
+ if ( $c->{itemlost} ) {
+ my $av = Koha::AuthorisedValues->search({ category => 'LOST', authorised_value => $c->{itemlost} });
+ $lost = $av->count ? $av->next->lib : '';
+ }
+ my $damaged;
+ if ( $c->{damaged} ) {
+ my $av = Koha::AuthorisedValues->search({ category => 'DAMAGED', authorised_value => $c->{damaged} });
+ $damaged = $av->count ? $av->next->lib : '';
+ }