Export of item to CSL JSON of items with variables in "Extra" give issues

13 views
Skip to first unread message

Patrick O'Brien

unread,
Sep 16, 2025, 10:14:33 AM (2 days ago) Sep 16
to zotero-dev
Hi,

I'm working with a client who use citeproc-java to generate output from a .csl and .jsons I provide them with.
I noticed that Zotero exports variables in the extra field like so:
[
{
"id": "http://zotero.org/users/452233/items/GSJ3UMHI",
"type": "book",
"note": "original-date: 2012",
"publisher": "Reprint, Sphere",
"title": "A wicked deed",
"author": [
{
"family": "Gregory",
"given": "S."
}
],
"issued": {
"date-parts": [
[
"1999"
]
]
}
}
]

However, using citeproc-java the "original-date" in this case cannot be used.

Changing this to the following, the original-date then gets correctly output. 
[
{
"id": "http://zotero.org/users/452233/items/GSJ3UMHI",
"type": "book",
"note": "original-date: 2012",
"publisher": "Reprint, Sphere",
"title": "A wicked deed",
"author": [
{
"family": "Gregory",
"given": "S."
}
],
"issued": {
"date-parts": [
[
"1999"
]
]
},
"original-date": {
"date-parts": [
[
"1999"
]
]
}
}
]

I'm not sure if this is a bug in cp-java or not ideal the way Zotero exports these variables?

I'd be thankful for our input. :)

Emiliano Heyns

unread,
Sep 17, 2025, 3:18:26 AM (yesterday) Sep 17
to zotero-dev
FWIW the Better CSL JSON translator (part of the Better BibTeX plugin) does export this as original-date

Patrick O'Brien

unread,
Sep 17, 2025, 10:38:49 AM (yesterday) Sep 17
to zotero-dev
Excellent! Thank you for pointing that out. Works a charm!
Reply all
Reply to author
Forward
0 new messages