Add star tag for favorite items

This commit is contained in:
Dan Stillman 2018-06-11 09:44:01 -04:00
parent da5db4cb38
commit bd5f2525dc

View file

@ -617,7 +617,14 @@ Zotero_Import_Mendeley.prototype._documentToAPIJSON = async function (map, docum
} }
} }
} }
if (tags) parent.tags = tags; parent.tags = [];
// Add star tag for favorites
if (documentRow.favourite == 'true') {
parent.tags.push('\u2605');
}
if (tags) {
parent.tags.push(...tags);
}
if (collections) parent.collections = collections; if (collections) parent.collections = collections;
// Copy date added/modified to child item // Copy date added/modified to child item