[librecat-dev] From Catmandu::Importer::SRU to MARC::Record

Johann Rolschewski rolschewski at gmail.com
Wed Oct 26 11:29:50 CEST 2016


Hi Magnus,

>     my $record;
>     my $exporter = Catmandu->exporter('MARC', file => \$record, type => "XML" );
>     $exporter->add_many($importer);


add_many() expects an array, so you should the to_array() method of the
importer object:

	$exporter->add_many($importer->to_array);

Best regards,

Johann


More information about the librecat-dev mailing list