API - retrieve short ref
We use Zotero and the Zotero API to generate bibliographic references for a large web-based corpus project. For the entries in our corpus, we store a bibliographic ID which (for historical reasons) corresponds to a Zotero tag. Using the ID, we insert a full bibliographic citation on the web page for each corpus item on display. Full citations use APA style.
Now, we would like a way to also display short forms of citations, for ex. Author date. - this is because on each page, we show sources for different types of information - "transcription" "illustrations" "translation" - so would like to display each of these as a short form. This is followed by a full bibliography.
How can we retrieve something like 'Author, date" - the equivalent of what one might show in a footnote?
many thanks.
Now, we would like a way to also display short forms of citations, for ex. Author date. - this is because on each page, we show sources for different types of information - "transcription" "illustrations" "translation" - so would like to display each of these as a short form. This is followed by a full bibliography.
How can we retrieve something like 'Author, date" - the equivalent of what one might show in a footnote?
many thanks.
include=citation
instead ofinclude=bib
/format=bib
.https://www.zotero.org/support/dev/web_api/v3/basics#parameters_for_format_json
(For further API questions, it's best to post to the zotero-dev. We try to keep technical discussions there.)
include=citation
(content instead of include for atom).You can then specify a style like international organization which prints author date without parentheses. The citation will be returned as part of the JSON wrapped in a span html tag as
citation
E.g. https://api.zotero.org/users/475425/collections/9KH9TNSJ/items?format=json&include=citation&style=international-organization
See https://www.zotero.org/support/dev/web_api/v3/basics#read_requests for the relevant documentation.