|
Lines 158-168
sub statusalias {
Link Here
|
| 158 |
my ( $self ) = @_; |
158 |
my ( $self ) = @_; |
| 159 |
return unless $self->status_alias; |
159 |
return unless $self->status_alias; |
| 160 |
# We can't know which result is the right one if there are multiple |
160 |
# We can't know which result is the right one if there are multiple |
| 161 |
# ILLSTATUS authorised values with the same authorised_value column value |
161 |
# ILL_STATUS_ALIAS authorised values with the same authorised_value column value |
| 162 |
# so we just use the first |
162 |
# so we just use the first |
| 163 |
return Koha::AuthorisedValues->search( |
163 |
return Koha::AuthorisedValues->search( |
| 164 |
{ |
164 |
{ |
| 165 |
category => 'ILLSTATUS', |
165 |
category => 'ILL_STATUS_ALIAS', |
| 166 |
authorised_value => $self->SUPER::status_alias |
166 |
authorised_value => $self->SUPER::status_alias |
| 167 |
}, |
167 |
}, |
| 168 |
{}, |
168 |
{}, |
|
Lines 256-266
sub status_alias {
Link Here
|
| 256 |
return $ret; |
256 |
return $ret; |
| 257 |
} |
257 |
} |
| 258 |
# We can't know which result is the right one if there are multiple |
258 |
# We can't know which result is the right one if there are multiple |
| 259 |
# ILLSTATUS authorised values with the same authorised_value column value |
259 |
# ILL_STATUS_ALIAS authorised values with the same authorised_value column value |
| 260 |
# so we just use the first |
260 |
# so we just use the first |
| 261 |
my $alias = Koha::AuthorisedValues->search( |
261 |
my $alias = Koha::AuthorisedValues->search( |
| 262 |
{ |
262 |
{ |
| 263 |
category => 'ILLSTATUS', |
263 |
category => 'ILL_STATUS_ALIAS', |
| 264 |
authorised_value => $self->SUPER::status_alias |
264 |
authorised_value => $self->SUPER::status_alias |
| 265 |
}, |
265 |
}, |
| 266 |
{}, |
266 |
{}, |