From f624e70015f4fccfdac3a5a55b3209e912f36fe1 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Tue, 16 Jul 2024 11:32:26 -0700 Subject: [PATCH] pkp/jatsTemplate#44 Display of multilingual keywords dependent on UI language --- classes/ArticleFront.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/ArticleFront.php b/classes/ArticleFront.php index 822bfa3..1e2ed67 100644 --- a/classes/ArticleFront.php +++ b/classes/ArticleFront.php @@ -285,7 +285,7 @@ function createArticleMeta(Submission $submission, Journal $journal, Section $se ->setAttribute('xlink:href', $url); $submissionKeywordDao = DAORegistry::getDAO('SubmissionKeywordDAO'); - foreach ($submissionKeywordDao->getKeywords($publication->getId(), $journal->getSupportedLocales()) as $locale => $keywords) { + foreach ($submissionKeywordDao->getKeywords($publication->getId(), $journal->getSupportedSubmissionLocales()) as $locale => $keywords) { if (empty($keywords)) continue; $kwdGroupElement = $articleMetaElement @@ -413,7 +413,7 @@ public function createArticleContribGroup(Submission $submission, Publication $p if (empty($bio)) { continue; } - + $bioElement = $this->createElement('bio'); $bioElement->setAttribute('xml:lang', substr($locale, 0, 2));