Skip to content

Commit

Permalink
Merge pull request #238 from defstat/i8598-file-merge
Browse files Browse the repository at this point in the history
[main] #8598 Locale Migration Changes
  • Loading branch information
withanage authored Feb 17, 2023
2 parents 62aed71 + eae505d commit fe663c9
Show file tree
Hide file tree
Showing 56 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OrcidProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function buildOrcidReview($submission, $review, $request, $issue = null)
{
$publicationUrl = $request->getDispatcher()->url($request, PKPApplication::ROUTE_PAGE, null, 'article', 'view', $submission->getId());
$context = $request->getContext();
$publicationLocale = ($submission->getData('locale')) ? $submission->getData('locale') : 'en_US';
$publicationLocale = ($submission->getData('locale')) ? $submission->getData('locale') : 'en';
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true, $context->getId()); // DO not remove
$supportedSubmissionLocales = $context->getSupportedSubmissionLocales();

Expand Down Expand Up @@ -1326,7 +1326,7 @@ public function buildOrcidWork($publication, $context, $authors, $request, $issu
$applicationName = Application::get()->getName();
$bibtexCitation = '';

$publicationLocale = ($publication->getData('locale')) ? $publication->getData('locale') : 'en_US';
$publicationLocale = ($publication->getData('locale')) ? $publication->getData('locale') : 'en';
$supportedSubmissionLocales = $context->getSupportedSubmissionLocales();

$publicationUrl = $request->getDispatcher()->url($request, Application::ROUTE_PAGE, null, 'article', 'view', $submission->getId());
Expand Down Expand Up @@ -1555,7 +1555,7 @@ private function buildOrcidContributors($authors, $context, $publication)
];

$userGroup = $author->getUserGroup();
$role = self::USER_GROUP_TO_ORCID_ROLE[$userGroup->getName('en_US')];
$role = self::USER_GROUP_TO_ORCID_ROLE[$userGroup->getName('en')];

if ($role) {
$contributor['contributor-attributes']['contributor-role'] = $role;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fe663c9

Please sign in to comment.