Revision 56059
Added by Argiro Kokogiannaki almost 5 years ago
searchUtils.class.ts | ||
---|---|---|
8 | 8 |
totalResultsNoFilters:number; // for organization landing - tab with projects |
9 | 9 |
sortBy: string = ""; |
10 | 10 |
} |
11 |
|
|
12 |
export class SearchCustomFilter{ |
|
13 |
fieldName:string; //Country |
|
14 |
queryFieldName:string; //country |
|
15 |
valueId:string; //gr |
|
16 |
valueName:string; // Greece |
|
17 |
isApplied:boolean; |
|
18 |
constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){ |
|
19 |
this.isApplied = true; |
|
20 |
|
|
21 |
this.fieldName = fieldName; |
|
22 |
this.queryFieldName = queryFieldName; |
|
23 |
this.valueId = valueId; |
|
24 |
this.valueName = valueName; |
|
25 |
} |
|
26 |
// public setFilter(filter:SearchCustomFilter){ |
|
27 |
// if(!filter){ |
|
28 |
// return; |
|
29 |
// } |
|
30 |
// this.fieldName = filter.fieldName; |
|
31 |
// this.queryFieldName = filter.queryFieldName; |
|
32 |
// this.valueId = filter.valueId; |
|
33 |
// this.valueName = filter.valueName; |
|
34 |
// } |
|
35 |
} |
Also available in: Unified diff
[Library|Trunk]
Changes for Aggregator portal:
use a customFilter in search pages, and pass it through the components
for landing pages check if a route is available in order to add linking and deposit links