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

(-)a/opac/opac-detail.pl (-14 lines)
Lines 1191-1208 $template->param( Link Here
1191
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1191
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1192
);
1192
);
1193
1193
1194
# OpenURL
1195
if (C4::Context->preference('OPACShowOpenURL')) {
1196
    my ($biblio) = GetBiblioItemByBiblioNumber($biblionumber);
1197
    my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') );
1198
    if (grep /^$biblio->{itemtype}$/, @itypes) {
1199
        $template->param(
1200
            OPACShowOpenURL => 1,
1201
            OpenURLResolverURL => C4::Context->preference('OpenURLResolverURL'),
1202
            OpenURLText => C4::Context->preference('OpenURLText'),
1203
            OpenURLImageLocation => C4::Context->preference('OpenURLImageLocation')
1204
        );
1205
    }
1206
}
1207
1208
output_html_with_http_headers $query, $cookie, $template->output;
1194
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/opac/opac-search.pl (-6 / +1 lines)
Lines 668-678 for (my $i=0;$i<@servers;$i++) { Link Here
668
                $res->{'incart'} = 1;
668
                $res->{'incart'} = 1;
669
            }
669
            }
670
670
671
            if (C4::Context->preference('COinSinOPACResults')
671
            if (C4::Context->preference('COinSinOPACResults')) {
672
            or C4::Context->preference('OPACShowOpenURL')) {
673
                if (grep /^$res->{itemtype}$/, @OpenURL_itypes) {
674
                    $res->{ShowOpenURL} = 1;
675
                }
676
                my $record = GetMarcBiblio($res->{'biblionumber'});
672
                my $record = GetMarcBiblio($res->{'biblionumber'});
677
                $res->{coins} = GetCOinSBiblio($record);
673
                $res->{coins} = GetCOinSBiblio($record);
678
            }
674
            }
679
- 

Return to bug 8995