From 6611ad4f05f8b236842940189ecd5ded88dc3d85 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 - Download 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: Owen Leonard Signed-off-by: Victor Grousset Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/includes/delimiter_text.inc | 8 ++++++++ .../intranet-tmpl/prog/en/includes/reports-toolbar.inc | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/delimiter_text.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/delimiter_text.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/delimiter_text.inc new file mode 100644 index 0000000000..e6b4aca0e5 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/delimiter_text.inc @@ -0,0 +1,8 @@ +[% SWITCH Koha.Preference('delimiter') %] + [% CASE '#' %]Pound (#) separated text (.csv) + [% CASE ',' %]Comma separated text (.csv) + [% CASE '/' %]Slash separated text (.csv) + [% CASE ';' %]Semicolon separated text (.csv) + [% CASE '\\' %]Backslash separated text (.csv) + [% CASE 'tabulation' %]Tab separated text (.csv) +[% END %] 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 649fbe1278..9b3a562c08 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -52,10 +52,11 @@ [%- FOREACH param IN sql_params %]&sql_params=[% param %][% END %] [%- END %] +