0.0.12 • Published 4 years ago

zotero2jurismcsl v0.0.12

Weekly downloads
11
License
CPAL-1.0 OR AGPL-...
Repository
github
Last release
4 years ago

zotero2jurismCSL

This is a simple package for use with the libzotero package or with raw returns from and the Zotero API. It provides a single method convert, which unpacks any extended data encoded in the Extra field of a Zotero item, returning a CSL object suitable for use with the citeproc-js citation processor provided by the citeproc package. Extended Juris-M data may include item type overrides, extended fields and creators, and multilingual variants.

Sample usage

Assuming a zoteroItem has been acquired, the method can be invoked on a libzotero item like so:

    const zoteroToCSLM = require('zotero2jurismcsl').convert;
    var cslItem = zoteroToCSLM(zoteroItem);

For raw Zotero API items, invoke the method like so:

    const zoteroToCSL = require('zotero-to-csl');
    const zoteroToCSLM = require('zotero2jurismcsl').convert;
    var cslData = zoteroToCSL(zoteroAPIitem.data);
    var cslItem = zoteroToCSLM(zoterAPIitem, cslData);

Frank Bennett 2019.04.24

0.0.12

4 years ago

0.0.11

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago