Changes to json output in CSL JSON translator
Hi guys,
I'm working with a datatable (see datatables.net) that uses Zotero's json export. I've really only changed it once, when I asked this forum for help with adding keywords to the final file.
I'd like to go a bit farther this time. I noticed that including arrays within the final array contributes to serious file size increases, namely the fields for author, editor, reviewed author, and the date.
Typical structure is for authors/editors/reviewed authors:
"author": [{ "family": "LASTNAME", "given": "FIRSTNAME"}, {..}, ..] — I'd prefer it to be
"author": [{"NAME"}, ...]
And for dates:
"issued": {"date-parts": [["2000"]] — i'd prefer this to be
"year": "YEAR"
Is this doable? Can anyone help in changing the translator for this use case?
Thank you for reading.
I'm working with a datatable (see datatables.net) that uses Zotero's json export. I've really only changed it once, when I asked this forum for help with adding keywords to the final file.
I'd like to go a bit farther this time. I noticed that including arrays within the final array contributes to serious file size increases, namely the fields for author, editor, reviewed author, and the date.
Typical structure is for authors/editors/reviewed authors:
"author": [{ "family": "LASTNAME", "given": "FIRSTNAME"}, {..}, ..] — I'd prefer it to be
"author": [{"NAME"}, ...]
And for dates:
"issued": {"date-parts": [["2000"]] — i'd prefer this to be
"year": "YEAR"
Is this doable? Can anyone help in changing the translator for this use case?
Thank you for reading.
-
adamsmithIt's doable, but it's a good bit more involved than your last request -- idea is basically the same, though: pull the data from the item, reformat into the new data structure, remove the old format & add the new one.