Bug 17395 - exporting checkouts in CVS generates a file with wrong extension
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 4 Oct 2016 10:52:46 +0000 (12:52 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 4 Dec 2016 20:52:22 +0000 (21:52 +0100)
commit7300cf784ae3c7a8f594f10cff46ee3e6a7bf5de
tree7ed2f0274bf25caeabb2d701eaa1f3fd54f33f01
parent53528e15802859ec49e9a908c2a6cf164da278b4
Bug 17395 - exporting checkouts in CVS generates a file with wrong extension

In checkouts table, the is an export form (when some exports syspref are enabled).
Export using a CSV profile will create a file with name koha.mrc (same as ISO2709 export).
It would be better with koha.csv.

Bug 14647 manages the export page, this but will only manage for export from checkouts table where file name is hard-coded.

Test plan :
- Enable checkouts exports by setting syspref ExportWithCsvProfile with a profile for record export
- Go to circ page of a patron with checkouts : /cgi-bin/koha/circ/circulation.pl?borrowernumber=xxx
- Show checkouts table
- Select some checkboxes in "Export" column
- Select "CSV" in export format combo-box
- Click on "Export"
=> Without patch, the generated file is koha.mrc
=> With patch, the generated file is koha.csv
- Check ISO2709 export generates a file named koha.mrc

Signed-off-by: Dani Elder <dani@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
tools/export.pl