Minor fix in parsing for authors in dataset & software service

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@49617 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2017-10-23 08:36:04 +00:00
parent da7399e5cd
commit c153b060eb
2 changed files with 3 additions and 3 deletions

View File

@ -207,12 +207,12 @@ export class DatasetService {
this.datasetInfo.authors = new Array<string>();
}
let authors = data[13];
let authors = data[10];
let length = Array.isArray(authors) ? authors.length : 1;
for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors;
this.datasetInfo.authors[author.rank-1] = author.content;
}
this.datasetInfo.authors = this.datasetInfo.authors.filter(function (item) {

View File

@ -207,7 +207,7 @@ export class SoftwareService {
this.softwareInfo.authors = new Array<string>();
}
let authors = data[13];
let authors = data[10];
let length = Array.isArray(authors) ? authors.length : 1;
for(let i=0; i<length; i++) {