Lines 35-40
use Koha::Libraries;
Link Here
|
35 |
use Koha::Patrons; |
35 |
use Koha::Patrons; |
36 |
use Koha::ILL::Request::Workflow::Availability; |
36 |
use Koha::ILL::Request::Workflow::Availability; |
37 |
use Koha::ILL::Request::Workflow::ConfirmAuto; |
37 |
use Koha::ILL::Request::Workflow::ConfirmAuto; |
|
|
38 |
use Koha::ILL::Request::Workflow::HistoryCheck; |
38 |
use Koha::ILL::Request::Workflow::TypeDisclaimer; |
39 |
use Koha::ILL::Request::Workflow::TypeDisclaimer; |
39 |
|
40 |
|
40 |
my $query = CGI->new; |
41 |
my $query = CGI->new; |
Lines 124-135
if ( $op eq 'list' ) {
Link Here
|
124 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
125 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
125 |
|
126 |
|
126 |
# Before request creation operations - Preparation |
127 |
# Before request creation operations - Preparation |
|
|
128 |
my $history_check = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'opac' ); |
127 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
129 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
128 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
130 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
129 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
131 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
130 |
|
132 |
|
131 |
# ILLCheckAvailability operation |
133 |
# ILLHistoryCheck operation |
132 |
if ( $availability->show_availability($request) ) { |
134 |
if ( $history_check->show_history_check($request) ) { |
|
|
135 |
$op = 'historycheck'; |
136 |
$template->param( $history_check->history_check_template_params($params) ); |
137 |
output_html_with_http_headers $query, $cookie, |
138 |
$template->output, undef, |
139 |
{ force_no_caching => 1 }; |
140 |
exit; |
141 |
|
142 |
# ILLCheckAvailability operation |
143 |
} elsif ( $availability->show_availability($request) ) { |
133 |
$op = 'availability'; |
144 |
$op = 'availability'; |
134 |
$template->param( $availability->availability_template_params($params) ); |
145 |
$template->param( $availability->availability_template_params($params) ); |
135 |
output_html_with_http_headers $query, $cookie, |
146 |
output_html_with_http_headers $query, $cookie, |
Lines 180-185
if ( $op eq 'list' ) {
Link Here
|
180 |
if ( $params->{type_disclaimer_submitted} ) { |
191 |
if ( $params->{type_disclaimer_submitted} ) { |
181 |
$type_disclaimer->after_request_created( $params, $request ); |
192 |
$type_disclaimer->after_request_created( $params, $request ); |
182 |
} |
193 |
} |
|
|
194 |
if ( C4::Context->preference('ILLHistoryCheck') ) { |
195 |
$history_check->after_request_created( $params, $request ); |
196 |
} |
183 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
197 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
184 |
$op = 'unauth_view'; |
198 |
$op = 'unauth_view'; |
185 |
} else { |
199 |
} else { |
186 |
- |
|
|