From fc78ac577709c955d3e2b6971abf9ec7b1edd785 Mon Sep 17 00:00:00 2001 From: argirok Date: Wed, 24 Nov 2021 15:55:54 +0200 Subject: [PATCH] update show subjects component with route links to advanced search - for 2 special subjetcs --- .../landing-utils/showSubjects.component.ts | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/landingPages/landing-utils/showSubjects.component.ts b/landingPages/landing-utils/showSubjects.component.ts index 590f6180..890b7628 100644 --- a/landingPages/landing-utils/showSubjects.component.ts +++ b/landingPages/landing-utils/showSubjects.component.ts @@ -16,7 +16,11 @@ import {properties} from "../../../../environments/environment"; {{subject}} - {{subject}} + + {{subject}} + @@ -46,29 +50,28 @@ export class ShowSubjectsComponent { @Input() classifiedSubjects: Map; properties = properties; specialSubjects = []; - // private showClassifiedSbj: boolean = false; constructor() { - if(properties.environment == 'development'){ + if(properties.dashboard == "explore") { this.specialSubjects = [ - "Physics::Optics", - "Astrophysics::Cosmology and Extragalactic Astrophysics", - "Computer Science::Information Theory", - "Physics::Accelerator Physics", - "Condensed Matter::Superconductivity", + // "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", + // "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" + // "Mathematics::Probability", + // "Computer Science::Operating Systems", + // "lcsh:Medicine", + // "lcsh:Science", + // "lcsh:Biology (General)", + // "lcsh:Chemistry", + // "lcsh:Engineering (General). Civil engineering (General)", + // "lcsh:Technology" ]; } } @@ -80,6 +83,6 @@ export class ShowSubjectsComponent { return Array.from(map.keys()); } getSubjectParameter(param){ - return '"' +encodeURIComponent(param)+'"'; + return {'f0':'resultsubject','fv0':'"' +(param)+'"'}; } }