Catman...EPHSEQ(3pm)
π Catmandu::Exporter::MARC::ALEPHSEQ π
okay bestie so this is a page from the User Contributed Perl Documentation (perl v5.38.2, dated 2024-08-03, keep that in your notes π) and it's all about the Catmandu::Exporter::MARC::ALEPHSEQ module β an exporter that takes MARC records and spits them out in Ex Libris' Aleph sequential format. that's it. that's the whole vibe. π¦
β¨ NAME β¨
Catmandu::Exporter::MARC::ALEPHSEQ β Exporter for MARC records to Ex Libris' Aleph sequential. no cap, that's literally what it does π
πΈ SYNOPSIS πΈ
okay so first, from the command line, look how easy this is:
# From the command line
$ catmandu convert MARC to MARC --type ALEPHSEQ < /foo/data.mrc
and from Perl, if that's your thing (it is, we're built different π«Ά):
# From Perl
use Catmandu;
my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'ISO');
my $exporter = Catmandu->exporter('MARC', file => "marc.txt", type => 'ALEPHSEQ' );
$exporter->add($importer);
$exporter->commit;
see? importer in, exporter out, add, commit, done. the way that just works πβ¨
π CONFIGURATION π
these are the lil knobs you can turn, and every single one of them matters so pay attention bestie:
fileβ Write output to a local file given by its path or file handle. Alternatively a scalar reference can be passed to write to a string and a code reference can be used to write to a callback function. so like, path? handle? scalar ref for string life? coderef for callback era? your choice, queen πfhβ Write the output to anIO::Handle. If not specified,Catmandu::Util::iois used to create the output handle from thefileargument or by usingSTDOUT. so if you don't hand it a handle, it'll build one fromfile, and if there's nofile, it'sSTDOUTtime πfixβ AnARRAYof one or more fixes or file scripts to be applied to exported items. this is where you do your little transformations before things go out the door, slay πencodingβ Binmode of the output streamfh. Set to":utf8"by default. the default is literally":utf8", we love an encoding that's already handled π₯°default_fmtβ Set the value of the defaultFMTfield when none is given. Set to"BK"by default. so noFMT? it's"BK". iconic behaviour, honestly π
π METHODS π
See Catmandu::Exporter, Catmandu::Addable, Catmandu::Fixable, Catmandu::Counter, and Catmandu::Logger for a full list of methods. like, don't ask me for the whole menu, the menu is right there in those modules, go read them bestie πβ¨
π¦ SEE ALSO π¦
Catmandu::Exporter
and that's the whole page, fr fr π this was pulled from the perl v5.38.2 docs, page dated 2024-08-03, filed under User Contributed Perl Documentation β so if you ever need to cite it, that's your receipt π§Ύπ bye bestie, go export some ALEPHSEQ π
π¦ 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