Properly include creators of last item when looking for duplicates

This commit is contained in:
Dan Stillman 2016-03-11 03:08:40 -05:00
parent 208d470531
commit ffb3823b4c

View file

@ -303,14 +303,14 @@ Zotero.Duplicates.prototype._findDuplicates = Zotero.Promise.coroutine(function*
itemCreators = [];
}
}
else {
lastItemID = row.itemID;
itemCreators.push({
lastName: normalizeString(row.lastName),
firstInitial: row.fieldMode == 0 ? normalizeString(row.firstName).charAt(0) : false
});
}
lastItemID = row.itemID;
}
// Add final item creators
if (itemCreators.length) {
creatorRowsCache[lastItemID] = itemCreators;