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

(-)a/about.pl (-1 / +1 lines)
Lines 107-113 $template->param( Link Here
107
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
107
    warnPrefAnonymousPatron => $warnPrefAnonymousPatron,
108
    errZebraConnection => $errZebraConnection,
108
    errZebraConnection => $errZebraConnection,
109
    warnIsRootUser => $warnIsRootUser,
109
    warnIsRootUser => $warnIsRootUser,
110
    xml_config_warnings        => \@xml_config_warnings
110
    xml_config_warnings => \@xml_config_warnings
111
);
111
);
112
112
113
my @components = ();
113
my @components = ();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-29 / +31 lines)
Lines 98-135 Link Here
98
        </div>
98
        </div>
99
99
100
        <div id="sysinfo">
100
        <div id="sysinfo">
101
        [% IF (warnIsRootUser) %]
101
        [% IF warnIsRootUser || warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || xml_config_warnings.size %]
102
          [% IF warnIsRootUser %]
102
            <h2>Warning regarding current user</h2>
103
            <h2>Warning regarding current user</h2>
103
            <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>
104
            <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>
104
            <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
105
            <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
105
        [% END %]
106
          [% END %]
106
            <h2>Warnings regarding the system configuration</h2>
107
          [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron %]
107
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron %]
108
          <h2>Warnings regarding the system configuration</h2>
108
        <table>
109
          <table>
109
            <caption>Preferences</caption>
110
              <caption>Preferences</caption>
110
            [% IF (warnPrefBiblioAddsAuthorities) %]
111
              [% IF (warnPrefBiblioAddsAuthorities) %]
111
            <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AutoCreateAuthorities' set, but needs 'BiblioAddsAuthorities' set as well.</td></tr>
112
              <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AutoCreateAuthorities' set, but needs 'BiblioAddsAuthorities' set as well.</td></tr>
112
            [% END %]
113
              [% END %]
113
            [% IF (warnPrefEasyAnalyticalRecords) %]
114
              [% IF (warnPrefEasyAnalyticalRecords) %]
114
            <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>
115
              <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>
115
            [% END %]
116
              [% END %]
116
            [% IF warnPrefAnonymousPatron %]
117
              [% IF warnPrefAnonymousPatron %]
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
                  <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 %]
119
              [% END %]
119
        </table>
120
          </table>
120
        [% ELSIF xml_config_warnings.size %]
121
          [% END %]
121
        <table>
122
          [% IF xml_config_warnings.size %]
122
            <caption>XML configuration file</caption>
123
          <table>
123
        [% FOREACH config_entry IN xml_config_warnings %]
124
              <caption>XML configuration file</caption>
124
            [% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
125
          [% FOREACH config_entry IN xml_config_warnings %]
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
              [% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
126
            [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
127
              <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>
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
              [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
128
            [% END %]
129
              <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>
129
        [% END %]
130
              [% END %]
130
        </table>
131
          [% END %]
132
          </table>
133
          [% END %]
131
        [% ELSE %]
134
        [% ELSE %]
132
            <p>No warnings</p>
135
            <p>All looks good.</p>
133
        [% END %]
136
        [% END %]
134
        </div>
137
        </div>
135
138
136
- 

Return to bug 11596