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 135-146
if ( $op eq 'list' ) {
Link Here
|
135 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
136 |
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); |
136 |
|
137 |
|
137 |
# Before request creation operations - Preparation |
138 |
# Before request creation operations - Preparation |
|
|
139 |
my $history_check = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'opac' ); |
138 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
140 |
my $availability = Koha::ILL::Request::Workflow::Availability->new( $params, 'opac' ); |
139 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
141 |
my $type_disclaimer = Koha::ILL::Request::Workflow::TypeDisclaimer->new( $params, 'opac' ); |
140 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
142 |
my $confirm_auto = Koha::ILL::Request::Workflow::ConfirmAuto->new( $params, 'opac' ); |
141 |
|
143 |
|
142 |
# ILLCheckAvailability operation |
144 |
# ILLHistoryCheck operation |
143 |
if ( $availability->show_availability($request) ) { |
145 |
if ( $history_check->show_history_check($request) ) { |
|
|
146 |
$op = 'historycheck'; |
147 |
$template->param( $history_check->history_check_template_params($params) ); |
148 |
output_html_with_http_headers $query, $cookie, |
149 |
$template->output, undef, |
150 |
{ force_no_caching => 1 }; |
151 |
exit; |
152 |
|
153 |
# ILLCheckAvailability operation |
154 |
} elsif ( $availability->show_availability($request) ) { |
144 |
$op = 'availability'; |
155 |
$op = 'availability'; |
145 |
$template->param( $availability->availability_template_params($params) ); |
156 |
$template->param( $availability->availability_template_params($params) ); |
146 |
output_html_with_http_headers $query, $cookie, |
157 |
output_html_with_http_headers $query, $cookie, |
Lines 197-202
if ( $op eq 'list' ) {
Link Here
|
197 |
if ( $params->{type_disclaimer_submitted} ) { |
208 |
if ( $params->{type_disclaimer_submitted} ) { |
198 |
$type_disclaimer->after_request_created( $params, $request ); |
209 |
$type_disclaimer->after_request_created( $params, $request ); |
199 |
} |
210 |
} |
|
|
211 |
if ( C4::Context->preference('ILLHistoryCheck') ) { |
212 |
$history_check->after_request_created( $params, $request ); |
213 |
} |
200 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
214 |
if ( C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron ) { |
201 |
my $sessionID = $query->cookie('CGISESSID'); |
215 |
my $sessionID = $query->cookie('CGISESSID'); |
202 |
my $session = C4::Auth::get_session($sessionID); |
216 |
my $session = C4::Auth::get_session($sessionID); |
203 |
- |
|
|