Export a Reference locally (without interacting with Zotero manually)?
I'm working on an Alfred workflow that integrates with the user's Zotero data. One of the functions I want to include is formatted export of data. My plan was to bundle the citeproc-py module with the workflow and use it to format the data. My issue is, I have no way to automatically generate CSL-JSON for a specific item, which citeproc-py can then format. I've explored the Documentation, and found a section on web translators calling other translators via their UUID. Since the CSL-JSON translator comes bundled in the Translators directory, and its UUID is stable, I ought to be able to call it and have it export locally, right?
I don't really know Javascript, which I'm sure is a large part of my ignorance here. And I'm writing the workflow in Python. But for aid, I'll quickly describe the workflow I'm imagining (and all these first parts I already have up and running):
The user opens Alfred, enters the keyword ('zot') and begins a query. Alfred presents the Zotero items that contain that query. The user selects a particular item and Alfred outputs that items key (8PARXA4J, for example). This part I have running. What I want to do next is pass that key to a script that autoformats that item's data in a pre-selected CSL style. My thought was to use citeproc-py (since I quasi-understand that one, as opposed to citeproc-js), but I'm open to anything.
Is there any way, locally without interacting with the Zotero GUI, to input an item key and output a formatted reference??
I don't really know Javascript, which I'm sure is a large part of my ignorance here. And I'm writing the workflow in Python. But for aid, I'll quickly describe the workflow I'm imagining (and all these first parts I already have up and running):
The user opens Alfred, enters the keyword ('zot') and begins a query. Alfred presents the Zotero items that contain that query. The user selects a particular item and Alfred outputs that items key (8PARXA4J, for example). This part I have running. What I want to do next is pass that key to a script that autoformats that item's data in a pre-selected CSL style. My thought was to use citeproc-py (since I quasi-understand that one, as opposed to citeproc-js), but I'm open to anything.
Is there any way, locally without interacting with the Zotero GUI, to input an item key and output a formatted reference??
-
adamsmiththis seems like a question for zotero-dev: https://groups.google.com/forum/?fromgroups=#!forum/zotero-dev
-
smargheimOk. I've cross-posted there as well. Thanks for the re-direct.