0.0.12 • Published 3 years ago

zotero2jurismcsl v0.0.12

Weekly downloads
11
License
CPAL-1.0 OR AGPL-...
Repository
github
Last release
3 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

3 years ago

0.0.11

4 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago