Koha-clms/tools
Fridolin Somers 32211362ab 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@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 381b79593e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9d8ddcc1b7)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-10-19 05:07:19 +02:00
..
csv-profiles
…
access_files.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
additional-contents.pl Bug 29782: Fix handling records without title or content 2022-10-12 16:43:34 +02:00
ajax-inventory.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_item_modification_by_age.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
background-job-progress.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
batchMod.pl Bug 31222: Reduce query size for batchMod 2022-10-12 16:44:38 +02:00
batch_delete_records.pl Bug 29771: Scalar context for split 2022-03-11 06:35:50 -05:00
batch_extend_due_dates.pl Bug 29380: Correct table name in joins to prevent errors 2021-11-03 15:40:52 +01:00
batch_record_modification.pl Bug 29771: Scalar context for split 2022-03-11 06:35:50 -05:00
batch_records_ajax.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
cleanborrowers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
copy-holidays.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
csv-profiles.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
exceptionHolidays.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
export.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
holidays.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
import_borrowers.pl Bug 29771: Remove trivial cases 2022-03-11 06:35:45 -05:00
inventory.pl Bug 29771: Scalar context for split 2022-03-11 06:35:50 -05:00
letter.pl Bug 24387: Rename "News" with "Additional contents" 2021-08-16 11:55:55 +02:00
manage-marc-import.pl Bug 29325: Fix commit_file.pl 2022-10-14 22:22:04 +02:00
marc_modification_templates.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
modborrowers.pl Bug 30525: Items batch modification broken 2022-04-22 14:29:43 -04:00
newHolidays.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overduerules.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
picture-upload.pl Bug 28576: Update the maximum size of an image. 2022-02-18 06:40:58 -05:00
problem-reports.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
quotes-upload.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
quotes.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
scheduler.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
showdiffmarc.pl Bug 30779: Remove _update_import_record_marc and update tests 2022-10-12 17:19:57 +02:00
stage-marc-import.pl Bug 30525: Items batch modification broken 2022-04-22 14:29:43 -04:00
stockrotation.pl Bug 29771: Remove trivial cases 2022-03-11 06:35:45 -05:00
tools-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
upload-cover-image.pl Bug 30525: Items batch modification broken 2022-04-22 14:29:43 -04:00
upload-file.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
upload.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
viewlog.pl Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-10-19 05:07:19 +02:00