|
Lines 29-36
use Koha::ILL::Comment;
Link Here
|
| 29 |
use Koha::Illrequests; |
29 |
use Koha::Illrequests; |
| 30 |
use Koha::Illrequest; |
30 |
use Koha::Illrequest; |
| 31 |
use Koha::ILL::Batches; |
31 |
use Koha::ILL::Batches; |
| 32 |
use Koha::Illrequest::Workflow::Availability; |
32 |
use Koha::ILL::Request::Workflow::Availability; |
| 33 |
use Koha::Illrequest::Workflow::TypeDisclaimer; |
33 |
use Koha::ILL::Request::Workflow::TypeDisclaimer; |
| 34 |
use Koha::Libraries; |
34 |
use Koha::Libraries; |
| 35 |
use Koha::Plugins; |
35 |
use Koha::Plugins; |
| 36 |
|
36 |
|
|
Lines 128-136
if ( $backends_available ) {
Link Here
|
| 128 |
|
128 |
|
| 129 |
# Before request creation operations - Preparation |
129 |
# Before request creation operations - Preparation |
| 130 |
my $availability = |
130 |
my $availability = |
| 131 |
Koha::Illrequest::Workflow::Availability->new( $params, 'staff' ); |
131 |
Koha::ILL::Request::Workflow::Availability->new( $params, 'staff' ); |
| 132 |
my $type_disclaimer = |
132 |
my $type_disclaimer = |
| 133 |
Koha::Illrequest::Workflow::TypeDisclaimer->new( $params, 'staff' ); |
133 |
Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'staff' ); |
| 134 |
|
134 |
|
| 135 |
# ILLCheckAvailability operation |
135 |
# ILLCheckAvailability operation |
| 136 |
if ($availability->show_availability($request)) { |
136 |
if ($availability->show_availability($request)) { |
|
Lines 322-328
if ( $backends_available ) {
Link Here
|
| 322 |
# Prepare availability searching, if required |
322 |
# Prepare availability searching, if required |
| 323 |
# Get the definition for the z39.50 plugin |
323 |
# Get the definition for the z39.50 plugin |
| 324 |
if ( C4::Context->preference('ILLCheckAvailability') ) { |
324 |
if ( C4::Context->preference('ILLCheckAvailability') ) { |
| 325 |
my $availability = Koha::Illrequest::Workflow::Availability->new( |
325 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( |
| 326 |
{ |
326 |
{ |
| 327 |
name => 'ILL availability - z39.50', |
327 |
name => 'ILL availability - z39.50', |
| 328 |
%{$request->metadata} |
328 |
%{$request->metadata} |
|
Lines 551-556
sub get_ill_availability {
Link Here
|
| 551 |
} |
551 |
} |
| 552 |
} |
552 |
} |
| 553 |
|
553 |
|
| 554 |
my $availability = Koha::Illrequest::Workflow::Availability->new($id_types, 'staff'); |
554 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $id_types, 'staff' ); |
| 555 |
return $availability->get_services(); |
555 |
return $availability->get_services(); |
| 556 |
} |
556 |
} |