@@ -, +, @@ wrong extension - 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" - Check ISO2709 export generates a file named koha.mrc --- tools/export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/export.pl +++ a/tools/export.pl @@ -39,7 +39,7 @@ my $record_type = $query->param("record_type"); my $op = $query->param("op") || ''; my $output_format = $query->param("format") || $query->param("output_format") || 'iso2709'; my $backupdir = C4::Context->config('backupdir'); -my $filename = $query->param("filename") || 'koha.mrc'; +my $filename = $query->param("filename") || ( $output_format eq 'csv' ? 'koha.csv' : 'koha.mrc' ); $filename =~ s/(\r|\n)//; my $dbh = C4::Context->dbh; --