push @xml_config_warnings, {
error => 'zebra_bib_index_mode_warn'
};
+} else {
+ push @xml_config_warnings, { error => 'zebra_bib_grs_warn' }
+ if C4::Context->config('zebra_bib_index_mode') eq 'grs1';
}
if ( ! defined C4::Context->config('zebra_auth_index_mode') ) {
push @xml_config_warnings, {
error => 'zebra_auth_index_mode_warn'
};
+} else {
+ push @xml_config_warnings, { error => 'zebra_auth_grs_warn' }
+ if C4::Context->config('zebra_auth_index_mode') eq 'grs1';
}
# Test QueryParser configuration sanity
<caption>XML configuration file</caption>
[% FOREACH config_entry IN xml_config_warnings %]
[% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
- <tr><th scope="row"><b>Warning</b> </th><td>The <zebra_bib_index_mode> 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>
+ <tr>
+ <th scope="row"><b>Warning</b></th>
+ <td>The <zebra_bib_index_mode> entry is missing in your configuration file.
+ It should be set to <strong>dom</strong> or <strong>grs1</strong> (deprecated).
+ It will default to <strong>dom</strong>.
+ </td>
+ </tr>
[% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
- <tr><th scope="row"><b>Warning</b> </th><td>The <zebra_auth_index_mode> 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>
+ <tr>
+ <th scope="row"><b>Warning</b></th>
+ <td>The <zebra_auth_index_mode> entry is missing in your configuration file.
+ It should be set to <strong>dom</strong> or <strong>grs1</strong> (deprecated).
+ It will default to <strong>dom</strong>.
+ </td>
+ </tr>
+ [% ELSIF config_entry.error == 'zebra_bib_grs_warn' %]
+ <tr>
+ <th scope="row"><b>Warning</b></th>
+ <td>The <zebra_bib_index_mode> entry is set to <strong>grs1</strong>.
+ GRS-1 support is now deprecated and will be removed in future releases.
+ Please use DOM instead by setting <zebra_bib_index_mode> to
+ <strong>dom</strong> (full reindex required).
+ </td>
+ </tr>
+ [% ELSIF config_entry.error == 'zebra_auth_grs_warn' %]
+ <tr>
+ <th scope="row"><b>Warning</b></th>
+ <td>The <zebra_auth_index_mode> entry is set to <strong>grs1</strong>.
+ GRS-1 support is now deprecated and will be removed in future releases.
+ Please use DOM instead by setting <zebra_auth_index_mode> to
+ <strong>dom</strong> (full reindex required).
+ </td>
+ </tr>
[% ELSIF config_entry.error == 'queryparser_entry_missing' %]
<tr>
<th scope="row"><b>Warning</b></th>