Bug 33285: Allow specifying the delimeter for runreport.pl
authorNick Clemens <nick@bywatersolutions.com>
Mon, 20 Mar 2023 20:08:56 +0000 (20:08 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 3 May 2023 19:14:49 +0000 (21:14 +0200)
commitd209b1a7885ee8a209c5462c8c749335a118c47b
treee31b0503f74cdace6f3fec1ecf11e8f9258317e0
parenta00019c1805ed04f87365d6bf86fa6f0b4ce0f91
Bug 33285: Allow specifying the delimeter for runreport.pl

To test:
1 - Write a report in koha
2 - perl misc/cronjobs/runreport.pl --format csv 1 (or correct report number)
3 - Note you get commas
4 - Apply patch
5 - Repeat #2 - no change
6 - perl misc/cronjobs/runreport.pl --format csv --separator "|" 1
7 - Now it is pipe delimited
8 - perl misc/cronjobs/runreport.pl --format tsv --separator "|" 1
9 - Error is reported, you cannot set separator unless csv
10 - Try other separators

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bad0d52245ebf7fe73131e3721a99f7ec9a965ce)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit 94077abab8c9c0f5fb5ad08966acd3ff8e44bd31)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit dc7fb83485e5babde8dea2e4da037163d3ce2a00)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
misc/cronjobs/runreport.pl