[Beta] Single-field authors not citing properly

Items that have single-field authors are not citing properly. In APA style, the citation is only showing the year, not the author, and the bibliography is omitting the author. If an item includes both single-field authors and two-field authors, only the two-field authors are included. If I switch the author to a two-field author and leave the "first name" field blank, the item is cited properly.

Switching to Chicago style shows the same results. Switching to MLA changes the year-only citation to "[CSL STYLE ERROR: reference with no printed form.]". Switching to Nature style still omits the author from the bibliography entry.


Here is CSL JSON exported for one malfunctioning item.
[
{
"id": "http://zotero.org/users/1386342/items/MWUKNHJZ",
"type": "book",
"title": "R: a language and environment for statistical computing",
"publisher": "R Foundation for Statistical Computing",
"publisher-place": "Vienna, Austria",
"event-place": "Vienna, Austria",
"URL": "http://www.R-project.org/",
"shortTitle": "R",
"author": [
{
"family": "R Core Team"
}
],
"issued": {
"date-parts": [
[
"2014"
]
]
}
}
]
  • Thanks for the heads-up, I'll take a look.
  • edited June 5, 2015
    This is on the Zotero side. See https://github.com/zotero/zotero/pull/757

    Note that CSL JSON export from translators is still not 100% reflective of what's actually being sent to citeproc. We need to bump the minVersion for the translator to 4.0.27 in order to get correct output. I didn't want to bump it until Zotero was released, but since we don't currently enforce minVersion anyway, might as well do it now. (Even after the bump there will be one slight difference in the way 'id' is exported. It will be URI in translator export, but citeproc will be receiving a numeric DB ID)

    Edit: minVersion bumped

    Edit2: Here's the output from the updated translator (and what citeproc sees)
    [
    {
    "id": "http://zotero.org/users/1274729/items/RBHHG2QH",
    "type": "book",
    "title": "R: a language and environment for statistical computing",
    "publisher": "R Foundation for Statistical Computing",
    "publisher-place": "Vienna, Austria",
    "event-place": "Vienna, Austria",
    "URL": "http://www.R-project.org/",
    "shortTitle": "R",
    "author": [
    {}
    ],
    "issued": {
    "date-parts": [
    [
    "2014"
    ]
    ]
    }
    }
    ]
  • @aurimas: Got it, thanks.
Sign In or Register to comment.