import {Component, Input} from '@angular/core'; import {HelperFunctions} from "../../utils/HelperFunctions.class"; import {Project} from "../../utils/result-preview/result-preview"; import {properties} from "../../../../environments/environment"; @Component({ selector: 'fundedBy', template: `
Funded by
{{item['funderShortname'] ? item['funderShortname'] : item['funderName']}} [no funder available] | {{ item['acronym'] ? item['acronym'] : item['title']}} {{item['funderShortname'] ? item['funderShortname'] : item['funderName']}} [no funder available] | {{ item['acronym'] ? item['acronym'] : item['title']}}
Project
{{item['acronym'] ? item['acronym'] : item['title']}} {{item['acronym'] ? item['acronym'] : item['title']}}
{{item.title}}
{{item.provenanceAction}}
,
View less
View more
` }) export class FundedByComponent { @Input() fundedByProjects: Project[]; public threshold: number = 5; public showNum: number = 5; public url = properties.searchLinkToProject.split('?')[0]; public scroll() { HelperFunctions.scroll(); } }