-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache citation data in a file #164
Comments
Merging two parsed CSL-JSON files is fine (I'd propose using the original input, optionally saved in |
I'm only interested in CSL-JSON because that's all needed to create citations and bibliographies. If settings have changed and the original input is needed, one should better rebuild the full cache. Items should be identified by their citation key which is in the |
Agreed.
Thing is, not every item with the same id has to have the same origin, and not every item with the same origin has to have the same ID. Sure, the Wikidata ID is in the
But then the CLI magic would still be needed, because otherwise Citation.js would have to parse the entire |
I though about using citation-js and Wikidata for reference management from command line. Given a list of Wikidata ids citation-js can lookup and convert to CSL-JSON, e.g.:
When added another key I don't want citation-js to download known items again. This can be done with some command line magic:
A missing step is needed to combine the list of JSON array in references.json (or implement #163):
Would it make sense to include this functionality in citation-js?:
The text was updated successfully, but these errors were encountered: