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];
|
||||
|
||||
// Single-field mode
|
||||
if (creator.fieldMode && creator.fieldMode == 1) {
|
||||
if (!creator.firstName || (creator.fieldMode && creator.fieldMode == 1)) {
|
||||
var newCreator = {
|
||||
lastName: creator.lastName,
|
||||
fieldMode: 1
|
||||
name: creator.lastName
|
||||
};
|
||||
}
|
||||
// Two-field mode
|
||||
|
|
Loading…
Reference in a new issue