When showing researchers retrieved by ORCID source show also and their ORCID in parenthesis
This commit is contained in:
parent
7300e2fe85
commit
2a53a0aa7d
|
@ -11,7 +11,13 @@ public class ResearchersExternalSourcesModel extends ExternalListingItem<Researc
|
||||||
ExternalSourcesItemModel model = new ExternalSourcesItemModel();
|
ExternalSourcesItemModel model = new ExternalSourcesItemModel();
|
||||||
model.setRemoteId(item.get("pid"));
|
model.setRemoteId(item.get("pid"));
|
||||||
model.setUri(item.get("uri"));
|
model.setUri(item.get("uri"));
|
||||||
|
switch (item.get("tag")) {
|
||||||
|
case "ORCID":
|
||||||
|
model.setName(item.get("name") + " (orcid:" + item.get("pid") + ")");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
model.setName(item.get("name"));
|
model.setName(item.get("name"));
|
||||||
|
}
|
||||||
model.setTag(item.get("tag"));
|
model.setTag(item.get("tag"));
|
||||||
model.setKey(item.get("key"));
|
model.setKey(item.get("key"));
|
||||||
this.add(model);
|
this.add(model);
|
||||||
|
|
Loading…
Reference in New Issue