sub all {
my ( $self, $params ) = @_;
my $unfiltered = delete $params->{unfiltered} || 0;
return Koha::Patron::Categories->search_limited($params);
return $unfiltered
? Koha::Patron::Categories->search( $params )
: Koha::Patron::Categories->search_limited( $params )
}
sub GetName {
};
// TODO: Account for branch category limits
Koha.PATRON_CATEGORIES = {
[% FOREACH category IN Categories.all() %]
[% FOREACH category IN Categories.all( unfiltered => 1 ) %]
"[% category.categorycode %]": [% To.json( category ) %],
[% END %]
-