Mendeley import: Fill in Publication field on existing items if empty
It was skipped in online imports before eef0fc6fa8
.
This commit is contained in:
parent
eef0fc6fa8
commit
d27b622f9f
1 changed files with 6 additions and 0 deletions
|
@ -1225,6 +1225,12 @@ Zotero_Import_Mendeley.prototype._saveItems = async function (libraryID, json) {
|
|||
if (item.isRegularItem()) {
|
||||
lastExistingParentItem = item;
|
||||
|
||||
// Fill in Publication if empty, since it was missed in an early version of the
|
||||
// online importer
|
||||
if (itemJSON.publicationTitle && !item.getField('publicationTitle')) {
|
||||
item.setField('publicationTitle', itemJSON.publicationTitle);
|
||||
}
|
||||
|
||||
// Update any child items to point to the existing item's key instead of the
|
||||
// new generated one
|
||||
this._updateParentKeys('item', json, i + 1, itemJSON.key, item.key);
|
||||
|
|
Loading…
Reference in a new issue