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']}}
Project
-
Funder:
{{item.funderName ? item.funderName : item.funderShortname}}
({{item.funderShortname}})
-
Project Code: {{item.code}}
-
Funding stream: {{item.funding}}
Validated by funder
|
{{item.provenanceAction}}
,
threshold" class="uk-text-right uk-margin-bottom">
View less
threshold"
class="uk-text-right uk-margin-bottom">
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();
}
}