@@ -, +, @@ --- Koha/Template/Plugin/AuthorisedValues.pm | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) --- a/Koha/Template/Plugin/AuthorisedValues.pm +++ a/Koha/Template/Plugin/AuthorisedValues.pm @@ -81,13 +81,17 @@ sub GetDescriptionByKohaField { authorised_value => $params->{authorised_value}, } ); - return %$av - ? $params->{opac} - ? $av->{opac_description} - : $av->{lib} - : $params->{authorised_value} - ? $params->{authorised_value} - : '' + my $av_check = $params->{authorised_value}; + if ($params->{opac}) { + if ($av->{opac_description}) { + $av_check = $av->{opac_description} + } elsif ($av->{lib}) { + $av_check = $av->{lib} + } + } elsif ($av->{lib}) { + $av_check = $av->{lib} + } + return $av_check } 1; --