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'; import {ErrorCodes} from '../../utils/properties/errorCodes'; 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'; import{EnvProperties} from '../../utils/properties/env-properties'; @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) } }