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 305-317 if ( C4::Context->preference('ILLModule') ) { Link Here
305
        $warnILLConfiguration = 1;
305
        $warnILLConfiguration = 1;
306
    }
306
    }
307
307
308
    # Check partner_code
308
    # Check ILLPartnerCode sys pref
309
    if ( !Koha::Patron::Categories->find($ill_config->partner_code) ) {
309
    if ( !Koha::Patron::Categories->find( C4::Context->preference('ILLPartnerCode') ) ) {
310
        $template->param( ill_partner_code_doesnt_exist => $ill_config->partner_code );
310
        $template->param( ill_partner_code_doesnt_exist => C4::Context->preference('ILLPartnerCode') );
311
        $warnILLConfiguration = 1;
312
    } elsif ( !Koha::Patrons->search( { categorycode => C4::Context->preference('ILLPartnerCode') } )->count ) {
313
        $template->param( ill_partner_code_no_patrons => C4::Context->preference('ILLPartnerCode') );
311
        $warnILLConfiguration = 1;
314
        $warnILLConfiguration = 1;
312
    }
315
    }
313
316
314
    if ( !$ill_config_from_file->{partner_code} ) {
317
    if ( !C4::Context->preference('ILLPartnerCode') ) {
315
        # partner code not defined
318
        # partner code not defined
316
        $template->param( ill_partner_code_not_defined => 1 );
319
        $template->param( ill_partner_code_not_defined => 1 );
317
        $warnILLConfiguration = 1;
320
        $warnILLConfiguration = 1;
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 290-295 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
290
('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
290
('ILLModuleCopyrightClearance','','70|10','Enter text to enable the copyright clearance stage of request creation. Text will be displayed','Textarea'),
291
('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'),
291
('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'),
292
('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'),
292
('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'),
293
('ILLPartnerCode','IL','','Patrons from this patron category will be used as partners to place ILL requests with','free'),
293
('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'),
294
('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'),
294
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
295
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
295
('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
296
('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 513-519 Link Here
513
                                            <tr>
513
                                            <tr>
514
                                                <th scope="row"><strong>Warning</strong> </th>
514
                                                <th scope="row"><strong>Warning</strong> </th>
515
                                                <td>
515
                                                <td>
516
                                                    The ILL module is enabled, but no 'partner_code' defined in koha-conf.xml. Falling back to the hardcoded 'IL'.
516
                                                    The ILL module is enabled, but ILLPartnerCode system preference is empty. Falling back to the hardcoded 'IL'.
517
                                                </td>
518
                                            </tr>
519
                                        [% END %]
520
                                        [% IF ill_partner_code_no_patrons %]
521
                                            <tr>
522
                                                <th scope="row"><strong>Warning</strong> </th>
523
                                                <td>
524
                                                    The ILL module is enabled and ILLPartnerCode system preference configured, but there are no patrons in [% ill_partner_code_no_patrons | html %] category.
517
                                                </td>
525
                                                </td>
518
                                            </tr>
526
                                            </tr>
519
                                        [% END %]
527
                                        [% END %]
Lines 529-535 Link Here
529
                                            <tr>
537
                                            <tr>
530
                                                <th scope="row"><strong>Warning</strong> </th>
538
                                                <th scope="row"><strong>Warning</strong> </th>
531
                                                <td>
539
                                                <td>
532
                                                    The ILL module is enabled, but the configured 'partner_code' ([% ill_partner_code_doesnt_exist | html %]) is not defined on the system.
540
                                                    The ILL module is enabled, but the configured ILLPartnerCode ([% ill_partner_code_doesnt_exist | html %]) is not defined on the system.
533
                                                </td>
541
                                                </td>
534
                                            </tr>
542
                                            </tr>
535
                                        [% END %]
543
                                        [% 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