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)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 29 Nov 2016 17:44:45 +0000 (17:44 +0000)
commitfc084f90d1da1dedb70c97a225d3df332f8224d2
tree43300b4eb714844703ac5e3a0307f80597b6cf6d
parent8dce1cde3a8b1d0cd742f26545aa1d09e4ff63df
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>
tools/export.pl