my $itemtypes = {
map {
$_->itemtype =>
{ %{ $_->unblessed }, image_location => $_->image_location, notforloan => $_->notforloan }
{ %{ $_->unblessed }, image_location => $_->image_location('intranet'), notforloan => $_->notforloan }
} Koha::ItemTypes->search_with_localization->as_list
};
-