improve marc_parses() test
authorGalen Charlton <gmc@esilibrary.com>
Fri, 19 Oct 2012 14:10:29 +0000 (10:10 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 19 Oct 2012 14:10:29 +0000 (10:10 -0400)
If the Leader/09 is not 'a' and the record has diacritics,
MARC::Record and friends don't complain until you try to
emit a MARCXML record.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

sql/base/base.sql

index b033fe1..f0b5654 100644 (file)
@@ -1636,7 +1636,10 @@ MARC::Charset->assume_unicode(1);
 
 my $xml = shift;
 
-eval { my $r = MARC::Record->new_from_xml( $xml ); };
+eval {
+    my $r = MARC::Record->new_from_xml( $xml );
+    my $output_xml = $r->as_xml_record();
+};
 if ($@) {
     return 0;
 } else {