From d7b3fa11b045a139176a9db59b860b023263331c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 3 Jan 2018 14:07:17 +0000 Subject: [PATCH] Bug 19910 - Use the delimiter syspref to name download link To test: 1 - Set delimiter syspref to anything but comma 2 - Donwload report results as comma separated text 3 - They actually follow the syspref 4 - Apply patch 5 - Download link should now match pref selection 6 - Change pref, note link changes 7 - Verify things still work as expected Signed-off-by: Mark Tompsett --- .../intranet-tmpl/prog/en/includes/reports-toolbar.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc index 00edf94..f55b9a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -50,11 +50,22 @@ [% BLOCK params %] [% FOREACH param IN sql_params %]&sql_params=[% param %][% END %] [% END %] + [% BLOCK separator_text %] + [% SWITCH Koha.Preference('delimiter') %] + [% CASE '#' %]Pound (#) separated text + [% CASE ',' %]Comma separated text + [% CASE '/' %]Slash separated text + [% CASE ';' %]Semicolon separated text + [% CASE '\\' %]Backslash separated text + [% CASE 'tabulation' %]Tab separated text + [% END %] + [% END %] +