2017-12-19 13:53:46 +01:00
|
|
|
import {Component, Input, ViewChild} from '@angular/core';
|
|
|
|
import { ActivatedRoute} from '@angular/router';
|
|
|
|
import {Location} from '@angular/common';
|
|
|
|
|
|
|
|
import { Filter, Value} from '../searchUtils/searchHelperClasses.class';
|
|
|
|
|
|
|
|
import {RefineFieldResultsService} from '../../services/refineFieldResults.service';
|
2018-02-15 11:36:12 +01:00
|
|
|
import {ErrorCodes} from '../../utils/properties/errorCodes';
|
2017-12-19 13:53:46 +01:00
|
|
|
import {SearchFields, FieldDetails} from '../../utils/properties/searchFields';
|
|
|
|
import {SearchPageComponent } from '../searchUtils/searchPage.component';
|
|
|
|
import {SearchUtilsClass} from '../searchUtils/searchUtils.class';
|
|
|
|
import {RouterHelper} from '../../utils/routerHelper.class';
|
2018-02-05 14:14:59 +01:00
|
|
|
import{EnvProperties} from '../../utils/properties/env-properties';
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
@Component({
|
|
|
|
selector: 'browse-statistic',
|
|
|
|
templateUrl: 'browseStatistic.component.html'
|
|
|
|
|
|
|
|
})
|
|
|
|
export class BrowseStatisticComponent {
|
|
|
|
|
|
|
|
@Input() public baseUrl:string = "";
|
|
|
|
@Input() public filter:any = "";
|
|
|
|
private _maxCharacters = 30;
|
|
|
|
public viewAll = false;
|
|
|
|
public routerHelper:RouterHelper = new RouterHelper();
|
|
|
|
constructor () {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public ngOnInit() {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
quote(str:string){
|
|
|
|
return '"'+str+'"';
|
|
|
|
}
|
|
|
|
|
|
|
|
private _formatName(value){
|
|
|
|
return value.name+" ";//(((value.name+" ("+value.number+")").length >this._maxCharacters)?(value.name.substring(0,(this._maxCharacters - (" ("+value.number+")").length - ('...').length))+"..."):value.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|