From 7a18b65b40c151cabbee93998f8ced4683ed0a90 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 11 Jul 2024 16:35:19 +0300 Subject: [PATCH] [develop | DONE | CHANGED]: parsingFunctions.class.ts & showSubjects.component.ts: Removed checks for production environment - now show everything under keywords. --- .../landing-utils/parsingFunctions.class.ts | 10 ++-- .../landing-utils/showSubjects.component.ts | 53 +++++++++---------- 2 files changed, 31 insertions(+), 32 deletions(-) diff --git a/landingPages/landing-utils/parsingFunctions.class.ts b/landingPages/landing-utils/parsingFunctions.class.ts index 8e631278..240c7093 100644 --- a/landingPages/landing-utils/parsingFunctions.class.ts +++ b/landingPages/landing-utils/parsingFunctions.class.ts @@ -698,11 +698,11 @@ export class ParsingFunctions { if (!classifiedSubjects.has(subject.classname)) { classifiedSubjects.set(subject.classname, new Array()); } - if(properties.environment == "production") { - classifiedSubjects.get(subject.classname).push(content); - } else { + // if(properties.environment == "production") { + // classifiedSubjects.get(subject.classname).push(content); + // } else { classifiedSubjects.get(subject.classname).push(subject.classid + ": " + content); - } + // } // } } } else { @@ -723,7 +723,7 @@ export class ParsingFunctions { } } - if(properties.environment != "production" && classifiedSubjects != null) { + if(classifiedSubjects != null) { if (subjects == undefined) { subjects = new Array(); } diff --git a/landingPages/landing-utils/showSubjects.component.ts b/landingPages/landing-utils/showSubjects.component.ts index df8255bd..1dfaa20d 100644 --- a/landingPages/landing-utils/showSubjects.component.ts +++ b/landingPages/landing-utils/showSubjects.component.ts @@ -13,20 +13,19 @@ import {properties} from "../../../../environments/environment"; @Component({ selector: 'showSubjects', template: ` - -
- Subjects by Vocabulary -
- - -
- View all -
-
+ + + + + + + + + + -
+
Keywords
@@ -35,7 +34,7 @@ import {properties} from "../../../../environments/environment";
- +
EOSC Subjects @@ -89,21 +88,21 @@ import {properties} from "../../../../environments/environment";
-

- - - - EOSC: - - - - {{subject.value}} - - - -

+ + + + + + + + + + + + + -

+

{{getValue(eoscSubjects).join(', ')}}