import {Component, Input} from '@angular/core'; import { FetchPublications } from '../../utils/fetchEntitiesClasses/fetchPublications.class'; import {OpenaireProperties, ErrorCodes} from '../../utils/properties/openaireProperties'; @Component({ selector: 'publicationsTab', template: `
View all {{fetchPublications.searchUtils.totalResults}} results
` }) export class PublicationsTabComponent { @Input() paramsForSearchLink = {};//: string = ""; @Input() fetchPublications : FetchPublications; public linkToSearchPublications = ""; public errorCodes:ErrorCodes = new ErrorCodes(); constructor () {} ngOnInit() { this.linkToSearchPublications = OpenaireProperties.getLinkToAdvancedSearchPublications();//+this.paramsForSearchLink; } ngOnDestroy() {} }