Catmandu::Zotero(3pm)
β¨ Catmandu::Zotero β¨
okay bestie, gather round π this is Catmandu::Zotero β the little family of Catmandu modules that lets you hang out with Zotero web. yes, THE Zotero. the citation-manager one. we're pulling your whole library into Catmandu and doing cute things with it π¦
πΈ SYNOPSIS πΈ
no cap, here's how you slide in:
# From the command line
$ catmandu convert Zotero --userID <userID> to JSON
$ catmandu convert Zotero --groupID <groupID> to JSON
# From Perl
use Catmandu;
my $importer = Catmandu->importer('Zotero', userID => '...');
$importer->each(sub {
my $item = shift;
print "%s %s\n", $item->{_id} , $item->{title}->[0];
});
so from the command line you literally just say catmandu convert Zotero and hand it a --userID <userID> or a --groupID <groupID>, and boom, JSON. and from Perl you spin up an importer with Catmandu->importer('Zotero', userID => '...') and then $importer->each(sub { ... }) your way through every item, grabbing stuff like $item->{_id} and $item->{title}->[0]. iconic behavior honestly π
π MODULES π
the squad, aka what's actually in here:
Catmandu::Importer::Zotero
that's the whole roster. one module, doing its little thing π
π EXAMPLES π
want the full glow-up? go peek at
<https://github.com/LibreCat/Catmandu-Zotero/tree/master/example/zotero_marc.fix>
it's a real use case showing how to transform a whole Zotero library into a MARCXML dump. the way that works?? chef's kiss π
$ catmandu convert Zotero --groupID <key> to MARC --type XML --fix zotero.fix
so you convert Zotero with a --groupID <key>, target MARC, set --type XML, and pass --fix zotero.fix. periodt.
π AUTHOR π
Patrick Hochstenbach, "patrick.hochstenbach at ugent.be" β the main character who made all this happen π«Ά
β¨ CONTRIBUTORS β¨
Jakob Voss, "voss at gbv.de" β showing up and helping out, we love to see it π
π LICENSE AND COPYRIGHT π
Copyright 2015 Patrick Hochstenbach
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.
fr fr, it's free software β GPL or Artistic License, your pick, both are valid, just read the actual license text before you do anything wild π§
okay that's the whole page bestie, you're fully caught up π this was Catmandu::Zotero(3pm), from perl v5.36.0, dated 2023-02-05, and it lives in the User Contributed Perl Documentation corner of the internet. go convert something pretty π
πβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-zotero-perl 0.07-2 Β· 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