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

(-)a/about.pl (+5 lines)
Lines 465-470 if ( C4::Context->preference('WebBasedSelfCheck') Link Here
465
    );
465
    );
466
}
466
}
467
467
468
if ( C4::Context->preference('PatronSelfRegistration') ) {
469
    $template->param( warnPrefPatronSelfRegistrationDefaultCategory => 1 )
470
        unless  Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
471
}
472
468
# Test YAML system preferences
473
# Test YAML system preferences
469
# FIXME: This is list of current YAML formatted prefs, should by type of preference
474
# FIXME: This is list of current YAML formatted prefs, should by type of preference
470
my @yaml_prefs = (
475
my @yaml_prefs = (
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-3 / +5 lines)
Lines 267-273 Link Here
267
                        [% SET warnMissingCompiledFiles = 1 %]
267
                        [% SET warnMissingCompiledFiles = 1 %]
268
                    [% END %]
268
                    [% END %]
269
                    [% WRAPPER tab_panel tabname= "sysinfo" %]
269
                    [% WRAPPER tab_panel tabname= "sysinfo" %]
270
                        [% IF weasyprint_missing || warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing || warnMissingCompiledFiles%]
270
                        [% IF weasyprint_missing || warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || warnPrefPatronSelfRegistrationDefaultCategory || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing || warnMissingCompiledFiles%]
271
                            [% IF (warnIsRootUser) %]
271
                            [% IF (warnIsRootUser) %]
272
                                <h2>Warning regarding current user</h2>
272
                                <h2>Warning regarding current user</h2>
273
                                <p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
273
                                <p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
Lines 382-388 Link Here
382
                                Contact your system administrator.
382
                                Contact your system administrator.
383
                            [% END # /IF warnConnectBroker %]
383
                            [% END # /IF warnConnectBroker %]
384
384
385
                            [% IF weasyprint_missing || warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || warnXSLT || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnFastCataloging %]
385
                            [% IF weasyprint_missing || warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || warnPrefPatronSelfRegistrationDefaultCategory || invalid_yesno.count || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || warnXSLT || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnFastCataloging %]
386
                                <h2>Warnings regarding the system configuration</h2>
386
                                <h2>Warnings regarding the system configuration</h2>
387
                                <table>
387
                                <table>
388
                                    <caption>Preferences and parameters</caption>
388
                                    <caption>Preferences and parameters</caption>
Lines 439-444 Link Here
439
                                            <th scope="row"><strong>Warning</strong> </th>
439
                                            <th scope="row"><strong>Warning</strong> </th>
440
                                            <td>System preference 'OpacHiddenItems' generates a warning and will produce unexpected behaviors: [% warnPrefOpacHiddenItems | html %]</th></tr>
440
                                            <td>System preference 'OpacHiddenItems' generates a warning and will produce unexpected behaviors: [% warnPrefOpacHiddenItems | html %]</th></tr>
441
                                    [% END %]
441
                                    [% END %]
442
                                    [% IF warnPrefPatronSelfRegistrationDefaultCategory %]
443
                                        <tr><th scope="row"><strong>Warning</strong> </th><td>System preference 'PatronSelfRegistration' is set but 'PatronSelfRegistrationDefaultCategory' does not contain a valid patron category code. Patron self-registration is disabled.</td></tr>
444
                                    [% END %]
442
                                    [% IF warnXSLT %]
445
                                    [% IF warnXSLT %]
443
                                        [% FOR p IN warnXSLT %]
446
                                        [% FOR p IN warnXSLT %]
444
                                            <tr>
447
                                            <tr>
445
- 

Return to bug 27634