[Trunk | Library]: deletedByInference.service.ts & resultLanding.service.ts & searchResearchResults.service.ts: [Bug fix] In parsing <creator> before setting orcid and orcid_pending fields call .toUpperCase().

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60623 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2021-03-11 12:16:13 +00:00
parent 127c489da4
commit 07b659525e
3 changed files with 18 additions and 0 deletions

View File

@ -146,6 +146,12 @@ export class DeletedByInferenceService {
/*if (author.orcid && author.orcid.indexOf(properties.orcidURL) != -1) {
author.orcid = author.orcid.substr(properties.orcidURL.length);
}*/
if(author.orcid) {
author.orcid = author.orcid.toUpperCase();
}
if(author.orcid_pending) {
author.orcid_pending = author.orcid_pending.toUpperCase();
}
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid, "orcid_pending": author.orcid_pending};
}
}

View File

@ -349,6 +349,12 @@ export class ResultLandingService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if(author.orcid) {
author.orcid = author.orcid.toUpperCase();
}
if(author.orcid_pending) {
author.orcid_pending = author.orcid_pending.toUpperCase();
}
this.resultLandingInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid, "orcid_pending": author.orcid_pending};
}
}

View File

@ -320,6 +320,12 @@ export class SearchResearchResultsService {
for (let i = 0; i < length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if (author) {
if(author.orcid) {
author.orcid = author.orcid.toUpperCase();
}
if(author.orcid_pending) {
author.orcid_pending = author.orcid_pending.toUpperCase();
}
result['authors'][author.rank] = {
"fullName": author.content,
"orcid": author.orcid,