From e7d0ef876f7403ddccf89f439eefeedad410f818 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Sun, 15 Sep 2019 18:11:00 +0000 Subject: [PATCH] [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 --- .../landing-utils/parsingFunctions.class.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/landingPages/landing-utils/parsingFunctions.class.ts b/landingPages/landing-utils/parsingFunctions.class.ts index 7cd66069..c08f37f7 100644 --- a/landingPages/landing-utils/parsingFunctions.class.ts +++ b/landingPages/landing-utils/parsingFunctions.class.ts @@ -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;