NAME

Catmandu::Importer::Zotero - Import records from Zotero web

SYNOPSIS

  # From the command line
  # 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];
 });

CONFIGURATION

See https://www.zotero.org/support/dev/web_api/v3/basics for the search syntax.

userID | groupID

Set the user or group identifier for which you want to export records

apiKey

Zotero API key for authenticated access.

sort

dateAdded, dateModified, title, creator, type, date, publisher, publicationTitle, journalAbbreviation, language, accessDate, libraryCatalog, callNumber, rights, addedBy, numItems (default dateModified)

direction

asc, desc

include

bib, data

itemKey

A comma-separated list of item keys. Valid only for item requests. Up to 50 items can be specified in a single request.

itemType

Item type search

q

Quick search

qmode

titleCreatorYear, everything

since

integer

tag

Tag search

DESCRIPTION

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::Zotero methods are not idempotent: Zotero feeds can only be read once.

SEE ALSO

WWW::Zotero , Catmandu::Importer , Catmandu::Iterable