diff --git a/about.pl b/about.pl index d144e371bb..339f4e2820 100755 --- a/about.pl +++ b/about.pl @@ -121,6 +121,19 @@ if ( C4::Context->preference( 'UseQueryParser' ) ) { } } +# Test Zebra facets configuration +if ( !defined C4::Context->config('use_zebra_facets') ) { + push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' }; +} else { + if ( C4::Context->config('use_zebra_facets') && + C4::Context->config('zebra_bib_index_mode') ) { + # use_zebra_facets works with DOM + push @xml_config_warnings, { + error => 'use_zebra_facets_needs_dom' + } if C4::Context->config('zebra_bib_index_mode') ne 'dom' ; + } +} + $template->param( kohaVersion => $kohaVersion, osVersion => $osVersion, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index a5ce2f8127..75a367db37 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -155,6 +155,20 @@ file. [% config_entry.file %] is used as a fallback. + [% ELSIF config_entry.error == 'use_zebra_facets_entry_missing' %] +