[master | DONE | CHANGED] Search researcher: Capitalize X if it makes ORCID a valid ID
This commit is contained in:
parent
7e9dae0e20
commit
ccb00a4760
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue