Handle single field mode properly (should fix Sean's JSTOR issue)

This commit is contained in:
Simon Kornblith 2011-07-04 17:29:09 +00:00
parent 631dff69b7
commit 81693ca665

View file

@ -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