NAME
MARC::Moose::Formater::AuthorityUnimarcToMarc21 - Convert authority record from UNIMARC to MARC21
VERSION
version 1.0.48
SYNOPSYS
Read a authorities UNIMARC ISO2709 file and dump it to STDOUT in text transformed into MARC21:
my $reader = MARC::Moose::Reader::File::Iso2709->new(
file => 'authority-unimarc.iso' );
my $formater = MARC::Moose::Formater::AuthorityUnimarcToMarc21->new();
while ( my $unimarc = $reader->read() ) {
my $marc21 = $formater->format($unimarc);
print $marc21->as('Text');
}
Same with shortcut:
my $reader = MARC::Moose::Reader::File::Iso2709->new(
file => 'authority-unimarc.iso' );
while ( my $unimarc = $reader->read() ) {
print $unimarc->as('AuthorityUnimarcToMarc21')->as('Text');
}
COMMAND LINE
If you don't want to write a Perl script, you can use the marcmoose command. This way, you can for example convert a ISO 2709 authorities UNIMARC file named unimarc.iso
into a ISO 2709 MARC21 file named marc.iso
:
marcmoose --parser iso2709 --formater iso2709 --converter authorityunimarctomarc21
--output marc.iso unimarc.iso
AUTHOR
Frédéric Demians <f.demians@tamil.fr>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.