[Koha-bugs] [Bug 27045] Tabulation in CSV profile for lost items doesn't export correctly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 12 10:45:17 CEST 2021


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

--- Comment #7 from Fridolin Somers <fridolin.somers at biblibre.com> ---
  my $delimiter = $csv_profile->csv_separator;
  $delimiter = "\t" if $delimiter eq "\\t";

Ah strange :

In system preference stored value is string "tabulation" :
https://git.koha-community.org/Koha-community/Koha/src/commit/99c10bf4484635e9befdc9c09a56c0f7278c7976/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref#L50

We see in other places :
  $delimiter = "\t" if $delimiter eq 'tabulation';
https://git.koha-community.org/Koha-community/Koha/src/commit/65542edbe021d58ca6ef1332a8e3ca760b198391/reports/guided_reports.pl#L903

Looks like use of CSVdelimiter is wrong in many places where preference is
fetched in TT.
I create a  new bug report for that.

Maybe we shoud add a method C4::Context->csv_delimiter() ?
And add a method to TT plugin.

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


More information about the Koha-bugs mailing list