Catmandu::MARC(3pm)
π Catmandu::MARC β bestie edition π
okay so this is the manual page for Catmandu::MARC (that's the Perl module, 3pm, part of the User Contributed Perl Documentation). It's literally the Catmandu modules for working with MARC data, and honestly? iconic.
β¨ SYNOPSIS β¨
here's the whole vibe, both ways you can use it β command line girlies and perl girlies:
# On the command line
$ catmandu convert MARC to JSON < data.mrc
$ catmandu convert MARC --type MiJ to YAML < data.marc_in_json
$ catmandu convert MARC --fix "marc_map(245,title)" < data.mrc
$ catmandu convert MARC --fix myfixes.txt < data.mrc
myfixes:
marc_map("245a", title)
marc_map("5**", note.$append)
marc_map('710','my.authors.$append')
marc_map('008_/35-35','my.language')
remove_field(record)
add_field(my.funny.field,'test123')
$ catmandu import MARC --fix myfixes.txt to ElasticSearch --index_name 'catmandu' < data.marc
# In perl
use Catmandu;
my $importer = Catmandu->importer('MARC', file => 'data.mrc' );
my $fixer = Catmandu->fixer('myfixes.txt');
my $store = Catmandu->store('ElasticSearch', index_name => 'catmandu');
$store->add_many(
$fixer->fix($importer)
);
no cap, that's the whole workflow and it eats every time π
π MODULES π
the full roster, every single one, and yes we're listing all of them because they ALL deserve their moment:
Catmandu::MARC::TutorialCatmandu::Importer::MARCCatmandu::Importer::MARC::ALEPHSEQCatmandu::Importer::MARC::ISOCatmandu::Importer::MARC::LineCatmandu::Importer::MARC::LintCatmandu::Importer::MARC::MARCMakerCatmandu::Importer::MARC::MicroLIFCatmandu::Importer::MARC::MiJCatmandu::Importer::MARC::RAWCatmandu::Importer::MARC::RecordCatmandu::Importer::MARC::XMLCatmandu::Exporter::MARCCatmandu::Exporter::MARC::ALEPHSEQCatmandu::Exporter::MARC::ISOCatmandu::Exporter::MARC::LineCatmandu::Exporter::MARC::MARCMakerCatmandu::Exporter::MARC::MiJCatmandu::Exporter::MARC::XMLCatmandu::Fix::marc_addCatmandu::Fix::marc_appendCatmandu::Fix::marc_copyCatmandu::Fix::marc_cutCatmandu::Fix::marc_decode_dollar_subfieldsCatmandu::Fix::marc_in_jsonCatmandu::Fix::marc_mapCatmandu::Fix::marc_pasteCatmandu::Fix::marc_removeCatmandu::Fix::marc_replace_allCatmandu::Fix::marc_setCatmandu::Fix::marc_sortCatmandu::Fix::marc_specCatmandu::Fix::marc_xmlCatmandu::Fix::Bind::marc_eachCatmandu::Fix::Condition::marc_all_matchCatmandu::Fix::Condition::marc_any_matchCatmandu::Fix::Condition::marc_hasCatmandu::Fix::Condition::marc_has_manyCatmandu::Fix::Condition::marc_matchCatmandu::Fix::Condition::marc_spec_hasCatmandu::Fix::Inline::marc_mapCatmandu::Fix::Inline::marc_addCatmandu::Fix::Inline::marc_removeCatmandu::Fix::Inline::marc_set
πΈ DESCRIPTION πΈ
so with Catmandu, the LibreCat tools abstract digital library and research services as data warehouse processes. as stores we reuse MongoDB or ElasticSearch, which hands us developer friendly APIs β it's giving convenience π
Catmandu works with international library standards such as MARC, MODS and Dublin Core, protocols such as OAI-PMH, SRU and open repositories such as DSpace and Fedora. and, of course, we speak the evolving Semantic Web. periodt.
follow us on <http://librecat.org> and read an introduction into Catmandu data processing at <https://github.com/LibreCat/Catmandu/wiki> π¦
π SEE ALSO π
CatmanduCatmandu::ImporterCatmandu::FixCatmandu::StoreMARC::Spec
π AUTHOR π
Patrick Hochstenbach, "<patrick.hochstenbach at ugent.be>"
π«Ά CONTRIBUTORS π«Ά
the whole friend group, shoutout to every single one:
- Nicolas Steenlant,
"<nicolas.steenlant at ugent.be>" - Nicolas Franck,
"<nicolas.franck at ugent.be>" - Johann Rolschewski,
"jorol at cpan.org" - Chris Cormack
- Robin Sheat
- Carsten Klee,
"klee at cpan.org"
β COPYRIGHT β
Copyright 2012- Patrick Hochstenbach , Carsten Klee, Johann Rolschewski
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See <http://dev.perl.org/licenses/> for more information.
and that's the tea bestie β this page came fromperl v5.38.2, dated2024-08-03, and yeah β it's literallyCatmandu::MARC(3pm). mwah π go map some 245s. π
π¦ 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