[Trunk | Library]: Landing and Search pages (services): Do not check and cut prefix of ORCID if included.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55900 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-05-29 13:25:51 +00:00
parent adfd6b568d
commit 54bc77b446
9 changed files with 18 additions and 18 deletions

View File

@ -208,9 +208,9 @@ export class DatasetService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
this.datasetInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -149,9 +149,9 @@ export class DeletedByInferenceService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
publication['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -178,9 +178,9 @@ export class OrpService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
this.orpInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -252,9 +252,9 @@ export class PublicationService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
this.publicationInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -199,9 +199,9 @@ export class SoftwareService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
this.softwareInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -229,9 +229,9 @@ export class SearchDatasetsService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -234,9 +234,9 @@ export class SearchOrpsService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
} }
result.authors = result.authors.filter(function (item) {

View File

@ -265,9 +265,9 @@ export class SearchPublicationsService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}

View File

@ -246,9 +246,9 @@ export class SearchSoftwareService {
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
if(author) {
if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
/*if (author.ORCID && author.ORCID.indexOf(properties.orcidURL) != -1) {
author.ORCID = author.ORCID.substr(properties.orcidURL.length);
}
}*/
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID};
}
}