update show subjects component with route links to advanced search - for 2 special subjetcs
This commit is contained in:
parent
de6c91cbab
commit
fc78ac5777
|
@ -16,7 +16,11 @@ import {properties} from "../../../../environments/environment";
|
||||||
<ng-container *ngFor="let subject of classifiedSubjects.get(key)">
|
<ng-container *ngFor="let subject of classifiedSubjects.get(key)">
|
||||||
<span class="uk-display-inline-block label-classified">
|
<span class="uk-display-inline-block label-classified">
|
||||||
<span *ngIf="specialSubjects.indexOf(subject) == -1 ">{{subject}}</span>
|
<span *ngIf="specialSubjects.indexOf(subject) == -1 ">{{subject}}</span>
|
||||||
<a class="uk-link-reset" *ngIf="specialSubjects.indexOf(subject) != -1" [href]="properties.domain + properties.searchLinkToAdvancedResults +'?f0=resultsubject&fv0='+getSubjectParameter(subject) ">{{subject}}</a>
|
<a class="uk-link-reset" *ngIf="specialSubjects.indexOf(subject) != -1"
|
||||||
|
[routerLink]=" properties.searchLinkToAdvancedResults"
|
||||||
|
[queryParams]="getSubjectParameter(subject)" >
|
||||||
|
{{subject}}
|
||||||
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,29 +50,28 @@ export class ShowSubjectsComponent {
|
||||||
@Input() classifiedSubjects: Map<string, string[]>;
|
@Input() classifiedSubjects: Map<string, string[]>;
|
||||||
properties = properties;
|
properties = properties;
|
||||||
specialSubjects = [];
|
specialSubjects = [];
|
||||||
// private showClassifiedSbj: boolean = false;
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
if(properties.environment == 'development'){
|
if(properties.dashboard == "explore") {
|
||||||
this.specialSubjects = [
|
this.specialSubjects = [
|
||||||
"Physics::Optics",
|
// "Physics::Optics",
|
||||||
"Astrophysics::Cosmology and Extragalactic Astrophysics",
|
// "Astrophysics::Cosmology and Extragalactic Astrophysics",
|
||||||
"Computer Science::Information Theory",
|
// "Computer Science::Information Theory",
|
||||||
"Physics::Accelerator Physics",
|
// "Physics::Accelerator Physics",
|
||||||
"Condensed Matter::Superconductivity",
|
// "Condensed Matter::Superconductivity",
|
||||||
"Physics::Atomic Physics",
|
"Physics::Atomic Physics",
|
||||||
"Computer Science::Robotics",
|
// "Computer Science::Robotics",
|
||||||
"Computer Science::Computer Science and Game Theory",
|
// "Computer Science::Computer Science and Game Theory",
|
||||||
"Computer Science::Neural and Evolutionary Computation",
|
// "Computer Science::Neural and Evolutionary Computation",
|
||||||
"Mathematics::Combinatorics",
|
"Mathematics::Combinatorics",
|
||||||
"Mathematics::Probability",
|
// "Mathematics::Probability",
|
||||||
"Computer Science::Operating Systems",
|
// "Computer Science::Operating Systems",
|
||||||
"lcsh:Medicine",
|
// "lcsh:Medicine",
|
||||||
"lcsh:Science",
|
// "lcsh:Science",
|
||||||
"lcsh:Biology (General)",
|
// "lcsh:Biology (General)",
|
||||||
"lcsh:Chemistry",
|
// "lcsh:Chemistry",
|
||||||
"lcsh:Engineering (General). Civil engineering (General)",
|
// "lcsh:Engineering (General). Civil engineering (General)",
|
||||||
"lcsh:Technology"
|
// "lcsh:Technology"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,6 +83,6 @@ export class ShowSubjectsComponent {
|
||||||
return Array.from(map.keys());
|
return Array.from(map.keys());
|
||||||
}
|
}
|
||||||
getSubjectParameter(param){
|
getSubjectParameter(param){
|
||||||
return '"' +encodeURIComponent(param)+'"';
|
return {'f0':'resultsubject','fv0':'"' +(param)+'"'};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue