GitXplorerGitXplorer
f

zotero2jurismCSL

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
f7b49fbde189fae86a374717345c1bf7f7ad1c78

Bump version, add division variable to legal_case

ffbennett committed 4 years ago
Unverified
4ec32b2bf42ed7cbd286d477001d742893a7a6f3

Bump version

ffbennett committed 4 years ago
Unverified
ef18cc04f76902fa4fca7330af7fe56c0fc5fa5e

Clean up and correct date variables

ffbennett committed 4 years ago
Unverified
33d86faf003e2ce101a6e45c2756e7acde730204

Bump npm version

ffbennett committed 6 years ago
Unverified
370471552d3554d0c6fc05b362bc5f372062b928

Targeting data variables was necessary

ffbennett committed 6 years ago
Unverified
6dd38651a09963afb4329076dac0c3062796a647

Bump npm version

ffbennett committed 6 years ago

README

The README file for this repository.

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