Skip to content

Commit

Permalink
pkp/orcidProfile#322 Unable to submit review data with multilingual s…
Browse files Browse the repository at this point in the history
…ubmission
  • Loading branch information
ewhanson authored Dec 6, 2024
1 parent 1f1bb3f commit 6f2bd0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/orcid/OrcidReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ private function build(): array

$allTitles = $currentPublication->getData('title');
foreach ($allTitles as $locale => $title) {
if ($locale !== $submissionLocale) {
if ($locale === $submissionLocale) {
$orcidReview['subject-name']['title'] = ['value' => $title];
} else {
$orcidReview['subject-name']['translated-title'] = ['value' => $title, 'language-code' => LocaleConversion::getIso1FromLocale($locale)];
}
}
Expand Down

0 comments on commit 6f2bd0d

Please sign in to comment.