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

(-)a/C4/XSLT.pm (-2 / +2 lines)
Lines 247-253 sub XSLTParse4Display { Link Here
247
247
248
    $variables ||= {};
248
    $variables ||= {};
249
    if (C4::Context->preference('OPACShowOpenURL')) {
249
    if (C4::Context->preference('OPACShowOpenURL')) {
250
        my ($biblio) = GetBiblioItemByBiblioNumber($biblionumber);
250
        my $biblio_object = Koha::Biblios->find($biblionumber);
251
        my $biblio = $biblio_object->biblioitem->unblessed;
251
        my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') );
252
        my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') );
252
        if (grep /^$biblio->{itemtype}$/, @itypes) {
253
        if (grep /^$biblio->{itemtype}$/, @itypes) {
253
            $variables->{OpenURLResolverURL} =
254
            $variables->{OpenURLResolverURL} =
254
- 

Return to bug 8995