Mendeley online import tweaks
- Add "(online import)" and "(local import)" next to "Mendeley Referance Manager" and "Mendeley Desktop", respectively - Adjust size of OAuth window - Use bound parameter instead of string literal for Fx78 compatibility
This commit is contained in:
parent
962222a5f5
commit
d35719d0e8
5 changed files with 12 additions and 6 deletions
|
@ -901,8 +901,8 @@ var Zotero_File_Interface = new function() {
|
||||||
};
|
};
|
||||||
let innerFunc = function () {
|
let innerFunc = function () {
|
||||||
browser.removeEventListener("pageshow", innerFunc);
|
browser.removeEventListener("pageshow", innerFunc);
|
||||||
win.outerWidth = Math.max(640, Math.min(1024, win.screen.availHeight));
|
win.outerWidth = Math.max(640, Math.min(1000, win.screen.availHeight));
|
||||||
win.outerHeight = Math.max(480, Math.min(768, win.screen.availWidth));
|
win.outerHeight = Math.max(480, Math.min(800, win.screen.availWidth));
|
||||||
};
|
};
|
||||||
|
|
||||||
win.addEventListener("load", func);
|
win.addEventListener("load", func);
|
||||||
|
|
|
@ -40,6 +40,10 @@ var Zotero_Import_Wizard = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update labels
|
// Update labels
|
||||||
|
document.getElementById('radio-import-source-mendeley-online').label
|
||||||
|
= `Mendeley Reference Manager (${Zotero.getString('import.onlineImport')})`;
|
||||||
|
document.getElementById('radio-import-source-mendeley').label
|
||||||
|
= `Mendeley Desktop (${Zotero.getString('import.localImport')})`;
|
||||||
document.getElementById('file-handling-store').label = Zotero.getString(
|
document.getElementById('file-handling-store').label = Zotero.getString(
|
||||||
'import.fileHandling.store',
|
'import.fileHandling.store',
|
||||||
Zotero.appName
|
Zotero.appName
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
onpageadvanced="Zotero_Import_Wizard.onModeChosen(); return false;">
|
onpageadvanced="Zotero_Import_Wizard.onModeChosen(); return false;">
|
||||||
<radiogroup id="import-source">
|
<radiogroup id="import-source">
|
||||||
<radio id="radio-import-source-file" label="&zotero.import.source.file;"/>
|
<radio id="radio-import-source-file" label="&zotero.import.source.file;"/>
|
||||||
<radio id="radio-import-source-mendeley-online" label="Mendeley Reference Manager" />
|
<radio id="radio-import-source-mendeley-online"/>
|
||||||
<radio id="radio-import-source-mendeley" label="Mendeley Desktop" hidden="true"/>
|
<radio id="radio-import-source-mendeley" hidden="true"/>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</wizardpage>
|
</wizardpage>
|
||||||
|
|
||||||
|
|
|
@ -877,7 +877,7 @@ Zotero_Import_Mendeley.prototype._getGroupsAPI = async function () {
|
||||||
|
|
||||||
Zotero_Import_Mendeley.prototype._getGroupsDB = async function () {
|
Zotero_Import_Mendeley.prototype._getGroupsDB = async function () {
|
||||||
const rows = await this._db.queryAsync(
|
const rows = await this._db.queryAsync(
|
||||||
'SELECT id, remoteUUid, name, isOwner FROM Groups WHERE remoteUuID != ""'
|
"SELECT id, remoteUUid, name, isOwner FROM Groups WHERE remoteUuID != ?", ['']
|
||||||
);
|
);
|
||||||
return rows;
|
return rows;
|
||||||
};
|
};
|
||||||
|
@ -892,7 +892,7 @@ Zotero_Import_Mendeley.prototype._getProfileAPI = async function () {
|
||||||
|
|
||||||
Zotero_Import_Mendeley.prototype._getProfileDB = async function () {
|
Zotero_Import_Mendeley.prototype._getProfileDB = async function () {
|
||||||
const rows = await this._db.queryAsync(
|
const rows = await this._db.queryAsync(
|
||||||
'SELECT uuid as id, firstName, lastName, displayName FROM Profiles ORDER BY ROWID LIMIT 1'
|
"SELECT uuid as id, firstName, lastName, displayName FROM Profiles ORDER BY ROWID LIMIT 1"
|
||||||
);
|
);
|
||||||
|
|
||||||
return rows[0];
|
return rows[0];
|
||||||
|
|
|
@ -749,6 +749,8 @@ fileInterface.exportError = An error occurred while trying to export the selecte
|
||||||
fileInterface.importOPML = Import Feeds from OPML
|
fileInterface.importOPML = Import Feeds from OPML
|
||||||
fileInterface.OPMLFeedFilter = OPML Feed List
|
fileInterface.OPMLFeedFilter = OPML Feed List
|
||||||
|
|
||||||
|
import.onlineImport = online import
|
||||||
|
import.localImport = local import
|
||||||
import.fileHandling.store = Copy files to the %S storage folder
|
import.fileHandling.store = Copy files to the %S storage folder
|
||||||
import.fileHandling.link = Link to files in original location
|
import.fileHandling.link = Link to files in original location
|
||||||
import.fileHandling.description = Linked files cannot be synced by %S.
|
import.fileHandling.description = Linked files cannot be synced by %S.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue