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

userID

User identifier (given at https://www.zotero.org/settings/keys). Required unless groupID is set.

groupID

Group identifier (numeric part of the RSS library feed of a group)

collectionID

Collection key (alphanumeric identifier)

apiKey

Zotero API key for authenticated access

sort

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

direction

asc or desc

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. See https://www.zotero.org/support/dev/web_api/v3/basics#search_syntax for boolean search syntax.

q

Quick search to search titles and individual creator fields, or all fields if qmode is set to everything.

qmode

titleCreatorYear (default) or everything

since

Return only objects modified after the specified library version.

tag

Tag search. Supports Boolean search like item type search.

DESCRIPTION

This Catmandu::Importer imports bibliographic data from Zotero reference management service.

SEE ALSO

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