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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-47 / +50 lines)
Lines 98-161 Link Here
98
        </div>
98
        </div>
99
99
100
        <div id="sysinfo">
100
        <div id="sysinfo">
101
    [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron ||
102
          warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size %]
101
        [% IF (warnIsRootUser) %]
103
        [% IF (warnIsRootUser) %]
102
            <h2>Warning regarding current user</h2>
104
            <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>
105
            <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>
106
            <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 %]
107
        [% END %]
106
            <h2>Warnings regarding the system configuration</h2>
108
107
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron ||
109
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron ||
108
              warnNoActiveCurrency || QueryParserError %]
110
              warnNoActiveCurrency || QueryParserError %]
109
        <table>
111
            <h2>Warnings regarding the system configuration</h2>
110
            <caption>Preferences and parameters</caption>
112
            <table>
111
            [% IF (warnPrefBiblioAddsAuthorities) %]
113
                <caption>Preferences and parameters</caption>
112
            <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AutoCreateAuthorities' set, but needs 'BiblioAddsAuthorities' set as well.</td></tr>
114
                [% IF (warnPrefBiblioAddsAuthorities) %]
113
            [% END %]
115
                <tr><th scope="row"><b>Warning</b> </th><td>System preference 'AutoCreateAuthorities' set, but needs 'BiblioAddsAuthorities' set as well.</td></tr>
114
            [% IF (warnPrefEasyAnalyticalRecords) %]
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>
116
            [% END %]
117
            [% IF warnPrefAnonymousPatron %]
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>
119
            [% END %]
120
            [% IF warnNoActiveCurrency %]
121
                <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>
122
            [% END %]
123
            [% IF QueryParserError %]
124
                <tr><th scope="row"><b>Warning</b> </th><td>
125
                    You have set UseQueryParser but there was a problem inititializing QueryParser.
126
                [% IF QueryParserError.fallback %]
127
                    The 'queryparser_config' entry is missing in your configuration file.
128
                    <strong>[% QueryParserError.file %]</strong> was used instead without success.
129
                [% ELSE %]
130
                    The following configuration file was used without success: <strong>[% QueryParserError.file %]</strong>.
131
                [% END %]
116
                [% END %]
132
                    </td>
117
                [% IF (warnPrefEasyAnalyticalRecords) %]
133
                </tr>
118
                <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>
134
            [% END %]
119
                [% END %]
135
120
                [% IF warnPrefAnonymousPatron %]
136
        </table>
121
                    <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>
122
                [% END %]
123
                [% IF warnNoActiveCurrency %]
124
                    <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>
125
                [% END %]
126
                [% IF QueryParserError %]
127
                    <tr><th scope="row"><b>Warning</b> </th><td>
128
                        You have set UseQueryParser but there was a problem inititializing QueryParser.
129
                    [% IF QueryParserError.fallback %]
130
                        The 'queryparser_config' entry is missing in your configuration file.
131
                        <strong>[% QueryParserError.file %]</strong> was used instead without success.
132
                    [% ELSE %]
133
                        The following configuration file was used without success: <strong>[% QueryParserError.file %]</strong>.
134
                    [% END %]
135
                        </td>
136
                    </tr>
137
                [% END %]
138
            </table>
137
        [% END %]
139
        [% END %]
140
138
        [% IF xml_config_warnings.size %]
141
        [% IF xml_config_warnings.size %]
139
        <table>
142
            <table>
140
            <caption>XML configuration file</caption>
143
                <caption>XML configuration file</caption>
141
        [% FOREACH config_entry IN xml_config_warnings %]
144
            [% FOREACH config_entry IN xml_config_warnings %]
142
            [% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
145
                [% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
143
            <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>
146
                <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>
144
            [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
147
                [% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
145
            <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>
148
                <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>
146
            [% ELSIF config_entry.error == 'queryparser_entry_missing' %]
149
                [% ELSIF config_entry.error == 'queryparser_entry_missing' %]
147
            <tr>
150
                <tr>
148
                <th scope="row"><b>Warning</b></th>
151
                    <th scope="row"><b>Warning</b></th>
149
                <td>You have set UseQueryParser but the 'queryparser_config' entry is missing in your configuration
152
                    <td>You have set UseQueryParser but the 'queryparser_config' entry is missing in your configuration
150
                    file. <strong>[% config_entry.file %]</strong> is used as a fallback.
153
                        file. <strong>[% config_entry.file %]</strong> is used as a fallback.
151
                </td>
154
                    </td>
152
            </tr>
155
                </tr>
156
                [% END %]
153
            [% END %]
157
            [% END %]
158
            </table>
154
        [% END %]
159
        [% END %]
155
        </table>
160
    [% ELSE %]
156
        [% ELSE %]
161
        <p>No warnings.</p>
157
            <p>No warnings</p>
162
    [% END %]
158
        [% END %]
159
        </div>
163
        </div>
160
164
161
        <div id="team">
165
        <div id="team">
162
- 

Return to bug 12745