Mendeley import prompt tweaks

- Tweak message text
- Add "More Information" button
This commit is contained in:
Dan Stillman 2022-12-15 03:32:22 -07:00 committed by Dan Stillman
parent 2082b68dd3
commit 48ad7c0ab7
2 changed files with 8 additions and 4 deletions

View file

@ -2653,6 +2653,7 @@ Zotero.Integration.URIMap.prototype.getZoteroItemForURIs = async function (uris)
text: Zotero.getString('integration.mendeleyImport.description', [Zotero.appName]),
button0: Zotero.getString('integration.mendeleyImport.openImporter'),
button1: Zotero.getString('general.skip'),
button2: Zotero.getString('general.moreInformation'),
checkLabel: Zotero.getString('general.dontAskAgain'),
checkbox
});
@ -2660,9 +2661,12 @@ Zotero.Integration.URIMap.prototype.getZoteroItemForURIs = async function (uris)
setTimeout(() => Zotero.getMainWindow().Zotero_File_Interface.showImportWizard({ pageID: 'mendeley-online-explanation' }));
throw new Zotero.Exception.UserCancelled("Importing mendeley citations");
}
else {
else if (result == 1) {
this.session.dontPromptForMendeley = true;
}
else {
Zotero.launchURL("https://www.zotero.org/support/kb/mendeley_import#using_mendeley_citations");
}
if (checkbox.value) {
Zotero.Prefs.set('integration.dontPromptMendeleyImport', true);
}

View file

@ -991,9 +991,9 @@ integration.exportDocument.description1 = Zotero will convert citations in the d
integration.exportDocument.description2 = You should make a backup of the document before proceeding.
integration.importInstructions = The Zotero citations in this document have been converted to a format that can be safely transferred between word processors. Open this document in a supported word processor and press Refresh in the Zotero plugin to continue working with the citations.
integration.upgradeTemplate = The %S plugin for %S is outdated. Reinstall the plugin from Preferences → Cite → Word Processors.
integration.mendeleyImport.title = Missing Mendeley Data
integration.mendeleyImport.description = %1$S detected that the document you are citing with contains Mendeley citations. %1$S will be able to manage these citations if you import your Mendeley database.
integration.mendeleyImport.openImporter = Open Mendeley Importer...
integration.mendeleyImport.title = Unlinked Mendeley Citations
integration.mendeleyImport.description = This document contains Mendeley citations that arent linked to items in your %1$S library. If you import your Mendeley library, %1$S can automatically relink citations you created with Mendeley.
integration.mendeleyImport.openImporter = Open Mendeley Importer
styles.install.title = Install Style
styles.install.unexpectedError = An unexpected error occurred while installing "%1$S"