@@ -84,7 +86,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
+
Validated by funder
|
{{item.provenanceAction}}
@@ -105,8 +107,15 @@ export class FundedByComponent {
public url = properties.searchLinkToProject.split('?')[0];
public title: string = "Funded by";
@Input() provenanceActionVocabulary = null;
- public provenancesCalculated: boolean[] = [];
+ // public provenancesCalculated: boolean[] = [];
public routerHelper:RouterHelper = new RouterHelper();
+ public dropClicked: boolean = false;
+
+ public ngOnInit() {
+ this.fundedByProjects.forEach((project, index) => {
+ this.getVocabularyLabel(project, this.provenanceActionVocabulary, index);
+ })
+ }
public viewAllClick() {
if(this.fundedByProjects.length <= this.threshold*2) {
@@ -124,11 +133,11 @@ export class FundedByComponent {
}
public getVocabularyLabel(item: any, vocabulary: any, index: number) {
- if(!this.provenancesCalculated[index]) {
- this.provenancesCalculated[index] = true;
+ // if(!this.provenancesCalculated[index]) {
+ // this.provenancesCalculated[index] = true;
item.provenanceAction = HelperFunctions.getVocabularyLabel(item.provenanceAction, vocabulary, false);
- }
- return item.provenanceAction;
+ // }
+ // return item.provenanceAction;
}
public addEoscPrevInParams(obj) {