1
|
import {Component, Input, ViewChild} from '@angular/core';
|
2
|
import { ActivatedRoute} from '@angular/router';
|
3
|
import {Location} from '@angular/common';
|
4
|
|
5
|
import { Filter, Value} from '../searchUtils/searchHelperClasses.class';
|
6
|
|
7
|
import {RefineFieldResultsService} from '../../services/refineFieldResults.service';
|
8
|
import {ErrorCodes} from '../../utils/properties/errorCodes';
|
9
|
import {SearchFields, FieldDetails} from '../../utils/properties/searchFields';
|
10
|
import {SearchPageComponent } from '../searchUtils/searchPage.component';
|
11
|
import {SearchUtilsClass} from '../searchUtils/searchUtils.class';
|
12
|
import {RouterHelper} from '../../utils/routerHelper.class';
|
13
|
import{EnvProperties} from '../../utils/properties/env-properties';
|
14
|
|
15
|
@Component({
|
16
|
selector: 'browse-statistic',
|
17
|
templateUrl: 'browseStatistic.component.html'
|
18
|
|
19
|
})
|
20
|
export class BrowseStatisticComponent {
|
21
|
|
22
|
@Input() public baseUrl:string = "";
|
23
|
@Input() public filter:any = "";
|
24
|
private _maxCharacters = 30;
|
25
|
public viewAll = false;
|
26
|
public routerHelper:RouterHelper = new RouterHelper();
|
27
|
constructor () {
|
28
|
|
29
|
}
|
30
|
|
31
|
public ngOnInit() {
|
32
|
|
33
|
|
34
|
}
|
35
|
|
36
|
quote(str:string){
|
37
|
return '"'+str+'"';
|
38
|
}
|
39
|
|
40
|
private _formatName(value){
|
41
|
return value.name+" ";//(((value.name+" ("+value.number+")").length >this._maxCharacters)?(value.name.substring(0,(this._maxCharacters - (" ("+value.number+")").length - ('...').length))+"..."):value.name)
|
42
|
}
|
43
|
|
44
|
}
|