import {Component, Input} from '@angular/core'; import {HelperFunctions} from "../../utils/HelperFunctions.class"; import {Project} from "../../utils/result-preview/result-preview"; @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}}
    • Funder: {{item.funderName?item.funderName:item.funderShortname}} ({{item.funderShortname}})
    • Project Code: {{item.code}}
    • Funding stream: {{item.funding}}
    {{item.provenanceAction}}
    ,
    View less
    View more
  • ` }) export class FundedByComponent { @Input() fundedByProjects: Project[]; public threshold: number = 5; public showNum: number = 5; public scroll() { HelperFunctions.scroll(); } }