[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
Mon Jun 20 23:00:07 CEST 2022


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

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #136379|0                           |1
        is obsolete|                            |

--- Comment #45 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 136381
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136381&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

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


More information about the Koha-bugs mailing list