Skip to content

CFM-121_ORCID_Source_Plugin_review #318

Merged
merged 1 commit into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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