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)">
|
||||
<span class="uk-display-inline-block label-classified">
|
||||
<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>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
@ -46,29 +50,28 @@ export class ShowSubjectsComponent {
|
|||
@Input() classifiedSubjects: Map<string, string[]>;
|
||||
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)+'"'};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue