MT 3044, Follow-up : Fix CSV Export when there are blank chars in tag names
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Fri, 5 Mar 2010 15:06:01 +0000 (16:06 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 16 Mar 2010 11:37:59 +0000 (12:37 +0100)
    Regexp is now global

C4/Record.pm

index ee04d3d..b274fd7 100644 (file)
@@ -487,7 +487,7 @@ sub marcrecord2csv {
        my $marcfield = $_->{field};
 
        # Remove any blank char that might have unintentionally insered into the tag name
-       $marcfield =~ s/\s+// 
+       $marcfield =~ s/\s+//g; 
 
        # If it is a subfield
        if (index($marcfield, '$') > 0) {