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