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

(-)a/about.pl (+24 lines)
Lines 293-298 if ( C4::Context->preference('ILLModule') ) { Link Here
293
    $template->param( warnILLConfiguration => $warnILLConfiguration );
293
    $template->param( warnILLConfiguration => $warnILLConfiguration );
294
}
294
}
295
295
296
my $upload_public_path = C4::Context->config('upload_public_path');
297
my $upload_public_url  = C4::Context->config('upload_public_url');
298
if ( $upload_public_path or $upload_public_url ) {
299
    my $warnUploadPublic;
300
301
    if ( $upload_public_path and not $upload_public_url ) {
302
        $warnUploadPublic = 1;
303
        $template->param(upload_public_url_not_defined => 1);
304
    }elsif( not $upload_public_path and $upload_public_url ) {
305
        $warnUploadPublic = 1;
306
        $template->param(upload_public_path_not_defined => 1);
307
    }
308
    if ( ! -d $upload_public_path ) {
309
        $warnUploadPublic = 1;
310
        $template->param(upload_public_path_not_created => 1);
311
    }
312
    elsif( ! -w $upload_public_path ) {
313
        $warnUploadPublic = 1;
314
        $template->param(upload_public_path_not_writable => 1);
315
    }
316
317
    $template->param(warnUploadPublic => $warnUploadPublic);
318
}
319
296
if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
320
if ( C4::Context->preference('SearchEngine') eq 'Elasticsearch' ) {
297
    # Check ES configuration health and runtime status
321
    # Check ES configuration health and runtime status
298
322
(-)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 || bad_yaml_prefs %]
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 || bad_yaml_prefs || 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 || bad_yaml_prefs %]
231
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || 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 310-315 Link Here
310
                    Some system preferences have badly formatted YAML content: [% bad_yaml_prefs.join(', ') | html %]
310
                    Some system preferences have badly formatted YAML content: [% bad_yaml_prefs.join(', ') | html %]
311
                    </td></tr>
311
                    </td></tr>
312
                [% END %]
312
                [% END %]
313
                [% IF warnUploadPublic %]
314
                    [% IF upload_public_url_not_defined %]
315
                        <tr><th scope="row"><b>Warning</b> </th><td>
316
                        The configuration entry 'upload_public_url' is not defined in koha-conf.xml but 'upload_public_path' is. The feature is disabled.
317
                        </td></tr>
318
                    [% END %]
319
                    [% IF upload_public_path_not_defined %]
320
                        <tr><th scope="row"><b>Warning</b> </th><td>
321
                        The configuration entry 'upload_public_path' is not defined in koha-conf.xml but 'upload_public_url' is. The feature is disabled.
322
                        </td></tr>
323
                    [% END %]
324
                    [% IF upload_public_path_not_created %]
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 an existing local directory.
327
                        </td></tr>
328
                    [% END %]
329
                    [% IF upload_public_path_not_writable %]
330
                        <tr><th scope="row"><b>Warning</b> </th><td>
331
                        The configuration entry 'upload_public_path' is defined but the value does not point to a writable local directory.
332
                        </td></tr>
333
                    [% END %]
334
                [% END %]
313
            </table>
335
            </table>
314
        [% END %]
336
        [% END %]
315
337
316
- 

Return to bug 22508