From 1e272f51e110f6f7f39e6cece9fab75cbbdc39f0 Mon Sep 17 00:00:00 2001 From: Jhon Date: Thu, 10 Oct 2024 15:11:33 -0400 Subject: [PATCH 1/4] Fix interference with the user assignment form Issue: documentacao-e-tarefas/scielo#707 Signed-off-by: Jhon --- classes/dispatchers/DatasetTabDispatcher.inc.php | 1 + js/DataverseWorkflowPage.js | 2 +- locale/en_US/locale.po | 6 ++++++ locale/es_ES/locale.po | 6 ++++++ locale/pt_BR/locale.po | 6 ++++++ templates/datasetTab/datasetData.tpl | 8 ++++---- 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/classes/dispatchers/DatasetTabDispatcher.inc.php b/classes/dispatchers/DatasetTabDispatcher.inc.php index 67517daf..55434c27 100644 --- a/classes/dispatchers/DatasetTabDispatcher.inc.php +++ b/classes/dispatchers/DatasetTabDispatcher.inc.php @@ -211,6 +211,7 @@ private function setupResearchDataUpdate(Submission $submission, DataverseStudy 'confirmPublishDatasetMessage' => __('plugins.generic.dataverse.modal.confirmDatasetPublish', [ 'serverUrl' => $configuration->getDataverseServerUrl(), ]), + 'loadingCitationMsg' => __('plugins.generic.dataverse.metadataForm.loadingDatasetCitation'), 'datasetCitationUrl' => $dispatcher->url($request, ROUTE_API, $context->getPath(), 'datasets/' . $study->getId() . '/citation'), 'canSendEmail' => in_array(ROLE_ID_MANAGER, $userRoles), 'hasDepositedDataset' => true diff --git a/js/DataverseWorkflowPage.js b/js/DataverseWorkflowPage.js index ec04532b..0e0a5cc6 100644 --- a/js/DataverseWorkflowPage.js +++ b/js/DataverseWorkflowPage.js @@ -307,7 +307,7 @@ var DataverseWorkflowPage = $.extend(true, {}, pkp.controllers.WorkflowPage, { return; } var self = this; - this.datasetCitation = this.__('common.loading') + '...'; + this.datasetCitation = this.loadingCitationMsg; $.ajax({ url: self.datasetCitationUrl, type: 'GET', diff --git a/locale/en_US/locale.po b/locale/en_US/locale.po index 9fb5ddf3..ee3217b1 100644 --- a/locale/en_US/locale.po +++ b/locale/en_US/locale.po @@ -210,6 +210,12 @@ msgstr "Publish research data" msgid "plugins.generic.dataverse.dataset.titlePrefix" msgstr "Replication data for: " +msgid "plugins.generic.dataverse.metadataForm.loadingDataset" +msgstr "Loading research data information..." + +msgid "plugins.generic.dataverse.metadataForm.loadingDatasetCitation" +msgstr "Loading citation..." + msgid "plugins.generic.dataverse.metadataForm.title" msgstr "Title" diff --git a/locale/es_ES/locale.po b/locale/es_ES/locale.po index 922d2668..a798d8c2 100644 --- a/locale/es_ES/locale.po +++ b/locale/es_ES/locale.po @@ -213,6 +213,12 @@ msgstr "Publicar datos de investigación" msgid "plugins.generic.dataverse.dataset.titlePrefix" msgstr "Datos de réplica: " +msgid "plugins.generic.dataverse.metadataForm.loadingDataset" +msgstr "Cargando información de los datos de investigación..." + +msgid "plugins.generic.dataverse.metadataForm.loadingDatasetCitation" +msgstr "Cargando citación..." + msgid "plugins.generic.dataverse.metadataForm.title" msgstr "Título" diff --git a/locale/pt_BR/locale.po b/locale/pt_BR/locale.po index 59eecdcc..d9446383 100644 --- a/locale/pt_BR/locale.po +++ b/locale/pt_BR/locale.po @@ -213,6 +213,12 @@ msgstr "Publicar dados de pesquisa" msgid "plugins.generic.dataverse.dataset.titlePrefix" msgstr "Dados de replicação para: " +msgid "plugins.generic.dataverse.metadataForm.loadingDataset" +msgstr "Carregando informações dos dados de pesquisa..." + +msgid "plugins.generic.dataverse.metadataForm.loadingDatasetCitation" +msgstr "Carregando citação..." + msgid "plugins.generic.dataverse.metadataForm.title" msgstr "Título" diff --git a/templates/datasetTab/datasetData.tpl b/templates/datasetTab/datasetData.tpl index 22eaf610..f4b56489 100644 --- a/templates/datasetTab/datasetData.tpl +++ b/templates/datasetTab/datasetData.tpl @@ -1,13 +1,13 @@ - {{ __('common.loading')}} ... + {translate key="plugins.generic.dataverse.metadataForm.loadingDataset"} -
+

{translate key="plugins.generic.dataverse.researchData"}

-