Catman...RC::ISO(3pm)
π¦ Catman...RC::ISO(3pm) π
okay bestie, welcome to the manual page for Catman...RC::ISO(3pm) β the user contributed perl documentation for this little icon. grab a strawberry π and let's get into it.
β¨ NAME β¨
Catmandu::Importer::MARC::ISO β the package that imports ISO MARC records. it's giving the importer, no cap. π
πΈ SYNOPSIS πΈ
so here's the vibe. first up, from the command line β and lowkey iconic detail: ISO is the default importer for MARC:
# From the command line (ISO is the default importer for MARC)
$ catmandu convert MARC --fix "marc_map('245a','title')" < /foo/bar.mrc
and from perl, the main character way:
# From perl
use Catmandu;
# import records from file
my $importer = Catmandu->importer('MARC',file => '/foo/bar.mrc');
my $fixer = Catmandu->fixer("marc_map('245a','title')");
$importer->each(sub {
my $item = shift;
...
});
# or using the fixer
$fixer->fix($importer)->each(sub {
my $item = shift;
printf "title: %s\n" , $item->{title};
});
not me writing fixes like it's nothing π it just works.
π CONFIGURATION π
these are the settings you can hand over. each one is a whole personality, fr fr.
idβ the MARC field that holds the system id. default?001. periodt. πfileβ read your input from a local file, given by its path. alternatively, you can pass a scalar reference to read from a string instead. versatile queen. πfhβ read input from anIO::Handle. if you don't specify it,Catmandu::Util::iois used to build the input stream from thefileargument, or by usingSTDIN. π«Άencodingβ the binmode of the input streamfh. set to:utf8by default. bestie stays utf8. β¨fixβ anARRAYof one or more fixes, or file scripts, to be applied to imported items. go off, glow up those records. π
π₯ METHODS π₯
every Catmandu::Importer is a Catmandu::Iterable, so all its methods are inherited. meaning you get the whole family tree of methods for free. iconic behavior, honestly. π
π SEE ALSO π
go read these next, iykyk:
Catmandu::ImporterCatmandu::Iterable
reminder: this is perl v5.38.2 documentation, dated 2024-08-03. treat it with the respect it deserves. π
and that's the page bestie β perl v5.38.2, 2024-08-03, Catman...RC::ISO(3pm), that's the whole footer, and we ate. π ππ¦
π¦ 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