Lines 69-74
my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
Link Here
|
69 |
|
69 |
|
70 |
my @branch = $query->multi_param("branch"); |
70 |
my @branch = $query->multi_param("branch"); |
71 |
|
71 |
|
|
|
72 |
my @messages; |
73 |
if ( $op eq 'export' ) { |
74 |
my $filename = $query->param('id_list_file'); |
75 |
my $mimetype = $query->uploadInfo($filename)->{'Content-Type'}; |
76 |
my @valid_mimetypes = qw( application/octet-stream text/csv text/plain ); |
77 |
unless ( grep { /^$mimetype$/ } @valid_mimetypes ) { |
78 |
push @messages, { type => 'alert', code => 'invalid_mimetype' }; |
79 |
$op = ''; |
80 |
} |
81 |
} |
82 |
|
72 |
if ( $op eq "export" ) { |
83 |
if ( $op eq "export" ) { |
73 |
|
84 |
|
74 |
my $export_remove_fields = $query->param("export_remove_fields") || q||; |
85 |
my $export_remove_fields = $query->param("export_remove_fields") || q||; |
Lines 302-307
else {
Link Here
|
302 |
authority_types => $authority_types, |
313 |
authority_types => $authority_types, |
303 |
export_remove_fields => C4::Context->preference("ExportRemoveFields"), |
314 |
export_remove_fields => C4::Context->preference("ExportRemoveFields"), |
304 |
csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ], |
315 |
csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ], |
|
|
316 |
messages => \@messages, |
305 |
); |
317 |
); |
306 |
|
318 |
|
307 |
output_html_with_http_headers $query, $cookie, $template->output; |
319 |
output_html_with_http_headers $query, $cookie, $template->output; |
308 |
- |
|
|