Lines 30-35
use POSIX qw( strftime );
Link Here
|
30 |
use Koha::ILL::Request::Config; |
30 |
use Koha::ILL::Request::Config; |
31 |
use Koha::ILL::Requests; |
31 |
use Koha::ILL::Requests; |
32 |
use Koha::ILL::Request; |
32 |
use Koha::ILL::Request; |
|
|
33 |
use Koha::ILL::Backends; |
33 |
use Koha::Libraries; |
34 |
use Koha::Libraries; |
34 |
use Koha::Patrons; |
35 |
use Koha::Patrons; |
35 |
use Koha::ILL::Request::Workflow::Availability; |
36 |
use Koha::ILL::Request::Workflow::Availability; |
Lines 58-68
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
58 |
); |
59 |
); |
59 |
|
60 |
|
60 |
# Are we able to actually work? |
61 |
# Are we able to actually work? |
61 |
my $reduced = C4::Context->preference('ILLOpacbackends'); |
62 |
my $patron = Koha::Patrons->find($loggedinuser); |
62 |
my $backends = Koha::ILL::Request::Config->new->available_backends($reduced); |
63 |
my $backends = Koha::ILL::Backends->opac_available_backends($patron); |
63 |
my $backends_available = ( scalar @{$backends} > 0 ); |
64 |
my $backends_available = ( scalar @{$backends} > 0 ); |
64 |
$template->param( backends_available => $backends_available ); |
65 |
$template->param( backends_available => $backends_available ); |
65 |
my $patron = Koha::Patrons->find($loggedinuser); |
|
|
66 |
|
66 |
|
67 |
my $op = Koha::ILL::Request->get_op_param_deprecation( 'opac', $params ); |
67 |
my $op = Koha::ILL::Request->get_op_param_deprecation( 'opac', $params ); |
68 |
|
68 |
|
69 |
- |
|
|