[master | DONE | CHANGED] Search researcher: Capitalize X if it makes ORCID a valid ID

This commit is contained in:
argirok 2024-01-29 18:07:05 +02:00
parent 7e9dae0e20
commit ccb00a4760
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ export class SearchResearcherComponent extends BaseComponent implements OnInit
return; return;
} }
this.orcidStatus = this.errorCodes.LOADING; this.orcidStatus = this.errorCodes.LOADING;
if(!Identifier.isValidORCID(this.keyword) && Identifier.isValidORCID(this.keyword.replace("x","X"))){
this.keyword = this.keyword.replace("x","X")
}
if(Identifier.isValidORCID(this.keyword)){ if(Identifier.isValidORCID(this.keyword)){
this.getOrcidAuthor(this.keyword.indexOf(properties.orcidURL)!=-1?this.keyword.split(properties.orcidURL)[1]:this.keyword, true, -1); this.getOrcidAuthor(this.keyword.indexOf(properties.orcidURL)!=-1?this.keyword.split(properties.orcidURL)[1]:this.keyword, true, -1);
}else{ }else{