Lines 73-79
$sep = "\t" if ($sep eq 'tabulation');
Link Here
|
73 |
$template->param(do_it => $do_it, |
73 |
$template->param(do_it => $do_it, |
74 |
); |
74 |
); |
75 |
|
75 |
|
76 |
my @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); |
76 |
my @patron_categories = Koha::Patron::Categories->search_with_library_limits({}, {order_by => ['description']}); |
77 |
|
77 |
|
78 |
my $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
78 |
my $locations = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' }, { order_by => ['description'] } ) }; |
79 |
my $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
79 |
my $ccodes = { map { ( $_->{authorised_value} => $_->{lib} ) } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.ccode' }, { order_by => ['description'] } ) }; |
Lines 330-336
sub display_value {
Link Here
|
330 |
} |
330 |
} |
331 |
} |
331 |
} |
332 |
elsif ( $crit =~ /category/ ) { |
332 |
elsif ( $crit =~ /category/ ) { |
333 |
my @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); |
333 |
my @patron_categories = Koha::Patron::Categories->search_with_library_limits({}, {order_by => ['description']}); |
334 |
foreach my $patron_category ( @patron_categories ) { |
334 |
foreach my $patron_category ( @patron_categories ) { |
335 |
( $value eq $patron_category->categorycode ) or next; |
335 |
( $value eq $patron_category->categorycode ) or next; |
336 |
$display_value = $patron_category->description and last; |
336 |
$display_value = $patron_category->description and last; |