Skip to content

Commit

Permalink
Change user search input text placeholder (#773)
Browse files Browse the repository at this point in the history
Rename ORCiD to ORCID

Co-authored-by: Sven F. <[email protected]>
---------
Co-authored-by: Tobias Koch <[email protected]>
  • Loading branch information
3 people authored Aug 13, 2024
1 parent 827478b commit 26742f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private Div initRegistrationSection(String contextPath) {
Span spacer = new Span("OR");
spacer.addClassName("spacer");
OidcLogo oidcLogo = new OidcLogo(OidcType.ORCID);
LoginCard orcidCard = new LoginCard(oidcLogo, "Login with ORCiD",
LoginCard orcidCard = new LoginCard(oidcLogo, "Login with ORCID",
contextPath + "/oauth2/authorization/orcid");
return new Div(registrationLink, spacer, orcidCard);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private void initPersonSelection(UserInformationService userInformationService,
Span title = new Span("Select the person");
title.addClassNames("section-title");
Span description = new Span(
"Please select the username of the person you want to grant access to");
"Please select the person you want to grant access to");
description.addClassName("secondary");
personSelection.setItems(query -> {
List<SortOrder> sortOrders = query.getSortOrders().stream().map(
Expand All @@ -104,7 +104,7 @@ private void initPersonSelection(UserInformationService userInformationService,
new ComponentRenderer<>(AddCollaboratorToProjectDialog::renderUserInfo));
personSelection.setRequired(true);
personSelection.setErrorMessage("Please specify the collaborator to be added to the project");
personSelection.setPlaceholder("Please select a username");
personSelection.setPlaceholder("Please search for username or full name or ORCID identifier");
personSelection.setRenderer(new ComponentRenderer<>(
AddCollaboratorToProjectDialog::renderUserInfo
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void beforeEnter(BeforeEnterEvent event) {
return;
}
if (authentication.getPrincipal() instanceof OidcUser oidcUser) {
//note: for ORCiD, only given name and family name are supported https://orcid.org/.well-known/openid-configuration.
//note: for ORCID, only given name and family name are supported https://orcid.org/.well-known/openid-configuration.
userRegistrationOrcIdComponent.setFullName(
buildFullName(oidcUser.getGivenName(), oidcUser.getMiddleName(),
oidcUser.getFamilyName()));
Expand Down

0 comments on commit 26742f5

Please sign in to comment.