Match duplicates with same last name but different field modes

https://forums.zotero.org/discussion/103307/duplicates-not-being-recognised-as-duplicates
This commit is contained in:
Dan Stillman 2023-02-28 00:34:22 -05:00
parent adf6f9f2fb
commit 935c67bc01

View file

@ -384,12 +384,12 @@ Zotero.Duplicates.prototype._findDuplicates = Zotero.Promise.coroutine(function*
for (let i = 0; i < aCreatorRows.length; i++) {
let aCreatorRow = aCreatorRows[i];
let aLastName = aCreatorRow.lastName;
let aFirstInitial = aCreatorRow.firstInitial;
let aFirstInitial = aCreatorRow.firstInitial || "";
for (let j = 0; j < bCreatorRows.length; j++) {
let bCreatorRow = bCreatorRows[j];
let bLastName = bCreatorRow.lastName;
let bFirstInitial = bCreatorRow.firstInitial;
let bFirstInitial = bCreatorRow.firstInitial || "";
if (aLastName === bLastName && aFirstInitial === bFirstInitial) {
return 1;