Skip to content

Commit

Permalink
#44 Display of multilingual keywords dependent on UI language
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Jul 16, 2024
1 parent c7099bc commit f624e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/ArticleFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit f624e70

Please sign in to comment.