Bug 8168: Fixing header of non CSV files for overdue notices
authorDaniel Barker <daniel.barker.nz@gmail.com>
Tue, 14 Jan 2014 20:57:19 +0000 (09:57 +1300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Jun 2014 13:00:56 +0000 (09:00 -0400)
commitaf294e6749392676a0e15b2433c95dbed4a1b484
tree21619e2e1c741f1eeefa2fb6e2ff31e9218b458f
parentca6b9bb2ee03ab1b7e8238d1237924e3ae88079d
Bug 8168: Fixing header of non CSV files for overdue notices

This determines if the CSV header should be included or not and
then generates it as needed using the delimiter specified in the
delimiter system preference.

TEST PLAN
---------
1. make some overdues books
2. run the overdue notices script without the -csv
3. check emails notice csv header is in the email
4. apply the patch
5. run the overdue notice again
6. check email notice CSV header is absent

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit a31210efd34dc7e3c65f8491c26c2d8f8fc36dfb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 48ee914631cb1ec889db8a15085f3519c20b2b7e)
misc/cronjobs/overdue_notices.pl