Revision 44826
Added by Argiro Kokogiannaki over 7 years ago
advancedSearchPeople.component.ts | ||
---|---|---|
24 | 24 |
}) |
25 | 25 |
|
26 | 26 |
export class AdvancedSearchPeopleComponent { |
27 |
private results =[]; |
|
28 |
private filters =[]; |
|
29 |
// private totalResults:number = 0 ; |
|
30 |
// private page :number = 1; |
|
31 |
// private size :number = 10; |
|
32 |
// public status:number; |
|
33 |
private searchUtils:SearchUtilsClass = new SearchUtilsClass(); |
|
27 |
public results =[]; |
|
28 |
public filters =[]; |
|
34 | 29 |
|
35 |
// private baseUrl: string; |
|
36 |
private searchFields:SearchFields = new SearchFields(); |
|
30 |
public searchUtils:SearchUtilsClass = new SearchUtilsClass(); |
|
37 | 31 |
|
38 |
private fieldIds: string[] = this.searchFields.ADVANCED_SEARCH_PERSON_PARAM; |
|
39 |
private fieldIdsMap: { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} = this.searchFields.PERSON_FIELDS_MAP; |
|
40 |
private selectedFields:AdvancedField[] = []; |
|
32 |
public searchFields:SearchFields = new SearchFields(); |
|
41 | 33 |
|
34 |
public fieldIds: string[] = this.searchFields.ADVANCED_SEARCH_PERSON_PARAM; |
|
35 |
public fieldIdsMap: { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} = this.searchFields.PERSON_FIELDS_MAP; |
|
36 |
public selectedFields:AdvancedField[] = []; |
|
37 |
|
|
42 | 38 |
@ViewChild (AdvancedSearchPageComponent) searchPage : AdvancedSearchPageComponent ; |
43 | 39 |
|
44 | 40 |
|
... | ... | |
102 | 98 |
//TODO set filters from |
103 | 99 |
} |
104 | 100 |
|
105 |
private queryChanged($event) {
|
|
101 |
public queryChanged($event) {
|
|
106 | 102 |
var parameters = $event.value; |
107 | 103 |
this.getResults(parameters, this.searchUtils.page,this.searchUtils.size); |
108 | 104 |
console.info("queryChanged: Execute search query "+parameters); |
Also available in: Unified diff
Make class fields public for ngfactory | use new refine fields in order to display names - not