[Koha-bugs] [Bug 28327] System preference CSVdelimiter special case for tabulation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 19 20:40:28 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28327

--- Comment #60 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 139515
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139515&action=edit
Bug 28327: Unify CSV delimiter special behavior for tabulation

System preference 'CSVdelimiter' has a special case for tabulation.
Preference value contains string 'tabulation' but string '\t' must be used in
CSV file.

This is OK in many places, for exemple Bug 17590.

This patch adds C4::Context->csv_delimiter to add a uniq metod dealing
with this behavior.
Also create Koha::Template::Plugin::Koha->CSVDelimiter for calls from
Toolkit Templates.

Test plan :
1) Set system preference 'CSVdelimiter' = 'tabs'.
2) Create CSV export in impacted pages
3) Check columns are separated by tabulation character and not string
'tabulation'
4) Check with another delimiter

Signed-off-by: David Nind <david at davidnind.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list