add publicly funded filter in indicators dashboards
This commit is contained in:
parent
bece7ef020
commit
27708546aa
|
@ -14,7 +14,9 @@ import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service
|
|||
import {SearchResearchResultsService} from "../../openaireLibrary/services/searchResearchResults.service";
|
||||
import {CustomFilterService} from "../../openaireLibrary/shared/customFilter.service";
|
||||
import {StringUtils} from "../../openaireLibrary/utils/string-utils.class";
|
||||
import {Filter} from "../../openaireLibrary/searchPages/searchUtils/searchHelperClasses.class";
|
||||
import {Filter, Value} from "../../openaireLibrary/searchPages/searchUtils/searchHelperClasses.class";
|
||||
import {RefineResultsUtils} from "../../openaireLibrary/services/servicesUtils/refineResults.class";
|
||||
import {SearchFields} from "../../openaireLibrary/utils/properties/searchFields";
|
||||
|
||||
@Component({
|
||||
selector: 'monitor',
|
||||
|
@ -111,6 +113,25 @@ export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent {
|
|||
filters.push(filter);
|
||||
}
|
||||
}
|
||||
let publiclyFunded:Filter = new Filter();
|
||||
publiclyFunded.title = "Publicly funded";
|
||||
|
||||
publiclyFunded.type = "triplet";
|
||||
publiclyFunded.filterId = "publiclyfunded";
|
||||
let searchFields: SearchFields = new SearchFields();
|
||||
let data = searchFields.RESULT_STATIC_FIELD_VALUES['publiclyfunded'];
|
||||
for(let i=0; i<data.length; i++) {
|
||||
var value:Value = new Value();
|
||||
value.name = data[i].name;
|
||||
value.number = 0
|
||||
value.id = data[i].id;
|
||||
//if(RefineResultsUtils.includeValue(value)){
|
||||
publiclyFunded.values.push(value);
|
||||
}
|
||||
|
||||
publiclyFunded.type = "triplet";
|
||||
|
||||
filters.push(publiclyFunded)
|
||||
return filters;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue