Lines 35-40
use C4::Installer;
Link Here
|
35 |
|
35 |
|
36 |
use Koha; |
36 |
use Koha; |
37 |
use Koha::Acquisition::Currencies; |
37 |
use Koha::Acquisition::Currencies; |
|
|
38 |
use Koha::Patron::Categories; |
38 |
use Koha::Patrons; |
39 |
use Koha::Patrons; |
39 |
use Koha::Caches; |
40 |
use Koha::Caches; |
40 |
use Koha::Config::SysPrefs; |
41 |
use Koha::Config::SysPrefs; |
Lines 261-276
if ( !defined C4::Context->config('use_zebra_facets') ) {
Link Here
|
261 |
} |
262 |
} |
262 |
} |
263 |
} |
263 |
|
264 |
|
|
|
265 |
# ILL module checks |
264 |
if ( C4::Context->preference('ILLModule') ) { |
266 |
if ( C4::Context->preference('ILLModule') ) { |
265 |
my $warnILLConfiguration = 0; |
267 |
my $warnILLConfiguration = 0; |
|
|
268 |
my $ill_config_from_file = C4::Context->config("interlibrary_loans"); |
269 |
my $ill_config = Koha::Illrequest::Config->new; |
270 |
|
266 |
my $available_ill_backends = |
271 |
my $available_ill_backends = |
267 |
( scalar @{ Koha::Illrequest::Config->new->available_backends } > 0 ); |
272 |
( scalar @{ $ill_config->available_backends } > 0 ); |
268 |
|
273 |
|
|
|
274 |
# Check backends |
269 |
if ( !$available_ill_backends ) { |
275 |
if ( !$available_ill_backends ) { |
270 |
$template->param( no_ill_backends => 1 ); |
276 |
$template->param( no_ill_backends => 1 ); |
271 |
$warnILLConfiguration = 1; |
277 |
$warnILLConfiguration = 1; |
272 |
} |
278 |
} |
273 |
|
279 |
|
|
|
280 |
# Check partner_code |
281 |
if ( !Koha::Patron::Categories->find($ill_config->partner_code) ) { |
282 |
$template->param( ill_partner_code_doesnt_exist => $ill_config->partner_code ); |
283 |
$warnILLConfiguration = 1; |
284 |
} |
285 |
|
286 |
if ( !$ill_config_from_file->{partner_code} ) { |
287 |
# partner code not defined |
288 |
$template->param( ill_partner_code_not_defined => 1 ); |
289 |
$warnILLConfiguration = 1; |
290 |
} |
291 |
|
274 |
$template->param( warnILLConfiguration => $warnILLConfiguration ); |
292 |
$template->param( warnILLConfiguration => $warnILLConfiguration ); |
275 |
} |
293 |
} |
276 |
|
294 |
|