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

(-)a/opac/opac-illrequests.pl (-3 / +7 lines)
Lines 50-59 if ( ! C4::Context->preference('ILLModule') ) { Link Here
50
    exit;
50
    exit;
51
}
51
}
52
52
53
my $op = Koha::ILL::Request->get_op_param_deprecation( 'opac', $params );
54
53
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
55
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
54
    template_name   => "opac-illrequests.tt",
56
    template_name   => "opac-illrequests.tt",
55
    query           => $query,
57
    query           => $query,
56
    type            => "opac",
58
    type            => "opac",
59
    authnotrequired => (
60
        ( C4::Context->preference("ILLOpacUnauthenticatedRequest") && ( $op eq 'cud-create' || $op eq 'unauth_view' ) )
61
        ? 1
62
        : 0
63
        )
57
});
64
});
58
65
59
# Are we able to actually work?
66
# Are we able to actually work?
Lines 62-69 my $backends = Koha::ILL::Backends->opac_available_backends($patron); Link Here
62
my $backends_available = ( scalar @{$backends} > 0 );
69
my $backends_available = ( scalar @{$backends} > 0 );
63
$template->param( backends_available => $backends_available );
70
$template->param( backends_available => $backends_available );
64
71
65
my $op = Koha::ILL::Request->get_op_param_deprecation( 'opac', $params );
66
67
my ( $illrequest_id, $request );
72
my ( $illrequest_id, $request );
68
if ( $illrequest_id = $params->{illrequest_id} ) {
73
if ( $illrequest_id = $params->{illrequest_id} ) {
69
    $request = Koha::ILL::Requests->find($illrequest_id);
74
    $request = Koha::ILL::Requests->find($illrequest_id);
70
- 

Return to bug 36197