Lines 40-46
my $op = $query->param("op") || '';
Link Here
|
40 |
my $output_format = $query->param("format") || $query->param("output_format") || 'iso2709'; |
40 |
my $output_format = $query->param("format") || $query->param("output_format") || 'iso2709'; |
41 |
my $backupdir = C4::Context->config('backupdir'); |
41 |
my $backupdir = C4::Context->config('backupdir'); |
42 |
my $filename; |
42 |
my $filename; |
43 |
if ( $record_type eq 'auths' ) { |
43 |
if ( $record_type && $record_type eq 'auths' ) { |
44 |
$filename = $query->param("filename_auth") || ( $output_format eq 'xml' ? 'koha.xml' : 'koha.mrc' ); |
44 |
$filename = $query->param("filename_auth") || ( $output_format eq 'xml' ? 'koha.xml' : 'koha.mrc' ); |
45 |
} else { |
45 |
} else { |
46 |
$filename = $query->param("filename") || ( $output_format eq 'csv' ? 'koha.csv' : 'koha.mrc' ); |
46 |
$filename = $query->param("filename") || ( $output_format eq 'csv' ? 'koha.csv' : 'koha.mrc' ); |
47 |
- |
|
|