Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc
Nick Clemens 0fce4ba81d
Bug 30543: Decouple DumpSearchQueryTemplate from other tempalte dump preferences
To test:
1 - Enable DumpSearchQueryTemplate
2 - Confirm you can find the search query in the HTML as a comment
3 - Enable other template dump preference
4 - Confirm they work as before
5 - Confirm new description of preference makes sense

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-09 08:44:14 -03:00

33 lines
931 B
HTML

<!DOCTYPE html>
<!-- TEMPLATE FILE: [% template.name.split('/').last | html %] -->
[% USE raw %]
[% USE Koha %]
[% USE Dumper( Indent=1, SortKeys=1 ) %]
[% IF Koha.Preference('DumpSearchQueryTemplate') %]
<!-- SearchQuery
[% Dumper.dump( search_query ) | $raw %]
-->
[% END %]
[% IF Koha.Preference('DumpTemplateVarsOpac') %]
[% TRY %]
[% USE Stash %]
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]
[% Dumper.dump( Stash.stash() ) | $raw %]
[% END %]
[% END %]
-->
[% CATCH %]
<!--
DumpTemplateVarsOpac is set to 'Do', but
Template::Plugin::Stash is not installed.
-->
[% END %]
[% END %]
[% IF ( bidi ) %]<html lang="[% lang | html %]" dir="[% bidi | html %]" class="no-js">[% ELSE %]<html lang="[% lang | html %]" class="no-js">[% END %]
<head>