When showing researchers retrieved by ORCID source show also and their ORCID in parenthesis

This commit is contained in:
George Kalampokis 2020-09-09 17:42:55 +03:00
parent 7300e2fe85
commit 2a53a0aa7d
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,13 @@ public class ResearchersExternalSourcesModel extends ExternalListingItem<Researc
ExternalSourcesItemModel model = new ExternalSourcesItemModel();
model.setRemoteId(item.get("pid"));
model.setUri(item.get("uri"));
model.setName(item.get("name"));
switch (item.get("tag")) {
case "ORCID":
model.setName(item.get("name") + " (orcid:" + item.get("pid") + ")");
break;
default:
model.setName(item.get("name"));
}
model.setTag(item.get("tag"));
model.setKey(item.get("key"));
this.add(model);