[Trunk | Library]: (Bug Fix) parsingFunctions.class.ts: In 'parseContexts()' method: if there is no category, show only label (bug caused in r56937 when else section was moved after type check by accident).

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57082 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-09-15 18:11:00 +00:00
parent 4b8a9627b3
commit e7d0ef876f
1 changed files with 8 additions and 7 deletions

View File

@ -535,16 +535,17 @@ export class ParsingFunctions {
contexts[position]['labelCategory'] = category.label;
contexts[position]['labelConcept'] = null;
position++;
console.info(contexts);
}
}
} else {
contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": "", inline: false};
contexts[position]['labelContext'] = context.label;
contexts[position]['labelCategory'] = null;
contexts[position]['labelConcept'] = null;
contexts[position]['new'] = false;
position++;
}
} else {
contexts[position] = {"labelContext": "", "labelCategory": "", "labelConcept": "", inline: false};
contexts[position]['labelContext'] = context.label;
contexts[position]['labelCategory'] = null;
contexts[position]['labelConcept'] = null;
contexts[position]['new'] = false;
position++;
}
}
return contexts;