View | Details | Raw Unified | Return to bug 21503
Collapse All | Expand All

(-)a/Koha/Template/Plugin/AuthorisedValues.pm (-8 / +13 lines)
Lines 82-94 sub GetDescriptionByKohaField { Link Here
82
            authorised_value => $params->{authorised_value},
82
            authorised_value => $params->{authorised_value},
83
        }
83
        }
84
    );
84
    );
85
    return %$av
85
    my $av_check = $params->{authorised_value};
86
            ? $params->{opac}
86
    if ($params->{opac}) {
87
                ? $av->{opac_description}
87
        if ($av->{opac_description}) {
88
                : $av->{lib}
88
            $av_check = $av->{opac_description}
89
            : $params->{authorised_value}
89
        } elsif ($av->{lib}) {
90
                ? $params->{authorised_value}
90
            $av_check = $av->{lib}
91
                : ''
91
        }
92
    } else {
93
        if ($av->{lib}) {
94
            $av_check = $av->{lib}
95
        }
96
    }
97
    return $av_check
92
}
98
}
93
99
94
1;
100
1;
95
- 

Return to bug 21503