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