[Library|Trunk]

Author Orcid: rename the field from "ORCID" to "orcid"



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59344 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-09-08 12:51:43 +00:00
parent 4189a8f114
commit 0f47fe966f
3 changed files with 5 additions and 5 deletions

View File

@ -130,10 +130,10 @@ export class DeletedByInferenceService {
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
if(author) { 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); author.orcid = author.orcid.substr(properties.orcidURL.length);
}*/ }*/
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID}; result['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid};
} }
} }
result.authors = result.authors.filter(function (item) { result.authors = result.authors.filter(function (item) {

View File

@ -291,7 +291,7 @@ export class ResultLandingService {
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
if(author) { if(author) {
this.resultLandingInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID}; this.resultLandingInfo['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid};
} }
} }
this.resultLandingInfo.authors = this.resultLandingInfo.authors.filter(function (item) { this.resultLandingInfo.authors = this.resultLandingInfo.authors.filter(function (item) {

View File

@ -275,7 +275,7 @@ export class SearchResearchResultsService {
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
if(author) { if(author) {
result['authors'][author.rank] = {"fullName": author.content, "orcid": author.ORCID}; result['authors'][author.rank] = {"fullName": author.content, "orcid": author.orcid};
} }
} }
result.authors = result.authors.filter(function (item) { result.authors = result.authors.filter(function (item) {