[Library|Trunk]
Project Service: fixed issue in parsing #5682 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58959 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
ddcfab668e
commit
dae898b5ac
|
@ -174,13 +174,11 @@ export class ProjectService {
|
|||
if(data[2] != null) {
|
||||
this.projectInfo.organizations = [];//new Map<string, string>();
|
||||
|
||||
let acronym: string = "";
|
||||
let name: string = "";
|
||||
let id: string = "";
|
||||
|
||||
if(!Array.isArray(data[2])) {
|
||||
if(data[2].hasOwnProperty("to") && data[2]['to'].class == "hasParticipant") {
|
||||
|
||||
let acronym: string = "";
|
||||
let name: string = "";
|
||||
let id: string = "";
|
||||
if (data[2].hasOwnProperty("legalshortname")) {
|
||||
acronym = data[2].legalshortname;
|
||||
}
|
||||
|
@ -200,6 +198,9 @@ export class ProjectService {
|
|||
}
|
||||
} else {
|
||||
for(let i=0; i<data[2].length; i++) {
|
||||
let acronym: string = "";
|
||||
let name: string = "";
|
||||
let id: string = "";
|
||||
if(data[2][i].hasOwnProperty("to") && data[2][i]['to'].class == "hasParticipant") {
|
||||
if(data[2][i].hasOwnProperty("legalshortname")) {
|
||||
acronym = data[2][i].legalshortname;
|
||||
|
|
Loading…
Reference in New Issue