-
- my $shelflocations =
- { map { $_->{authorised_value} => $_->{lib} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => $dat->{frameworkcode}, kohafield => 'items.location' } ) };
-
- for my $itm (@items) {
- if ($itm->{'location'}){
- $itm->{'location_description'} = $shelflocations->{$itm->{'location'} };
- }
- }
- # COinS format FIXME: for books Only
- my $fmt = substr $record->leader(), 6,2;
- my $fmts;
- $fmts->{'am'} = 'book';
- $dat->{ocoins_format} = $fmts->{$fmt};
+
+ # COinS format FIXME: for books Only
+ my $fmt = substr $record->leader(), 6,2;
+ my $fmts;
+ $fmts->{'am'} = 'book';
+ $dat->{ocoins_format} = $fmts->{$fmt};