Select created items when importing RIS/BibTeX from connector
This commit is contained in:
parent
137a0ebbfd
commit
877ff972a9
2 changed files with 12 additions and 4 deletions
|
@ -854,7 +854,11 @@ Zotero.Server.Connector.Import.prototype = {
|
|||
}
|
||||
let items = yield translate.translate({
|
||||
libraryID: library.libraryID,
|
||||
collections: collection ? [collection.id] : null
|
||||
collections: collection ? [collection.id] : null,
|
||||
// Import translation skips selection by default, so force it to occur
|
||||
saveOptions: {
|
||||
skipSelect: false
|
||||
}
|
||||
});
|
||||
return [201, "application/json", JSON.stringify(items)];
|
||||
})
|
||||
|
|
|
@ -1299,6 +1299,7 @@ Zotero.Translate.Base.prototype = {
|
|||
}
|
||||
this._collections = options.collections;
|
||||
this._saveAttachments = options.saveAttachments === undefined || options.saveAttachments;
|
||||
this._saveOptions = options.saveOptions;
|
||||
|
||||
this._savingAttachments = [];
|
||||
this._savingItems = 0;
|
||||
|
@ -2369,9 +2370,12 @@ Zotero.Translate.Import.prototype._prepareTranslation = Zotero.Promise.method(fu
|
|||
collections: this._collections,
|
||||
attachmentMode: Zotero.Translate.ItemSaver[(this._saveAttachments ? "ATTACHMENT_MODE_FILE" : "ATTACHMENT_MODE_IGNORE")],
|
||||
baseURI,
|
||||
saveOptions: {
|
||||
skipSelect: true
|
||||
}
|
||||
saveOptions: Object.assign(
|
||||
{
|
||||
skipSelect: true
|
||||
},
|
||||
this._saveOptions || {}
|
||||
)
|
||||
});
|
||||
this.newItems = [];
|
||||
this.newCollections = [];
|
||||
|
|
Loading…
Reference in a new issue