Lines 299-311
if ( $backends_available ) {
Link Here
|
299 |
# Prepare availability searching, if required |
299 |
# Prepare availability searching, if required |
300 |
# Get the definition for the z39.50 plugin |
300 |
# Get the definition for the z39.50 plugin |
301 |
if ( C4::Context->preference('ILLCheckAvailability') ) { |
301 |
if ( C4::Context->preference('ILLCheckAvailability') ) { |
302 |
my $availability = Koha::Illrequest::Workflow::Availability->new($request->metadata); |
302 |
my $availability = Koha::Illrequest::Workflow::Availability->new( |
303 |
my $services = $availability->get_services({ |
303 |
{ |
304 |
ui_context => 'partners', |
304 |
name => 'ILL availability - z39.50', |
305 |
metadata => { |
305 |
%{$request->metadata} |
306 |
name => 'ILL availability - z39.50' |
306 |
}, |
307 |
} |
307 |
'partners' |
308 |
}); |
308 |
); |
|
|
309 |
my $services = $availability->get_services(); |
309 |
# Only pass availability searching stuff to the template if |
310 |
# Only pass availability searching stuff to the template if |
310 |
# appropriate |
311 |
# appropriate |
311 |
if ( scalar @{$services} > 0 ) { |
312 |
if ( scalar @{$services} > 0 ) { |
312 |
- |
|
|