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:
parent
da7399e5cd
commit
c153b060eb
|
@ -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) {
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue