use C4::Circulation;
use C4::Reports;
use C4::Members;
+
use Koha::DateUtils;
+use Koha::Patron::Categories;
=head1 NAME
my $CGIextChoice = ( 'CSV' ); # FIXME translation
my $CGIsepChoice = GetDelimiterChoices;
-
- my ($codes,$labels) = GetborCatFromCatType(undef,undef);
- my @borcatloop;
- foreach my $thisborcat (sort keys %$labels) {
- my %row =(value => $thisborcat,
- description => $labels->{$thisborcat},
- );
- push @borcatloop, \%row;
- }
+
+ my $patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['categorycode']});
$template->param(
CGIextChoice => $CGIextChoice,
CGIsepChoice => $CGIsepChoice,
- borcatloop =>\@borcatloop,
+ patron_categories => $patron_categories,
);
output_html_with_http_headers $input, $cookie, $template->output;
}