From 29cecb3d676495419412ebf496baf7bb1f4192b5 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 --- koha-tmpl/intranet-tmpl/prog/en/includes/delimiter_text.inc | 8 ++++++++ koha-tmpl/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 0000000..e6b4aca --- /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 649fbe1..9b3a562 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 %] +