diff --git a/C4/Record.pm b/C4/Record.pm index 2e6ed98863..a3bc86032c 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -782,9 +782,9 @@ sub marc2bibtex { push @elt, qq|\t$bh[$i] = {$bh[$i+1]}|; } $tex .= join(",\n", $id, @elt); - $tex .= "\n"; if ($additional_fields) { + $tex .= ",\n"; foreach my $bibtex_tag ( keys %$additional_fields ) { next if $bibtex_tag eq '@'; @@ -802,6 +802,9 @@ sub marc2bibtex { } } } + else { + $tex .= "\n"; + } $tex .= "}\n";