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

(-)a/about.pl (+24 lines)
Lines 292-297 if ( C4::Context->preference('ILLModule') ) { Link Here
292
    $template->param( warnILLConfiguration => $warnILLConfiguration );
292
    $template->param( warnILLConfiguration => $warnILLConfiguration );
293
}
293
}
294
294
295
my $upload_public_path = C4::Context->config('upload_public_path');
296
my $upload_public_url  = C4::Context->config('upload_public_url');
297
if ( $upload_public_path or $upload_public_url ) {
298
    my $warnUploadPublic;
299
300
    if ( $upload_public_path and not $upload_public_url ) {
301
        $warnUploadPublic = 1;
302
        $template->param(upload_public_url_not_defined => 1);
303
    }elsif( not $upload_public_path and $upload_public_url ) {
304
        $warnUploadPublic = 1;
305
        $template->param(upload_public_path_not_defined => 1);
306
    }
307
    if ( ! -d $upload_public_path ) {
308
        $warnUploadPublic = 1;
309
        $template->param(upload_public_path_not_created => 1);
310
    }
311
    elsif( ! -w $upload_public_path ) {
312
        $warnUploadPublic = 1;
313
        $template->param(upload_public_path_not_writable => 1);
314
    }
315
316
    $template->param(warnUploadPublic => $warnUploadPublic);
317
}
318
295
if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
319
if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
296
    # Check ES configuration health and runtime status
320
    # Check ES configuration health and runtime status
297
321
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-3 / +24 lines)
Lines 183-189 Link Here
183
        </div>
183
        </div>
184
184
185
        <div id="sysinfo">
185
        <div id="sysinfo">
186
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps %]
186
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || warnUploadPublic %]
187
        [% IF (warnIsRootUser) %]
187
        [% IF (warnIsRootUser) %]
188
            <h2>Warning regarding current user</h2>
188
            <h2>Warning regarding current user</h2>
189
            <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>
189
            <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 228-234 Link Here
228
            <br/>
228
            <br/>
229
        [% END %]
229
        [% END %]
230
230
231
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps %]
231
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || warnUploadPublic %]
232
            <h2>Warnings regarding the system configuration</h2>
232
            <h2>Warnings regarding the system configuration</h2>
233
            <table>
233
            <table>
234
                <caption>Preferences and parameters</caption>
234
                <caption>Preferences and parameters</caption>
Lines 305-310 Link Here
305
                    System preference 'RESTOAuth2ClientCredentials' is set, but the required Net::OAuth2::AuthorizationServer dependency is missing. The feature is disabled.
305
                    System preference 'RESTOAuth2ClientCredentials' is set, but the required Net::OAuth2::AuthorizationServer dependency is missing. The feature is disabled.
306
                    </td></tr>
306
                    </td></tr>
307
                [% END %]
307
                [% END %]
308
                [% IF warnUploadPublic %]
309
                    [% IF upload_public_url_not_defined %]
310
                        <tr><th scope="row"><b>Warning</b> </th><td>
311
                        The configuration entry 'upload_public_url' is not defined in koha-conf.xml but 'upload_public_path' is. The feature is disabled.
312
                        </td></tr>
313
                    [% END %]
314
                    [% IF upload_public_path_not_defined %]
315
                        <tr><th scope="row"><b>Warning</b> </th><td>
316
                        The configuration entry 'upload_public_path' is not defined in koha-conf.xml but 'upload_public_url' is. The feature is disabled.
317
                        </td></tr>
318
                    [% END %]
319
                    [% IF upload_public_path_not_created %]
320
                        <tr><th scope="row"><b>Warning</b> </th><td>
321
                        The configuration entry 'upload_public_path' is defined but the value does not point to an existing local directory.
322
                        </td></tr>
323
                    [% END %]
324
                    [% IF upload_public_path_not_writable %]
325
                        <tr><th scope="row"><b>Warning</b> </th><td>
326
                        The configuration entry 'upload_public_path' is defined but the value does not point to a writable local directory.
327
                        </td></tr>
328
                    [% END %]
329
                [% END %]
308
            </table>
330
            </table>
309
        [% END %]
331
        [% END %]
310
332
311
- 

Return to bug 22508