Skip to content

Commit

Permalink
Miscellaneous fixes to ORCID plugin schema and Match Server Attribute…
Browse files Browse the repository at this point in the history
…s UX (NOJIRA
  • Loading branch information
Benn Oshrin committed Aug 16, 2025
1 parent 881980e commit dccf488
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
30 changes: 18 additions & 12 deletions app/plugins/CoreServer/templates/MatchServers/fields-nav.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

$topLinks[] = [
'icon' => 'list',
'order' => 'Default',
'label' => __d('core_server', 'controller.MatchServerAttributes', [99]),
'link' => [
'plugin' => 'CoreServer',
'controller' => 'match_server_attributes',
'action' => 'index',
'match_server_id' => $vv_obj->id
],
'class' => ''
];
// If the Match Server URL is empty, then we're in the initial configuration, so we hide the
// Match Server Attributes link so the admin doesn't try to visit that link without finishing
// the main configuration

if(!empty($vv_obj->url)) {
$topLinks[] = [
'icon' => 'list',
'order' => 'Default',
'label' => __d('core_server', 'controller.MatchServerAttributes', [99]),
'link' => [
'plugin' => 'CoreServer',
'controller' => 'match_server_attributes',
'action' => 'index',
'match_server_id' => $vv_obj->id
],
'class' => ''
];
}
5 changes: 3 additions & 2 deletions app/plugins/OrcidSource/config/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@
"refresh_token": { "type": "text" }
},
"indexes": {
"orcid_source_collectors_i1": {
"orcid_source_tokens_i1": {
"columns": [ "orcid_source_id", "orcid_identifier"],
"unique": true
},
"orcid_source_collectors_i2": { "columns": [ "orcid_identifier" ] }
"orcid_source_tokens_i2": { "columns": [ "orcid_identifier" ] },
"orcid_source_tokens_i3": { "needed": false, "columns": [ "orcid_source_id" ] }
}
},
"petition_orcids": {
Expand Down

0 comments on commit dccf488

Please sign in to comment.