1
|
export class Filter{
|
2
|
public title: string; // eg Type
|
3
|
public filterId: string; // type (name in url parameter)
|
4
|
public originalFilterId: string; // (in index)
|
5
|
public countSelectedValues: number = 0;
|
6
|
public values: Value[] = [];
|
7
|
public filterOperator: string ='or';
|
8
|
}
|
9
|
export class Value{
|
10
|
public name: string; //eg Article, Journal
|
11
|
public id: string; //0001
|
12
|
public selected: boolean = false;
|
13
|
public number: number = 0;
|
14
|
|
15
|
}
|
16
|
export class AdvancedField{
|
17
|
public id: string; //
|
18
|
public param:string;
|
19
|
public name: string; //
|
20
|
public type: string = "keyword"; //keyword, static or dynamic
|
21
|
public value: string = '';
|
22
|
public operatorId: string;
|
23
|
public operatorName: string ="";
|
24
|
public valid: boolean = true;
|
25
|
|
26
|
|
27
|
constructor(id:string,param:string,name:string, type:string, value:string,operator:string){
|
28
|
this.id = id;
|
29
|
this.param = param;
|
30
|
this.name = name;
|
31
|
this.type = type;
|
32
|
this.value = value;
|
33
|
this.operatorId = operator;
|
34
|
// this.operatorName = "AND";
|
35
|
|
36
|
}
|
37
|
}
|
38
|
|
39
|
export class OPERATOR{
|
40
|
public static AND: string ="and";
|
41
|
public static OR: string ="or";
|
42
|
public static NOT: string ="not";
|
43
|
|
44
|
}
|
45
|
|
46
|
export class AutoCompleteValue{
|
47
|
public id: string;
|
48
|
public label: string;
|
49
|
}
|