From ccb00a47604b99927f679225d1808f80c405d7d7 Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 29 Jan 2024 18:07:05 +0200 Subject: [PATCH] [master | DONE | CHANGED] Search researcher: Capitalize X if it makes ORCID a valid ID --- .../search-researcher/search-researcher.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/researcher/search-researcher/search-researcher.component.ts b/src/app/researcher/search-researcher/search-researcher.component.ts index 18d1093..68c9241 100644 --- a/src/app/researcher/search-researcher/search-researcher.component.ts +++ b/src/app/researcher/search-researcher/search-researcher.component.ts @@ -80,6 +80,9 @@ export class SearchResearcherComponent extends BaseComponent implements OnInit return; } 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)){ this.getOrcidAuthor(this.keyword.indexOf(properties.orcidURL)!=-1?this.keyword.split(properties.orcidURL)[1]:this.keyword, true, -1); }else{