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

(-)a/Koha/Template/Plugin/AuthorisedValues.pm (-8 / +11 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
    } elsif ($av->{lib}) {
92
        $av_check = $av->{lib}
93
    }
94
    return $av_check
91
}
95
}
92
96
93
1;
97
1;
94
- 

Return to bug 21503