Add sessionID
option to translate() that gets passed to the ItemSaver
This will allow the connector to send a sessionID with a save request.
This commit is contained in:
parent
c8cf9b9e6f
commit
80cfd609ea
|
@ -1292,6 +1292,7 @@ Zotero.Translate.Base.prototype = {
|
||||||
|
|
||||||
this._currentState = "translate";
|
this._currentState = "translate";
|
||||||
|
|
||||||
|
this._sessionID = options.sessionID;
|
||||||
this._libraryID = options.libraryID;
|
this._libraryID = options.libraryID;
|
||||||
if (options.collections && !Array.isArray(options.collections)) {
|
if (options.collections && !Array.isArray(options.collections)) {
|
||||||
throw new Error("'collections' must be an array");
|
throw new Error("'collections' must be an array");
|
||||||
|
@ -2082,6 +2083,7 @@ Zotero.Translate.Web.prototype._prepareTranslation = Zotero.Promise.method(funct
|
||||||
collections: this._collections,
|
collections: this._collections,
|
||||||
attachmentMode: Zotero.Translate.ItemSaver[(this._saveAttachments ? "ATTACHMENT_MODE_DOWNLOAD" : "ATTACHMENT_MODE_IGNORE")],
|
attachmentMode: Zotero.Translate.ItemSaver[(this._saveAttachments ? "ATTACHMENT_MODE_DOWNLOAD" : "ATTACHMENT_MODE_IGNORE")],
|
||||||
forceTagType: 1,
|
forceTagType: 1,
|
||||||
|
sessionID: this._sessionID,
|
||||||
cookieSandbox: this._cookieSandbox,
|
cookieSandbox: this._cookieSandbox,
|
||||||
proxy: this._proxy,
|
proxy: this._proxy,
|
||||||
baseURI: this.location
|
baseURI: this.location
|
||||||
|
|
Loading…
Reference in New Issue
Block a user