Lines 333-338
sub null_to_zzempty ($) {
Link Here
|
333 |
} |
333 |
} |
334 |
sub display_value { |
334 |
sub display_value { |
335 |
my ( $crit, $value ) = @_; |
335 |
my ( $crit, $value ) = @_; |
|
|
336 |
my $ccodes = GetKohaAuthorisedValues("items.ccode"); |
337 |
my $locations = GetKohaAuthorisedValues("items.location"); |
338 |
my $itemtypes = GetItemTypes(); |
339 |
my $authvalue = GetKohaAuthorisedValues("items.authvalue"); |
340 |
my $Bsort1 = GetAuthorisedValues("Bsort1"); |
341 |
my $Bsort2 = GetAuthorisedValues("Bsort2"); |
336 |
my $display_value = |
342 |
my $display_value = |
337 |
( $crit =~ /ccode/ ) ? $ccodes->{$value} |
343 |
( $crit =~ /ccode/ ) ? $ccodes->{$value} |
338 |
: ( $crit =~ /location/ ) ? $locations->{$value} |
344 |
: ( $crit =~ /location/ ) ? $locations->{$value} |
Lines 353-358
sub display_value {
Link Here
|
353 |
} |
359 |
} |
354 |
} |
360 |
} |
355 |
elsif ( $crit =~ /category/ ) { |
361 |
elsif ( $crit =~ /category/ ) { |
|
|
362 |
my @patron_categories = Koha::Patron::Categories->search_limited({}, {order_by => ['description']}); |
356 |
foreach my $patron_category ( @patron_categories ) { |
363 |
foreach my $patron_category ( @patron_categories ) { |
357 |
( $value eq $patron_category->categorycode ) or next; |
364 |
( $value eq $patron_category->categorycode ) or next; |
358 |
$display_value = $patron_category->description and last; |
365 |
$display_value = $patron_category->description and last; |
359 |
- |
|
|