Fix for Bug 4400, BIBTEX export from OPAC results in empty file
authorOwen Leonard <oleonard@myacpl.org>
Mon, 10 May 2010 19:24:47 +0000 (15:24 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 May 2010 19:22:31 +0000 (07:22 +1200)
opac-export.pl tries to get two variables from marc2bibtex(),
but it only returns one.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
opac/opac-export.pl

index 0e2d94f..4c53aff 100755 (executable)
@@ -39,8 +39,7 @@ if ($op eq "export") {
                                $marc = marc2ris(MARC::Record->new_from_usmarc($marc));
                        }
                        elsif ($format =~ /bibtex/) {
-                               my $error;
-                               ($error,$marc) = marc2bibtex(C4::Biblio::GetMarcBiblio($biblionumber),$biblionumber);
+                               $marc = marc2bibtex(C4::Biblio::GetMarcBiblio($biblionumber),$biblionumber);
                        }elsif ($format =~ /dc/) {
                                my $error;
                                ($error,$marc) = marc2dcxml($marc,1);