@@ -, +, @@ --- C4/Record.pm | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Record.pm +++ a/C4/Record.pm @@ -355,7 +355,7 @@ sub marc2csv { } # Preprocessing - eval $preprocess if ($preprocess); + eval {$preprocess} if ($preprocess); my $firstpass = 1; foreach my $biblio (@$biblios) { @@ -364,7 +364,7 @@ sub marc2csv { } # Postprocessing - eval $postprocess if ($postprocess); + eval {$postprocess} if ($postprocess); return $output; } @@ -507,7 +507,7 @@ sub marcrecord2csv { $value = defined $authvalues->{$_->as_string} ? $authvalues->{$_->as_string} : $_->as_string; # Field processing - eval $fieldprocessing if ($fieldprocessing); + eval {$fieldprocessing} if ($fieldprocessing); push @valuesarray, $value; } --