Catman...RC::ISO(3pm)
π Catmandu::Exporter::MARC::ISO (3pm) π
okay bestie, so this is a Perl module from the User Contributed Perl Documentation crowd, and it's literally just what it says on the tin: an exporter that takes MARC records and writes them out as ISO. β¨
No cap, it's the glow-up machine. MARC in, ISO out, slay. π¦
β¨ NAME β¨
Catmandu::Exporter::MARC::ISO β the exporter that sends your MARC records out into the world in ISO format. π
πΈ SYNOPSIS πΈ
from the command line, bestie π
$ catmandu convert MARC --type ISO to MARC --type XML < /foo/bar.mrc
and from Perl, because we contain multitudes π
use Catmandu;
my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'ISO');
my $exporter = Catmandu->exporter('MARC', file => "/foo/bar.xml", type => 'XML' );
$exporter->add($importer);
$exporter->commit;
look at her go. importer in, exporter out, add then commit, and the whole thing just works. π
π§ CONFIGURATION π§
These are the knobs you can turn when you build your exporter. Pick your fighter:
fileβ write the output to a local file, and you tell it where by passing a path or a file handle. but wait, there's more: you can also hand it a scalar reference and it'll write into a string instead, or a code reference and it'll write into a callback function. versatile queen. πfhβ write the output to anIO::Handle. if you don't give it one,Catmandu::Util::iosteps in and makes the output handle for you, either from thefileargument or by just usingSTDOUT. main character energy, honestly. βfixβ anARRAYof one or more fixes or file scripts that get applied to the items on their way out the door. tiny little makeovers on the way to the party. πencodingβ the binmode of the output streamfh. default is":utf8"and honestly she ate with that choice. π₯
π METHODS π
ngl, this page isn't gonna list every single method, because they're all living over in their own docs. go peek at Catmandu::Exporter, Catmandu::Addable, Catmandu::Fixable, Catmandu::Counter, and Catmandu::Logger for the full rundown. iykyk. π«Ά
π SEE ALSO π
Catmandu::Exporterβ the parent vibe, go read it fr fr
ok one lil note from me to you: this module is filed under theCatmandu::Exporter::MARC::ISOname and it's part of the3pmsection of the manual, so if you're out here grepping for it, that's where she lives. π
and that's the whole page, bestie!! this beauty ships with perl v5.38.2 and was dated 2024-08-03. go forth and export your MARC records, you absolute icon. πβ¨π¦πΈπ
π¦ where this page comes from
- debian trixie: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms