Handle single field mode properly (should fix Sean's JSTOR issue)
This commit is contained in:
parent
631dff69b7
commit
81693ca665
1 changed files with 2 additions and 3 deletions
|
@ -100,10 +100,9 @@ Zotero.Translate.ItemSaver.prototype = {
|
||||||
var creator = val[j];
|
var creator = val[j];
|
||||||
|
|
||||||
// Single-field mode
|
// Single-field mode
|
||||||
if (creator.fieldMode && creator.fieldMode == 1) {
|
if (!creator.firstName || (creator.fieldMode && creator.fieldMode == 1)) {
|
||||||
var newCreator = {
|
var newCreator = {
|
||||||
lastName: creator.lastName,
|
name: creator.lastName
|
||||||
fieldMode: 1
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// Two-field mode
|
// Two-field mode
|
||||||
|
|
Loading…
Reference in a new issue