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