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)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 30 Nov 2016 13:50:24 +0000 (14:50 +0100)
commit8ee1b67f589603980bdc5a5c898dca4809ecd752
tree2ec574f8d1f75b00000fa7ce28d2aa945b236669
parentb8dd36ecf1d4a9a3af899effae6a43e93adfe5c4
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>
(cherry picked from commit fc084f90d1da1dedb70c97a225d3df332f8224d2)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
tools/export.pl