Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diasf committed Apr 18, 2024
1 parent b00bc1e commit 81c1836
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public ExternalIdpUserRecord getUserRecord(String code, String state, String red
AuthenticatedUserDisplayInfo orgData = getOrganizationalData(userEndpoint, accessToken.getAccessToken(), service);
parsed.displayInfo.setAffiliation(orgData.getAffiliation());
parsed.displayInfo.setPosition(orgData.getPosition());
parsed.displayInfo.setOrcId(orcidNumber);
parsed.displayInfo.setOrcid(orcidNumber);

return new ExternalIdpUserRecord(getId(), orcidNumber,
parsed.username,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void fillUserDataInDatasetFields(List<DatasetField> datasetFields, Authen
String userAffiliation = user.getAffiliation();
String userAffiliationROR = user.getAffiliationROR();
String userEmail = user.getEmail();
String userOrcidId = user.getOrcId();
String userOrcidId = user.getOrcid();
String todayDate = LocalDate.now(clock).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));

for (DatasetField dsf : datasetFields) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void fillUserDataInDatasetFields__FILL_AUTHOR() {
@Test
public void fillUserDataInDatasetFields__FILL_AUTHOR_WITH_ORCID_AND_ROR() {
// given
user.setOrcId("0000-0001-2345-6789");
user.setOrcid("0000-0001-2345-6789");
user.setAffiliationROR("https://ror.org/04k0tth05");

DatasetFieldType authorIdTypeDatasetFieldType = new DatasetFieldType(DatasetFieldConstant.authorIdType, FieldType.TEXT, false);
Expand Down

0 comments on commit 81c1836

Please sign in to comment.