Skip to content

Commit

Permalink
Review changes (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis authored Jun 25, 2025
1 parent d1fe460 commit bf485b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ msgstr "Access token not configured (try resaving configuration)"
msgid "error.param.notfound"
msgstr "{0} was not found"

msgid "error.orcid_source.no_orcid"
msgid "error.response.no_orcid"
msgstr "ORCID identifier missing from response."

msgid "field.OrcidSources.api_type"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function dispatch(string $id) {

// Use the response and save the data to petitions table
if(empty($response->orcid)) {
throw new \RuntimeException(__d('orcid_source', 'error.orcid_source.no_orcid'));
throw new \RuntimeException(__d('orcid_source', 'error.response.no_orcid'));
}
$this->set('vv_orcid', $response->orcid);
$this->set('vv_token', $response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ public function initialize(array $config): void {

$this->setAutoViewVars([
'externalIdentitySources' => [
'type' => 'select',
'model' => 'ExternalIdentitySources',
'where' => ['plugin' => 'OrcidSource.OrcidSources']
'type' => 'plugin',
'model' => 'OrcidSource.OrcidSources',
]
]);

Expand Down
3 changes: 0 additions & 3 deletions app/resources/locales/en_US/field.po
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ msgstr "Order"
msgid "organization"
msgstr "Organization"

msgid "other.value"
msgstr "Other Value"

msgid "parameters"
msgstr "Parameters"

Expand Down

0 comments on commit bf485b4

Please sign in to comment.