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

(-)a/about.pl (+13 lines)
Lines 121-126 if ( C4::Context->preference( 'UseQueryParser' ) ) { Link Here
121
    }
121
    }
122
}
122
}
123
123
124
# Test Zebra facets configuration
125
if ( !defined C4::Context->config('use_zebra_facets') ) {
126
    push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' };
127
} else {
128
    if ( C4::Context->config('use_zebra_facets') &&
129
         C4::Context->config('zebra_bib_index_mode') ) {
130
        # use_zebra_facets works with DOM
131
        push @xml_config_warnings, {
132
            error => 'use_zebra_facets_needs_dom'
133
        } if C4::Context->config('zebra_bib_index_mode') ne 'dom' ;
134
    }
135
}
136
124
$template->param(
137
$template->param(
125
    kohaVersion   => $kohaVersion,
138
    kohaVersion   => $kohaVersion,
126
    osVersion     => $osVersion,
139
    osVersion     => $osVersion,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +14 lines)
Lines 155-160 Link Here
155
                        file. <strong>[% config_entry.file %]</strong> is used as a fallback.
155
                        file. <strong>[% config_entry.file %]</strong> is used as a fallback.
156
                    </td>
156
                    </td>
157
                </tr>
157
                </tr>
158
                [% ELSIF config_entry.error == 'use_zebra_facets_entry_missing' %]
159
                <tr>
160
                    <th scope="row"><b>Warning</b></th>
161
                    <td>The &lt;use_zebra_facets&gt; entry is missing in your configuration file. Falling back
162
                        to legacy facet calculation.
163
                    </td>
164
                </tr>
165
                [% ELSIF config_entry.error == 'use_zebra_facets_needs_dom' %]
166
                <tr>
167
                    <th scope="row"><b>Warning</b></th>
168
                    <td>You have set &lt;use_zebra_facets&gt; but the &lt;zebra_bib_index_mode&gt; is not set to <strong>dom</strong>. Falling back
169
                        to legacy facet calculation.
170
                    </td>
171
                </tr>
158
                [% END %]
172
                [% END %]
159
            [% END %]
173
            [% END %]
160
            </table>
174
            </table>
161
- 

Return to bug 13087