2021-11-12 09:13:22 +00:00
|
|
|
export interface SolrSettings {
|
|
|
|
core: string;
|
|
|
|
host: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ActiveFilterCategories {
|
|
|
|
// count: number;
|
2021-11-19 15:11:26 +00:00
|
|
|
// language!: Array<string>;
|
|
|
|
// subject!: Array<string>;
|
2021-11-12 09:13:22 +00:00
|
|
|
[key: string]: Array<string>;
|
|
|
|
}
|
|
|
|
|
|
|
|
// export class ActiveFilterCategory {
|
|
|
|
// key!: string;
|
|
|
|
// values!: Array<string>;
|
|
|
|
|
|
|
|
// // [key: string]: Array<string>;
|
|
|
|
// }
|
|
|
|
|
|
|
|
export class FilterItem {
|
|
|
|
private category: string;
|
|
|
|
val: string;
|
|
|
|
count: number;
|
|
|
|
private active: boolean;
|
|
|
|
|
|
|
|
constructor(value: string, count: number) {
|
|
|
|
this.val = value;
|
|
|
|
this.count = count;
|
|
|
|
this.active = false;
|
|
|
|
this.category = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
//#region properties
|
|
|
|
|
|
|
|
get Category(): string {
|
|
|
|
return this.category;
|
|
|
|
}
|
|
|
|
set Category(theCategory: string) {
|
|
|
|
this.category = theCategory;
|
|
|
|
}
|
|
|
|
|
|
|
|
get Active(): boolean {
|
|
|
|
return this.active;
|
|
|
|
}
|
|
|
|
set Active(isActive: boolean) {
|
|
|
|
this.active = isActive;
|
|
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
}
|