|
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 128-133
if ( $op eq 'list' ) {
Link Here
|
| 128 |
->load_backend($params->{backend}); |
129 |
->load_backend($params->{backend}); |
| 129 |
|
130 |
|
| 130 |
# Before request creation operations - Preparation |
131 |
# Before request creation operations - Preparation |
|
|
132 |
my $history_check = |
| 133 |
Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'opac' ); |
| 131 |
my $availability = |
134 |
my $availability = |
| 132 |
Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
135 |
Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
| 133 |
my $type_disclaimer = |
136 |
my $type_disclaimer = |
|
Lines 135-142
if ( $op eq 'list' ) {
Link Here
|
| 135 |
my $confirm_auto = |
138 |
my $confirm_auto = |
| 136 |
Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
139 |
Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
| 137 |
|
140 |
|
|
|
141 |
# ILLHistoryCheck operation |
| 142 |
if ($history_check->show_history_check($request)) { |
| 143 |
$op = 'historycheck'; |
| 144 |
$template->param( |
| 145 |
$history_check->history_check_template_params($params) |
| 146 |
); |
| 147 |
output_html_with_http_headers $query, $cookie, |
| 148 |
$template->output, undef, |
| 149 |
{ force_no_caching => 1 }; |
| 150 |
exit; |
| 138 |
# ILLCheckAvailability operation |
151 |
# ILLCheckAvailability operation |
| 139 |
if ($availability->show_availability($request)) { |
152 |
} elsif ($availability->show_availability($request)) { |
| 140 |
$op = 'availability'; |
153 |
$op = 'availability'; |
| 141 |
$template->param( |
154 |
$template->param( |
| 142 |
$availability->availability_template_params($params) |
155 |
$availability->availability_template_params($params) |
|
Lines 190-195
if ( $op eq 'list' ) {
Link Here
|
| 190 |
if ( $params->{type_disclaimer_submitted} ) { |
203 |
if ( $params->{type_disclaimer_submitted} ) { |
| 191 |
$type_disclaimer->after_request_created( $params, $request ); |
204 |
$type_disclaimer->after_request_created( $params, $request ); |
| 192 |
} |
205 |
} |
|
|
206 |
if ( C4::Context->preference('ILLHistoryCheck') ) { |
| 207 |
$history_check->after_request_created( $params, $request ); |
| 208 |
} |
| 193 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
209 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
| 194 |
$op = 'unauth_view'; |
210 |
$op = 'unauth_view'; |
| 195 |
} else { |
211 |
} else { |
| 196 |
- |
|
|