Skip to content

Commit

Permalink
Fixes citation writing in title page
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#729

Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Dec 17, 2024
1 parent eeb20d5 commit 771028f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions classes/SubmissionPressFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion locale/en/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ msgstr ""

msgid "plugins.generic.titlePageForPreprint.citation"
msgstr ""
"How to cite this translation:<br>"
"How to cite this translation:"
"{$citation}"

msgid "plugins.generic.titlePageForPreprint.versionJustification"
Expand Down
2 changes: 1 addition & 1 deletion locale/es/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ msgstr ""

msgid "plugins.generic.titlePageForPreprint.citation"
msgstr ""
"Cómo citar esta traducción:<br>"
"Cómo citar esta traducción:"
"{$citation}"

msgid "plugins.generic.titlePageForPreprint.versionJustification"
Expand Down
2 changes: 1 addition & 1 deletion locale/pt_BR/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ msgstr ""

msgid "plugins.generic.titlePageForPreprint.citation"
msgstr ""
"Como citar esta tradução:<br>"
"Como citar esta tradução:"
"{$citation}"

msgid "plugins.generic.titlePageForPreprint.versionJustification"
Expand Down

0 comments on commit 771028f

Please sign in to comment.