more logs for MARC::Charset problems
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 8 Jan 2008 22:43:20 +0000 (16:43 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 9 Jan 2008 01:22:44 +0000 (19:22 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm

index bb81ed4..e96e1e5 100755 (executable)
@@ -748,7 +748,7 @@ sub GetMarcBiblio {
     my $record = MARC::Record->new();
     if ($marcxml) {
         $record = eval {MARC::Record::new_from_xml( $marcxml, "utf8", C4::Context->preference('marcflavour'))};
-        if ($@) {warn $@;}
+        if ($@) {warn " problem with :$biblionumber : $@ \n$marcxml";}
 #      $record = MARC::Record::new_from_usmarc( $marc) if $marc;
         return $record;
     } else {