Project

General

Profile

« Previous | Next » 

Revision 44826

Make class fields public for ngfactory | use new refine fields in order to display names - not

View differences:

searchProjects.component.ts
23 23
})
24 24
export class SearchProjectsComponent {
25 25
  public results =[];
26
  private filters: Filter[] =[];
27
  // public totalResults:number  = 0 ;
28
  private baseUrl:string;
26
  public filters: Filter[] =[];
27
  public baseUrl:string;
29 28
  public searchUtils:SearchUtilsClass = new SearchUtilsClass();
30
  private sub: any;
31
  private subResults: any;
32
  private searchFields:SearchFields = new SearchFields();
33
  private refineFields: string[] =  this.searchFields.PROJECT_INDEX;
34
  private indexIdsMap: { [key:string]:string } = this.searchFields.PROJECT_INDEX_PARAM_MAP;
35
  private fieldIdsMap:  { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string  }} = this.searchFields.PROJECT_FIELDS_MAP;
36
  private urlParams : Map<string, string>;
37
  private _location:Location;
29
  public sub: any;
30
  public subResults: any;
31
  public searchFields:SearchFields = new SearchFields();
32
  public refineFields: string[] =  this.searchFields.PROJECT_INDEX;
33
  public indexIdsMap: { [key:string]:string } = this.searchFields.PROJECT_INDEX_PARAM_MAP;
34
  public fieldIdsMap:  { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string  }} = this.searchFields.PROJECT_FIELDS_MAP;
35
  public urlParams : Map<string, string>;
36
  public _location:Location;
38 37

  
39 38
  @ViewChild (SearchPageComponent) searchPage : SearchPageComponent ;
40 39

  
......
47 46

  
48 47
  }
49 48

  
50
  private ngOnInit() {
49
  public ngOnInit() {
51 50
    this.searchPage.refineFields = this.refineFields;
52 51
    this.searchPage.indexIdsMap = this.indexIdsMap;
53 52
    this.searchPage.fieldIdsMap = this.fieldIdsMap;
......
67 66
    });
68 67
  }
69 68

  
70
  private ngOnDestroy() {
69
  public ngOnDestroy() {
71 70
    if(this.sub){
72 71
      this.sub.unsubscribe();
73 72
    }
......
141 140
  }
142 141

  
143 142

  
144
  private queryChanged($event) {
143
  public queryChanged($event) {
145 144
    this.urlParams = undefined;
146 145
    var parameters = $event.value;
147 146
    this._getResults(parameters, true, this.searchUtils.page, this.searchUtils.size);

Also available in: Unified diff