use C4::Koha;
use C4::Members;
-use C4::Branch; # GetBranches
+use Koha::Patron::Categories;
=head1 NAME
sub set_parameters {
my ($template) = @_;
- $template->param( branchloop => GetBranchesLoop() );
-
- my ($codes,$labels)=GetborCatFromCatType(undef,undef);
- my @borcatloop;
- foreach my $thisborcat (sort keys %$labels) {
- push @borcatloop, {
- value => $thisborcat,
- description => $labels->{$thisborcat},
- };
- }
- $template->param(loopcategories => \@borcatloop);
+ my $patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['categorycode']});
+ $template->param( patron_categories => $patron_categories );
return $template;
}