Lines 58-64
sub GetCriteriumDesc{
Link Here
|
58 |
if ($displayby =~ /status/i) { |
58 |
if ($displayby =~ /status/i) { |
59 |
unless ( grep { /$criteriumvalue/ } qw(ASKED ACCEPTED REJECTED CHECKED ORDERED AVAILABLE) ) { |
59 |
unless ( grep { /$criteriumvalue/ } qw(ASKED ACCEPTED REJECTED CHECKED ORDERED AVAILABLE) ) { |
60 |
my $av = Koha::AuthorisedValues->search({ category => 'SUGGEST_STATUS', authorised_value => $criteriumvalue }); |
60 |
my $av = Koha::AuthorisedValues->search({ category => 'SUGGEST_STATUS', authorised_value => $criteriumvalue }); |
61 |
return $av->count ? $av->next->lib : 'Unkown'; |
61 |
return $av->count ? $av->next->lib : 'Unknown'; |
62 |
} |
62 |
} |
63 |
return ($criteriumvalue eq 'ASKED'?"Pending":ucfirst(lc( $criteriumvalue))) if ($displayby =~/status/i); |
63 |
return ($criteriumvalue eq 'ASKED'?"Pending":ucfirst(lc( $criteriumvalue))) if ($displayby =~/status/i); |
64 |
} |
64 |
} |
Lines 66-72
sub GetCriteriumDesc{
Link Here
|
66 |
if $displayby =~ /branchcode/; |
66 |
if $displayby =~ /branchcode/; |
67 |
if ( $displayby =~ /itemtype/ ) { |
67 |
if ( $displayby =~ /itemtype/ ) { |
68 |
my $av = Koha::AuthorisedValues->search({ category => 'SUGGEST_FORMAT', authorised_value => $criteriumvalue }); |
68 |
my $av = Koha::AuthorisedValues->search({ category => 'SUGGEST_FORMAT', authorised_value => $criteriumvalue }); |
69 |
return $av->count ? $av->next->lib : 'Unkown'; |
69 |
return $av->count ? $av->next->lib : 'Unknown'; |
70 |
} |
70 |
} |
71 |
if ($displayby =~/suggestedby/||$displayby =~/managedby/||$displayby =~/acceptedby/){ |
71 |
if ($displayby =~/suggestedby/||$displayby =~/managedby/||$displayby =~/acceptedby/){ |
72 |
my $borr=C4::Members::GetMember(borrowernumber=>$criteriumvalue); |
72 |
my $borr=C4::Members::GetMember(borrowernumber=>$criteriumvalue); |
73 |
- |
|
|