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

(-)a/about.pl (+15 lines)
Lines 77-82 my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); Link Here
77
77
78
my $warnIsRootUser   = (! $loggedinuser);
78
my $warnIsRootUser   = (! $loggedinuser);
79
79
80
my @xml_config_warnings;
81
82
if ( ! defined C4::Context->config('zebra_bib_index_mode') ) {
83
    push @xml_config_warnings, {
84
        error => 'zebra_bib_index_mode_warn'
85
    };
86
}
87
88
if ( ! defined C4::Context->config('zebra_auth_index_mode') ) {
89
    push @xml_config_warnings, {
90
        error => 'zebra_auth_index_mode_warn'
91
    };
92
}
93
80
$template->param(
94
$template->param(
81
    kohaVersion   => $kohaVersion,
95
    kohaVersion   => $kohaVersion,
82
    osVersion     => $osVersion,
96
    osVersion     => $osVersion,
Lines 93-98 $template->param( Link Here
93
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
107
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
94
    errZebraConnection => $errZebraConnection,
108
    errZebraConnection => $errZebraConnection,
95
    warnIsRootUser => $warnIsRootUser,
109
    warnIsRootUser => $warnIsRootUser,
110
    xml_config_warnings        => \@xml_config_warnings
96
);
111
);
97
112
98
my @components = ();
113
my @components = ();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +11 lines)
Lines 117-122 Link Here
117
                <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>
117
                <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>
118
            [% END %]
118
            [% END %]
119
        </table>
119
        </table>
120
        [% ELSIF xml_config_warnings.size %]
121
        <table>
122
            <caption>XML configuration file</caption>
123
        [% FOREACH config_entry IN xml_config_warnings %]
124
            [% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
125
            <tr><th scope="row"><b>Warning</b> </th><td>The &lt;zebra_bib_index_mode&gt; entry is missing in your configuration file. It should be set to <strong>dom</strong> or <strong>grs1</strong>. It will default to <strong>grs1</strong> but this could change in the future.</td></tr>
126
            [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
127
            <tr><th scope="row"><b>Warning</b> </th><td>The &lt;zebra_auth_index_mode&gt; entry is missing in your configuration file. It should be set to <strong>dom</strong> or <strong>grs1</strong>. It will default to <strong>dom</strong> but this could change in the future.</td></tr>
128
            [% END %]
129
        [% END %]
130
        </table>
120
        [% ELSE %]
131
        [% ELSE %]
121
            <p>No warnings</p>
132
            <p>No warnings</p>
122
        [% END %]
133
        [% END %]
123
- 

Return to bug 11596