@@ -, +, @@ C4/Record.pm --- C4/Record.pm | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Record.pm +++ a/C4/Record.pm @@ -383,7 +383,7 @@ sub marc2csv { } # Preprocessing - eval $preprocess if ($preprocess); + eval {$preprocess} if ($preprocess); my $firstpass = 1; foreach my $biblio (@$biblios) { @@ -392,7 +392,7 @@ sub marc2csv { } # Postprocessing - eval $postprocess if ($postprocess); + eval {$postprocess} if ($postprocess); return $output; } @@ -535,7 +535,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; } --