Revision 44846
Added by Argiro Kokogiannaki over 7 years ago
searchDatasets.component.ts | ||
---|---|---|
33 | 33 |
private sub: any; |
34 | 34 |
private subResults: any; |
35 | 35 |
private searchFields:SearchFields = new SearchFields(); |
36 |
private refineFields: string[] = this.searchFields.DATASET_INDEX; |
|
37 |
private indexIdsMap: { [key:string]:string } = this.searchFields.DATASET_INDEX_PARAM_MAP; |
|
38 |
private fieldIdsMap: { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} = this.searchFields.DATASET_FIELDS_MAP; |
|
36 |
public refineFields: string[] = this.searchFields.RESULT_REFINE_FIELDS; |
|
37 |
public fieldIdsMap=this.searchFields.RESULT_FIELDS; |
|
39 | 38 |
private urlParams : Map<string, string>; |
40 | 39 |
private _location:Location; |
41 | 40 |
|
... | ... | |
51 | 50 |
|
52 | 51 |
public ngOnInit() { |
53 | 52 |
this.searchPage.refineFields = this.refineFields; |
54 |
this.searchPage.indexIdsMap = this.indexIdsMap; |
|
55 |
this.searchPage.fieldIdsMap = this.fieldIdsMap; |
|
53 |
this.searchPage.fieldIdsMap = this.fieldIdsMap; |
|
56 | 54 |
|
57 | 55 |
this.sub = this.route.queryParams.subscribe(params => { |
58 | 56 |
this.searchUtils.keyword = (params['keyword']?params['keyword']:''); |
Also available in: Unified diff
Change SearchFields class format- apply changes to all search pages