Bug 5637 : MT3044 : Fix CSV export when rer are blank characters

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Henri-Damien LAURENT 2011-04-06 17:00:45 +02:00 committed by Chris Cormack
parent 40b49900c3
commit 0c8c7a8db6
1 changed files with 2 additions and 0 deletions

View File

@ -411,6 +411,8 @@ sub marcrecord2csv {
foreach (@marcfields) {
my $field = $_->{field};
# Remove any blank char that might have unintentionally insered into the tag name
$field =~ s/\s+//g;
# If we have a user-supplied header, we use it
if (exists $_->{header}) {