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