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