Lines 28-34
This script displays lost items.
Link Here
|
28 |
use Modern::Perl; |
28 |
use Modern::Perl; |
29 |
|
29 |
|
30 |
use CGI qw ( -utf8 ); |
30 |
use CGI qw ( -utf8 ); |
31 |
use Text::CSV_XS; |
|
|
32 |
use C4::Auth qw( get_template_and_user ); |
31 |
use C4::Auth qw( get_template_and_user ); |
33 |
use C4::Output qw( output_html_with_http_headers ); |
32 |
use C4::Output qw( output_html_with_http_headers ); |
34 |
use Text::CSV::Encoded; |
33 |
use Text::CSV::Encoded; |
Lines 91-97
if ( $op eq 'cud-export' ) {
Link Here
|
91 |
my $delimiter = $csv_profile->csv_separator; |
90 |
my $delimiter = $csv_profile->csv_separator; |
92 |
$delimiter = "\t" if $delimiter eq "\\t"; |
91 |
$delimiter = "\t" if $delimiter eq "\\t"; |
93 |
|
92 |
|
94 |
my $csv = Text::CSV::Encoded->new({ encoding_out => 'UTF-8', sep_char => $delimiter}); |
93 |
my $csv = Text::CSV::Encoded->new( { encoding_out => 'UTF-8', sep_char => $delimiter, formula => 'empty' } ); |
95 |
$csv or die "Text::CSV::Encoded->new({binary => 1}) FAILED: " . Text::CSV::Encoded->error_diag(); |
94 |
$csv or die "Text::CSV::Encoded->new({binary => 1}) FAILED: " . Text::CSV::Encoded->error_diag(); |
96 |
$csv->combine(@headers); |
95 |
$csv->combine(@headers); |
97 |
my $content .= Encode::decode('UTF-8', $csv->string()) . "\n"; |
96 |
my $content .= Encode::decode('UTF-8', $csv->string()) . "\n"; |