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

(-)a/opac/opac-detail.pl (-14 lines)
Lines 1222-1239 $template->param( Link Here
1222
    'OpacLocationBranchToDisplay' => C4::Context->preference('OpacLocationBranchToDisplay'),
1222
    'OpacLocationBranchToDisplay' => C4::Context->preference('OpacLocationBranchToDisplay'),
1223
);
1223
);
1224
1224
1225
# OpenURL
1226
if (C4::Context->preference('OPACShowOpenURL')) {
1227
    my ($biblio) = GetBiblioItemByBiblioNumber($biblionumber);
1228
    my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') );
1229
    if (grep /^$biblio->{itemtype}$/, @itypes) {
1230
        $template->param(
1231
            OPACShowOpenURL => 1,
1232
            OpenURLResolverURL => C4::Context->preference('OpenURLResolverURL'),
1233
            OpenURLText => C4::Context->preference('OpenURLText'),
1234
            OpenURLImageLocation => C4::Context->preference('OpenURLImageLocation')
1235
        );
1236
    }
1237
}
1238
1239
output_html_with_http_headers $query, $cookie, $template->output;
1225
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/opac/opac-search.pl (-6 / +1 lines)
Lines 681-691 for (my $i=0;$i<@servers;$i++) { Link Here
681
                $res->{'incart'} = 1;
681
                $res->{'incart'} = 1;
682
            }
682
            }
683
683
684
            if (C4::Context->preference('COinSinOPACResults')
684
            if (C4::Context->preference('COinSinOPACResults')) {
685
            or C4::Context->preference('OPACShowOpenURL')) {
686
                if (grep /^$res->{itemtype}$/, @OpenURL_itypes) {
687
                    $res->{ShowOpenURL} = 1;
688
                }
689
                my $record = GetMarcBiblio({ biblionumber => $res->{'biblionumber'} });
685
                my $record = GetMarcBiblio({ biblionumber => $res->{'biblionumber'} });
690
                $res->{coins} = GetCOinSBiblio($record);
686
                $res->{coins} = GetCOinSBiblio($record);
691
            }
687
            }
692
- 

Return to bug 8995