View | Details | Raw Unified | Return to bug 32911
Collapse All | Expand All

(-)a/Koha/Illrequest/Config.pm (-1 / +1 lines)
Lines 319-325 sub _load_configuration { Link Here
319
        if ( $reply_date && 'hide' eq $reply_date );
319
        if ( $reply_date && 'hide' eq $reply_date );
320
320
321
    # ILL Partners
321
    # ILL Partners
322
    $configuration->{partner_code} = $xml_config->{partner_code} || 'IL';
322
    $configuration->{partner_code} = C4::Context->preference('ILLPartnerCode') || 'IL';
323
323
324
    return $configuration;
324
    return $configuration;
325
}
325
}
(-)a/about.pl (-4 / +7 lines)
Lines 303-315 if ( C4::Context->preference('ILLModule') ) { Link Here
303
        $warnILLConfiguration = 1;
303
        $warnILLConfiguration = 1;
304
    }
304
    }
305
305
306
    # Check partner_code
306
    # Check ILLPartnerCode sys pref
307
    if ( !Koha::Patron::Categories->find($ill_config->partner_code) ) {
307
    if ( !Koha::Patron::Categories->find( C4::Context->preference('ILLPartnerCode') ) ) {
308
        $template->param( ill_partner_code_doesnt_exist => $ill_config->partner_code );
308
        $template->param( ill_partner_code_doesnt_exist => C4::Context->preference('ILLPartnerCode') );
309
        $warnILLConfiguration = 1;
310
    } elsif ( !Koha::Patrons->search( { categorycode => C4::Context->preference('ILLPartnerCode') } )->count ) {
311
        $template->param( ill_partner_code_no_patrons => C4::Context->preference('ILLPartnerCode') );
309
        $warnILLConfiguration = 1;
312
        $warnILLConfiguration = 1;
310
    }
313
    }
311
314
312
    if ( !$ill_config_from_file->{partner_code} ) {
315
    if ( !C4::Context->preference('ILLPartnerCode') ) {
313
        # partner code not defined
316
        # partner code not defined
314
        $template->param( ill_partner_code_not_defined => 1 );
317
        $template->param( ill_partner_code_not_defined => 1 );
315
        $warnILLConfiguration = 1;
318
        $warnILLConfiguration = 1;
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 287-292 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
287
('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
287
('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
288
('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'),
288
('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'),
289
('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'),
289
('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'),
290
('ILLPartnerCode','IL','','Patrons from this patron category will be used as partners to place ILL requests with','free'),
290
('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'),
291
('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'),
291
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
292
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
292
('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
293
('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-2 / +10 lines)
Lines 503-509 Link Here
503
                                            <tr>
503
                                            <tr>
504
                                                <th scope="row"><strong>Warning</strong> </th>
504
                                                <th scope="row"><strong>Warning</strong> </th>
505
                                                <td>
505
                                                <td>
506
                                                    The ILL module is enabled, but no 'partner_code' defined in koha-conf.xml. Falling back to the hardcoded 'IL'.
506
                                                    The ILL module is enabled, but ILLPartnerCode system preference is empty. Falling back to the hardcoded 'IL'.
507
                                                </td>
508
                                            </tr>
509
                                        [% END %]
510
                                        [% IF ill_partner_code_no_patrons %]
511
                                            <tr>
512
                                                <th scope="row"><strong>Warning</strong> </th>
513
                                                <td>
514
                                                    The ILL module is enabled and ILLPartnerCode system preference configured, but there are no patrons in [% ill_partner_code_no_patrons | html %] category.
507
                                                </td>
515
                                                </td>
508
                                            </tr>
516
                                            </tr>
509
                                        [% END %]
517
                                        [% END %]
Lines 519-525 Link Here
519
                                            <tr>
527
                                            <tr>
520
                                                <th scope="row"><strong>Warning</strong> </th>
528
                                                <th scope="row"><strong>Warning</strong> </th>
521
                                                <td>
529
                                                <td>
522
                                                    The ILL module is enabled, but the configured 'partner_code' ([% ill_partner_code_doesnt_exist | html %]) is not defined on the system.
530
                                                    The ILL module is enabled, but the configured ILLPartnerCode ([% ill_partner_code_doesnt_exist | html %]) is not defined on the system.
523
                                                </td>
531
                                                </td>
524
                                            </tr>
532
                                            </tr>
525
                                        [% END %]
533
                                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref (-1 / +5 lines)
Lines 44-49 Interlibrary loans: Link Here
44
            - pref: ILLSendStaffNotices
44
            - pref: ILLSendStaffNotices
45
              class: multi
45
              class: multi
46
            - "(separated with |). e.g. ILL_REQUEST_CANCEL|ILL_REQUEST_MODIFIED If left empty, no staff ILL notices will be sent."
46
            - "(separated with |). e.g. ILL_REQUEST_CANCEL|ILL_REQUEST_MODIFIED If left empty, no staff ILL notices will be sent."
47
        -
48
            - "Use patrons from category"
49
            - pref: ILLPartnerCode
50
              choices: patron-categories
51
            - "as partners to place ILL requests with."
47
        -
52
        -
48
            - "Fallback email address for staff ILL notices to be sent to in the absence of a library address:"
53
            - "Fallback email address for staff ILL notices to be sent to in the absence of a library address:"
49
            - pref: ILLDefaultStaffEmail
54
            - pref: ILLDefaultStaffEmail
50
- 

Return to bug 32911