From 771028f7e6203a7d373211db1533f65879f28731 Mon Sep 17 00:00:00 2001 From: Jhon Date: Tue, 17 Dec 2024 14:57:51 -0400 Subject: [PATCH] Fixes citation writing in title page Issue: documentacao-e-tarefas/scielo#729 Signed-off-by: Jhon --- classes/SubmissionPressFactory.php | 4 ++-- locale/en/locale.po | 2 +- locale/es/locale.po | 2 +- locale/pt_BR/locale.po | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/classes/SubmissionPressFactory.php b/classes/SubmissionPressFactory.php index 22e0df8..7e0f9a2 100644 --- a/classes/SubmissionPressFactory.php +++ b/classes/SubmissionPressFactory.php @@ -6,7 +6,7 @@ use APP\file\PublicFileManager; use APP\publication\Publication; use APP\core\Application; -use APP\plugins\generic\citationStyleLanguage\CitationStyleLanguagePlugin; +use PKP\plugins\PluginRegistry; use APP\plugins\generic\titlePageForPreprint\classes\SubmissionPress; use APP\plugins\generic\titlePageForPreprint\classes\SubmissionModel; use APP\plugins\generic\titlePageForPreprint\classes\GalleyAdapterFactory; @@ -118,7 +118,7 @@ private function getDataForPress($submission, $publication) private function getSubmissionCitation($submission) { $request = Application::get()->getRequest(); - $cslPlugin = new CitationStyleLanguagePlugin(); + $cslPlugin = PluginRegistry::getPlugin('generic', 'citationstylelanguageplugin'); $citation = $cslPlugin->getCitation($request, $submission, 'apa'); diff --git a/locale/en/locale.po b/locale/en/locale.po index f0dae9e..5c2c849 100644 --- a/locale/en/locale.po +++ b/locale/en/locale.po @@ -39,7 +39,7 @@ msgstr "" msgid "plugins.generic.titlePageForPreprint.citation" msgstr "" -"How to cite this translation:
" +"How to cite this translation:" "{$citation}" msgid "plugins.generic.titlePageForPreprint.versionJustification" diff --git a/locale/es/locale.po b/locale/es/locale.po index d5e05fc..144afb9 100644 --- a/locale/es/locale.po +++ b/locale/es/locale.po @@ -39,7 +39,7 @@ msgstr "" msgid "plugins.generic.titlePageForPreprint.citation" msgstr "" -"Cómo citar esta traducción:
" +"Cómo citar esta traducción:" "{$citation}" msgid "plugins.generic.titlePageForPreprint.versionJustification" diff --git a/locale/pt_BR/locale.po b/locale/pt_BR/locale.po index 23a630d..dde968c 100644 --- a/locale/pt_BR/locale.po +++ b/locale/pt_BR/locale.po @@ -39,7 +39,7 @@ msgstr "" msgid "plugins.generic.titlePageForPreprint.citation" msgstr "" -"Como citar esta tradução:
" +"Como citar esta tradução:" "{$citation}" msgid "plugins.generic.titlePageForPreprint.versionJustification"