commit bd5f2525dc9af537444935df99886e467ddcd4f2 parent da5db4cb3842c531a0df9c4ca0e76fe02cf18b4f Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 11 Jun 2018 09:44:01 -0400 Add star tag for favorite items Diffstat:
| M | chrome/content/zotero/import/mendeley/mendeleyImport.js | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js @@ -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; // Copy date added/modified to child item