Fix error refreshing missing citation without name part
https://forums.zotero.org/discussion/66789/
This commit is contained in:
parent
a24f16eb85
commit
8797c7f680
1 changed files with 2 additions and 2 deletions
|
@ -1777,8 +1777,8 @@ Zotero.Utilities = {
|
||||||
var cslAuthor = nameMappings[i];
|
var cslAuthor = nameMappings[i];
|
||||||
let creator = {};
|
let creator = {};
|
||||||
if(cslAuthor.family || cslAuthor.given) {
|
if(cslAuthor.family || cslAuthor.given) {
|
||||||
if(cslAuthor.family) creator.lastName = cslAuthor.family;
|
creator.lastName = cslAuthor.family || '';
|
||||||
if(cslAuthor.given) creator.firstName = cslAuthor.given;
|
creator.firstName = cslAuthor.given || '';
|
||||||
} else if(cslAuthor.literal) {
|
} else if(cslAuthor.literal) {
|
||||||
creator.lastName = cslAuthor.literal;
|
creator.lastName = cslAuthor.literal;
|
||||||
creator.fieldMode = 1;
|
creator.fieldMode = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue