Revision 44826
Added by Argiro Kokogiannaki over 7 years ago
advancedSearchPublications.component.ts | ||
---|---|---|
24 | 24 |
}) |
25 | 25 |
|
26 | 26 |
export class AdvancedSearchPublicationsComponent { |
27 |
private results =[]; |
|
28 |
private filters =[]; |
|
29 |
// private totalResults:number = 0 ; |
|
30 |
private searchUtils:SearchUtilsClass = new SearchUtilsClass(); |
|
27 |
public results =[]; |
|
28 |
public filters =[]; |
|
29 |
public searchUtils:SearchUtilsClass = new SearchUtilsClass(); |
|
31 | 30 |
|
32 |
// private baseUrl: string; |
|
33 |
private searchFields:SearchFields = new SearchFields(); |
|
31 |
public searchFields:SearchFields = new SearchFields(); |
|
34 | 32 |
|
35 |
private fieldIds: string[] = this.searchFields.ADVANCED_SEARCH_PUBLICATIONS_PARAM;
|
|
36 |
private fieldIdsMap: { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} = this.searchFields.PUBLICATION_FIELDS_MAP;
|
|
37 |
private selectedFields:AdvancedField[] = [];
|
|
33 |
public fieldIds: string[] = this.searchFields.ADVANCED_SEARCH_PUBLICATIONS_PARAM;
|
|
34 |
public fieldIdsMap: { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string }} = this.searchFields.PUBLICATION_FIELDS_MAP;
|
|
35 |
public selectedFields:AdvancedField[] = [];
|
|
38 | 36 |
|
39 | 37 |
@ViewChild (AdvancedSearchPageComponent) searchPage : AdvancedSearchPageComponent ; |
40 | 38 |
|
... | ... | |
96 | 94 |
); |
97 | 95 |
} |
98 | 96 |
|
99 |
private queryChanged($event) {
|
|
97 |
public queryChanged($event) {
|
|
100 | 98 |
var parameters = $event.value; |
101 | 99 |
this.getResults(parameters, this.searchUtils.page,this.searchUtils.size); |
102 | 100 |
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