@@ -, +, @@
deprecated
- Apply the patch and try all combinations:
- zebra_auth_index_mode and zebra_bib_index_mode missing
- zebra_auth_index_mode and zebra_bib_index_mode set to grs1
- Sign off :-D
---
about.pl | 6 +++++
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 34 ++++++++++++++++++++++--
2 files changed, 38 insertions(+), 2 deletions(-)
--- a/about.pl
+++ a/about.pl
@@ -84,12 +84,18 @@ if ( ! defined C4::Context->config('zebra_bib_index_mode') ) {
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
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
@@ -145,9 +145,39 @@
XML configuration file
[% FOREACH config_entry IN xml_config_warnings %]
[% IF config_entry.error == 'zebra_bib_index_mode_warn' %]
- Warning | The <zebra_bib_index_mode> entry is missing in your configuration file. It should be set to dom or grs1. It will default to grs1 but this could change in the future. |
+
+ Warning |
+ The <zebra_bib_index_mode> entry is missing in your configuration file.
+ It should be set to dom or grs1 (deprecated).
+ It will default to dom.
+ |
+
[% ELSIF config_entry.error == 'zebra_auth_index_mode_warn' %]
- Warning | The <zebra_auth_index_mode> entry is missing in your configuration file. It should be set to dom or grs1. It will default to dom but this could change in the future. |
+
+ Warning |
+ The <zebra_auth_index_mode> entry is missing in your configuration file.
+ It should be set to dom or grs1 (deprecated).
+ It will default to dom.
+ |
+
+ [% ELSIF config_entry.error == 'zebra_bib_grs_warn' %]
+
+ Warning |
+ The <zebra_bib_index_mode> entry is set to grs1.
+ GRS-1 support is now deprecated and will be removed in future releases.
+ Please use DOM instead by setting <zebra_bib_index_mode> to
+ dom (full reindex required).
+ |
+
+ [% ELSIF config_entry.error == 'zebra_auth_grs_warn' %]
+
+ Warning |
+ The <zebra_auth_index_mode> entry is set to grs1.
+ GRS-1 support is now deprecated and will be removed in future releases.
+ Please use DOM instead by setting <zebra_auth_index_mode> to
+ dom (full reindex required).
+ |
+
[% ELSIF config_entry.error == 'queryparser_entry_missing' %]
Warning |
--