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

(-)a/about.pl (-6 / +16 lines)
Lines 159-171 my $warnPrefBiblioAddsAuthorities = ( $prefAutoCreateAuthorities && ( !$prefBibl Link Here
159
my $prefEasyAnalyticalRecords  = C4::Context->preference('EasyAnalyticalRecords');
159
my $prefEasyAnalyticalRecords  = C4::Context->preference('EasyAnalyticalRecords');
160
my $prefUseControlNumber  = C4::Context->preference('UseControlNumber');
160
my $prefUseControlNumber  = C4::Context->preference('UseControlNumber');
161
my $warnPrefEasyAnalyticalRecords  = ( $prefEasyAnalyticalRecords  && $prefUseControlNumber );
161
my $warnPrefEasyAnalyticalRecords  = ( $prefEasyAnalyticalRecords  && $prefUseControlNumber );
162
my $warnPrefAnonymousPatron = (
162
163
my $AnonymousPatron = C4::Context->preference('AnonymousPatron');
164
my $warnPrefAnonymousPatronOPACPrivacy = (
163
    C4::Context->preference('OPACPrivacy')
165
    C4::Context->preference('OPACPrivacy')
164
        and not C4::Context->preference('AnonymousPatron')
166
        and not $AnonymousPatron
167
);
168
my $warnPrefAnonymousPatronAnonSuggestions = (
169
    C4::Context->preference('AnonSuggestions')
170
        and not $AnonymousPatron
165
);
171
);
166
172
167
my $anonymous_patron = Koha::Patrons->find( C4::Context->preference('AnonymousPatron') );
173
my $anonymous_patron = Koha::Patrons->find( $AnonymousPatron );
168
my $warnPrefAnonymousPatron_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count );
174
my $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist = ( $AnonymousPatron && C4::Context->preference('AnonSuggestions') && not $anonymous_patron );
175
176
my $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist = ( not $anonymous_patron and Koha::Patrons->search({ privacy => 2 })->count );
169
177
170
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
178
my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
171
179
Lines 520-527 $template->param( Link Here
520
    prefAutoCreateAuthorities => $prefAutoCreateAuthorities,
528
    prefAutoCreateAuthorities => $prefAutoCreateAuthorities,
521
    warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities,
529
    warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities,
522
    warnPrefEasyAnalyticalRecords  => $warnPrefEasyAnalyticalRecords,
530
    warnPrefEasyAnalyticalRecords  => $warnPrefEasyAnalyticalRecords,
523
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
531
    warnPrefAnonymousPatronOPACPrivacy        => $warnPrefAnonymousPatronOPACPrivacy,
524
    warnPrefAnonymousPatron_PatronDoesNotExist => $warnPrefAnonymousPatron_PatronDoesNotExist,
532
    warnPrefAnonymousPatronAnonSuggestions    => $warnPrefAnonymousPatronAnonSuggestions,
533
    warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist     => $warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist,
534
    warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist => $warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist,
525
    errZebraConnection => $errZebraConnection,
535
    errZebraConnection => $errZebraConnection,
526
    warnIsRootUser => $warnIsRootUser,
536
    warnIsRootUser => $warnIsRootUser,
527
    warnNoActiveCurrency => $warnNoActiveCurrency,
537
    warnNoActiveCurrency => $warnNoActiveCurrency,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-5 / +10 lines)
Lines 184-190 Link Here
184
        </div>
184
        </div>
185
185
186
        <div id="sysinfo">
186
        <div id="sysinfo">
187
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships %]
187
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships %]
188
        [% IF (warnIsRootUser) %]
188
        [% IF (warnIsRootUser) %]
189
            <h2>Warning regarding current user</h2>
189
            <h2>Warning regarding current user</h2>
190
            <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>
190
            <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 246-252 Link Here
246
            [% END %]
246
            [% END %]
247
        [% END %]
247
        [% END %]
248
248
249
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules %]
249
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules %]
250
            <h2>Warnings regarding the system configuration</h2>
250
            <h2>Warnings regarding the system configuration</h2>
251
            <table>
251
            <table>
252
                <caption>Preferences and parameters</caption>
252
                <caption>Preferences and parameters</caption>
Lines 256-267 Link Here
256
                [% IF (warnPrefEasyAnalyticalRecords) %]
256
                [% IF (warnPrefEasyAnalyticalRecords) %]
257
                <tr><th scope="row"><b>Warning</b> </th><td>System preference 'EasyAnalyticalRecords' set, but UseControlNumber preference is set to 'Use'. Set it to 'Don't use' or else the 'Show analytics' links in the staff client and the OPAC will be broken.</td></tr>
257
                <tr><th scope="row"><b>Warning</b> </th><td>System preference 'EasyAnalyticalRecords' set, but UseControlNumber preference is set to 'Use'. Set it to 'Don't use' or else the 'Show analytics' links in the staff client and the OPAC will be broken.</td></tr>
258
                [% END %]
258
                [% END %]
259
                [% IF warnPrefAnonymousPatron %]
259
                [% IF warnPrefAnonymousPatronOPACPrivacy %]
260
                    <tr><th scope="row"><b>Warning</b> </th><td>System preference 'OPACPrivacy' set, but AnonymousPatron preference is set to '0'. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
260
                    <tr><th scope="row"><b>Warning</b> </th><td>System preference 'OPACPrivacy' set, but AnonymousPatron preference is set to '0'. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
261
                [% END %]
261
                [% END %]
262
                [% IF warnPrefAnonymousPatron_PatronDoesNotExist %]
262
                [% IF warnPrefAnonymousPatronAnonSuggestions %]
263
                    <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AnonSuggestions' set, but AnonymousPatron preference is set to '0'. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
264
                [% END %]
265
                [% IF warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist %]
263
                    <tr><th scope="row"><b>Warning</b> </th><td>Some patrons have requested a privacy on returning item but the AnonymousPatron pref is not set correctly. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
266
                    <tr><th scope="row"><b>Warning</b> </th><td>Some patrons have requested a privacy on returning item but the AnonymousPatron pref is not set correctly. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
264
                [% END %]
267
                [% END %]
268
                [% IF warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist %]
269
                    <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AnonSuggestions' set, but AnonymousPatron preference is not set correctly. Set it to a valid borrower number if you want that this feature works correctly.</td></tr>
270
                [% END %]
265
                [% IF warnNoActiveCurrency %]
271
                [% IF warnNoActiveCurrency %]
266
                    <tr><th scope="row"><b>Warning</b> </th><td>No active currency is defined. Please go to <a href="/cgi-bin/koha/admin/currency.pl">Administration &gt; Currencies and exchange rates</a> and mark one currency as active.</td></tr>
272
                    <tr><th scope="row"><b>Warning</b> </th><td>No active currency is defined. Please go to <a href="/cgi-bin/koha/admin/currency.pl">Administration &gt; Currencies and exchange rates</a> and mark one currency as active.</td></tr>
267
                [% END %]
273
                [% END %]
268
- 

Return to bug 24327