[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:
parent
adfd6b568d
commit
54bc77b446
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue