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

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

Return to bug 21503