From 8daaa977deb3da2a123763911724ba52bb7e7407 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 16 Jan 2013 10:18:04 -0800 Subject: [PATCH] Bug 9274: fix BibTex export to use GetMarcAuthors correctly Signed-off-by: Galen Charlton Signed-off-by: Fridolyn SOMERS --- C4/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Record.pm b/C4/Record.pm index f75195f..32e4bc7 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -651,7 +651,7 @@ sub marc2bibtex { # Authors my $marcauthors = GetMarcAuthors($record,C4::Context->preference("marcflavour")); my $author; - for my $authors ( map { map { @$_ } values %$_ } @$marcauthors ) { + for my $authors ( map { @$_ } map { $_->{'MARCAUTHOR_SUBFIELDS_LOOP'} } @$marcauthors ) { $author .= " and " if ($author && $$authors{value}); $author .= $$authors{value} if ($$authors{value}); } -- 1.7.9.5