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

(-)a/opac/opac-detail.pl (-14 lines)
Lines 1155-1172 $template->param( Link Here
1155
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1155
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1156
);
1156
);
1157
1157
1158
# OpenURL
1159
if (C4::Context->preference('OPACShowOpenURL')) {
1160
    my ($biblio) = GetBiblioItemByBiblioNumber($biblionumber);
1161
    my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') );
1162
    if (grep /^$biblio->{itemtype}$/, @itypes) {
1163
        $template->param(
1164
            OPACShowOpenURL => 1,
1165
            OpenURLResolverURL => C4::Context->preference('OpenURLResolverURL'),
1166
            OpenURLText => C4::Context->preference('OpenURLText'),
1167
            OpenURLImageLocation => C4::Context->preference('OpenURLImageLocation')
1168
        );
1169
    }
1170
}
1171
1172
output_html_with_http_headers $query, $cookie, $template->output;
1158
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/opac/opac-search.pl (-6 / +1 lines)
Lines 673-683 for (my $i=0;$i<@servers;$i++) { Link Here
673
                $res->{'incart'} = 1;
673
                $res->{'incart'} = 1;
674
            }
674
            }
675
675
676
            if (C4::Context->preference('COinSinOPACResults')
676
            if (C4::Context->preference('COinSinOPACResults')) {
677
            or C4::Context->preference('OPACShowOpenURL')) {
678
                if (grep /^$res->{itemtype}$/, @OpenURL_itypes) {
679
                    $res->{ShowOpenURL} = 1;
680
                }
681
                my $record = GetMarcBiblio($res->{'biblionumber'});
677
                my $record = GetMarcBiblio($res->{'biblionumber'});
682
                $res->{coins} = GetCOinSBiblio($record);
678
                $res->{coins} = GetCOinSBiblio($record);
683
            }
679
            }
684
- 

Return to bug 8995