From 48ad7c0ab7d958a39a529b000b424ff68001c6e0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 15 Dec 2022 03:32:22 -0700 Subject: [PATCH] Mendeley import prompt tweaks - Tweak message text - Add "More Information" button --- chrome/content/zotero/xpcom/integration.js | 6 +++++- chrome/locale/en-US/zotero/zotero.properties | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 006adf5733..a4364eb613 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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); } diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 3344d6a670..0cf7183d71 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -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 aren’t 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"