From 3d6b358c9a833b0b8683e4a9e9d6557bf40d3b5f Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 9 Nov 2021 16:02:32 +0200 Subject: [PATCH] add links to special subjects in the landing page --- .../landing-utils/showSubjects.component.ts | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/landingPages/landing-utils/showSubjects.component.ts b/landingPages/landing-utils/showSubjects.component.ts index 30c55821..48c276e6 100644 --- a/landingPages/landing-utils/showSubjects.component.ts +++ b/landingPages/landing-utils/showSubjects.component.ts @@ -1,4 +1,5 @@ import {Component, Input} from '@angular/core'; +import {properties} from "../../../../environments/environment"; @Component({ selector: 'showSubjects', @@ -11,15 +12,18 @@ import {Component, Input} from '@angular/core';
- {{key}}: + {{key}}: - {{subject}} + + {{subject}} + {{subject}} +
- free text keywords: + free text keywords: {{subjects.join(', ')}} , @@ -40,16 +44,39 @@ export class ShowSubjectsComponent { @Input() subjects: string[]; @Input() otherSubjects: Map; @Input() classifiedSubjects: Map; - + properties = properties; + specialSubjects = [ + "Physics::Optics", + "Astrophysics::Cosmology and Extragalactic Astrophysics", + "Computer Science::Information Theory", + "Physics::Accelerator Physics", + "Condensed Matter::Superconductivity", + "Physics::Atomic Physics", + "Computer Science::Robotics", + "Computer Science::Computer Science and Game Theory", + "Computer Science::Neural and Evolutionary Computation", + "Mathematics::Combinatorics", + "Mathematics::Probability", + "Computer Science::Operating Systems", + "lcsh:Medicine", + "lcsh:Science", + "lcsh:Biology (General)", + "lcsh:Chemistry", + "lcsh:Engineering (General). Civil engineering (General)", + "lcsh:Technology" + ]; // private showClassifiedSbj: boolean = false; - + constructor() { } - + ngOnInit() { } - + public getKeys(map) { return Array.from(map.keys()); } + getSubjectParameter(param){ + return '"' +encodeURIComponent(param)+'"'; + } }