Catman...RC::ISO(3pm)

πŸ“¦
version 1.320 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 an IO::Handle. if you don't give it one, Catmandu::Util::io steps in and makes the output handle for you, either from the file argument or by just using STDOUT. main character energy, honestly. ⭐
  • fix β€” an ARRAY of 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 stream fh. 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 the Catmandu::Exporter::MARC::ISO name and it's part of the 3pm section 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