|
Lines 191-196
if ( $op eq "export" ) {
Link Here
|
| 191 |
-attachment => $filename, |
191 |
-attachment => $filename, |
| 192 |
); |
192 |
); |
| 193 |
|
193 |
|
|
|
194 |
my $csv_profile_id = $query->param('csv_profile_id'); |
| 195 |
unless ( $csv_profile_id ) { |
| 196 |
my $default_csv_profile = Koha::CsvProfiles->search({ profile => C4::Context->preference('ExportWithCsvProfile') }); |
| 197 |
$csv_profile_id = $default_csv_profile ? $default_csv_profile->export_format_id : undef; |
| 198 |
} |
| 199 |
|
| 194 |
Koha::Exporter::Record::export( |
200 |
Koha::Exporter::Record::export( |
| 195 |
{ record_type => $record_type, |
201 |
{ record_type => $record_type, |
| 196 |
record_ids => \@record_ids, |
202 |
record_ids => \@record_ids, |
|
Lines 198-204
if ( $op eq "export" ) {
Link Here
|
| 198 |
filename => $filename, |
204 |
filename => $filename, |
| 199 |
itemnumbers => \@itemnumbers, |
205 |
itemnumbers => \@itemnumbers, |
| 200 |
dont_export_fields => $export_remove_fields, |
206 |
dont_export_fields => $export_remove_fields, |
| 201 |
csv_profile_id => ( $query->param('csv_profile_id') || GetCsvProfileId( C4::Context->preference('ExportWithCsvProfile') ) || undef ), |
207 |
csv_profile_id => $csv_profile_id, |
| 202 |
export_items => (not $dont_export_items), |
208 |
export_items => (not $dont_export_items), |
| 203 |
} |
209 |
} |
| 204 |
); |
210 |
); |
|
Lines 308-314
else {
Link Here
|
| 308 |
itemtypeloop => \@itemtypesloop, |
314 |
itemtypeloop => \@itemtypesloop, |
| 309 |
authority_types => $authority_types, |
315 |
authority_types => $authority_types, |
| 310 |
export_remove_fields => C4::Context->preference("ExportRemoveFields"), |
316 |
export_remove_fields => C4::Context->preference("ExportRemoveFields"), |
| 311 |
csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }), |
317 |
csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ], |
| 312 |
); |
318 |
); |
| 313 |
|
319 |
|
| 314 |
output_html_with_http_headers $query, $cookie, $template->output; |
320 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 315 |
- |
|
|