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>
This commit is contained in:
parent
9d527ad8a4
commit
0fce4ba81d
|
|
@ -3,10 +3,17 @@
|
|||
|
||||
[% USE Koha %]
|
||||
[% USE raw %]
|
||||
[% USE Dumper( Indent=1, SortKeys=1 ) %]
|
||||
|
||||
[% IF Koha.Preference('DumpSearchQueryTemplate') %]
|
||||
<!-- SearchQuery
|
||||
[% Dumper.dump( search_query ) | $raw %]
|
||||
-->
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
|
||||
[% TRY %]
|
||||
[% USE Stash %]
|
||||
[% USE Dumper( Indent=1, SortKeys=1 ) %]
|
||||
<!--
|
||||
[% FILTER replace('<!--', '<!- -') %]
|
||||
[% FILTER replace('-->', '- ->') %]
|
||||
|
|
|
|||
|
|
@ -133,4 +133,4 @@ Logging:
|
|||
choices:
|
||||
1: Do
|
||||
0: "Don't"
|
||||
- dump search query as a template parameter, requires <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=DumpTemplateVars">DumpTemplateVars</a>[interface] to be visible.
|
||||
- dump search query to a comment in the HTML source for the OPAC and staff interface.
|
||||
|
|
|
|||
|
|
@ -3,10 +3,17 @@
|
|||
|
||||
[% 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 %]
|
||||
[% USE Dumper ( Indent=1, SortKeys=1 ) %]
|
||||
<!--
|
||||
[% FILTER replace('<!--', '<!- -') %]
|
||||
[% FILTER replace('-->', '- ->') %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue