Lines 37-42
use Koha::Libraries;
Link Here
|
37 |
use Koha::Patrons; |
37 |
use Koha::Patrons; |
38 |
use Koha::ILL::Request::Workflow::Availability; |
38 |
use Koha::ILL::Request::Workflow::Availability; |
39 |
use Koha::ILL::Request::Workflow::ConfirmAuto; |
39 |
use Koha::ILL::Request::Workflow::ConfirmAuto; |
|
|
40 |
use Koha::ILL::Request::Workflow::HistoryCheck; |
40 |
use Koha::ILL::Request::Workflow::TypeDisclaimer; |
41 |
use Koha::ILL::Request::Workflow::TypeDisclaimer; |
41 |
|
42 |
|
42 |
my $query = CGI->new; |
43 |
my $query = CGI->new; |
Lines 128-139
if ( $op eq 'list' ) {
Link Here
|
128 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
129 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
129 |
|
130 |
|
130 |
# Before request creation operations - Preparation |
131 |
# Before request creation operations - Preparation |
|
|
132 |
my $history_check = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'opac' ); |
131 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
133 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
132 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
134 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
133 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
135 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
134 |
|
136 |
|
135 |
# ILLCheckAvailability operation |
137 |
# ILLHistoryCheck operation |
136 |
if ( $availability->show_availability($request) ) { |
138 |
if ( $history_check->show_history_check($request) ) { |
|
|
139 |
$op = 'historycheck'; |
140 |
$template->param( $history_check->history_check_template_params($params) ); |
141 |
output_html_with_http_headers $query, $cookie, |
142 |
$template->output, undef, |
143 |
{ force_no_caching => 1 }; |
144 |
exit; |
145 |
|
146 |
# ILLCheckAvailability operation |
147 |
} elsif ( $availability->show_availability($request) ) { |
137 |
$op = 'availability'; |
148 |
$op = 'availability'; |
138 |
$template->param( $availability->availability_template_params($params) ); |
149 |
$template->param( $availability->availability_template_params($params) ); |
139 |
output_html_with_http_headers $query, $cookie, |
150 |
output_html_with_http_headers $query, $cookie, |
Lines 190-195
if ( $op eq 'list' ) {
Link Here
|
190 |
if ( $params->{type_disclaimer_submitted} ) { |
201 |
if ( $params->{type_disclaimer_submitted} ) { |
191 |
$type_disclaimer->after_request_created( $params, $request ); |
202 |
$type_disclaimer->after_request_created( $params, $request ); |
192 |
} |
203 |
} |
|
|
204 |
if ( C4::Context->preference('ILLHistoryCheck') ) { |
205 |
$history_check->after_request_created( $params, $request ); |
206 |
} |
193 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
207 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
194 |
my $sessionID = $query->cookie('CGISESSID'); |
208 |
my $sessionID = $query->cookie('CGISESSID'); |
195 |
my $session = C4::Auth::get_session($sessionID); |
209 |
my $session = C4::Auth::get_session($sessionID); |
196 |
- |
|
|