- my @branches = (
- {
- branchcode => '*',
- branchname => 'Default',
- },
- sort { $a->{branchname} cmp $b->{branchname} } values %$br,
- );
- for (@branches) {
- $_->{selected} = "selected" if ($branch eq $_->{branchcode});
- }
- my $branch_name = exists($br->{$branch}) && $br->{$branch}->{branchname};
-
- my @categories = (
- C4::Category->all
- );
- my @item_types = map { br($_, 'description') } (
- C4::ItemType->all
- );
+ my @categories = Koha::Patron::Categories->search_limited;
+ my @item_types = Koha::ItemTypes->search;