From 3e96a5f889af40128f46f2d526ad36604c619599 Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 30 Jan 2024 11:29:31 +0200 Subject: [PATCH] [master | DONE | CHANGED] Monitor - Indicators: update fields mapping for filtering to work better for FOS filters --- monitor/entities/stakeholder.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/entities/stakeholder.ts b/monitor/entities/stakeholder.ts index e82b968d..3586e088 100644 --- a/monitor/entities/stakeholder.ts +++ b/monitor/entities/stakeholder.ts @@ -249,7 +249,7 @@ export class IndicatorFilterUtils { "foslvl1": { "publication":"publication.topics.result.result_fos.lvl1", - "result":"result.result_fos.lvl1", + // "result":"result.result_fos.lvl1", "indi_pub_downloads":"indi_pub_downloads.result.result_fos.lvl1", "indi_pub_downloads_year":"indi_pub_downloads_year.result.result_fos.lvl1", "indi_impact_measures":"indi_impact_measures.result.result_fos.lvl1", @@ -260,7 +260,7 @@ export class IndicatorFilterUtils { }, "foslvl2":{ "publication":"publication.topics.result.result_fos.lvl2", - "result":"result.result_fos.lvl2", + // "result":"result.result_fos.lvl2", "indi_pub_downloads":"indi_pub_downloads.result.result_fos.lvl2", "indi_pub_downloads_year":"indi_pub_downloads_year.result.result_fos.lvl2", "indi_impact_measures":"indi_impact_measures.result.result_fos.lvl2", @@ -281,7 +281,7 @@ export class IndicatorFilterUtils { } static getFieldForTable(field, table){ - if(["publication", "software", "dataset", "other", "result"].indexOf(table)!=-1){ + if(["publication", "software", "dataset", "other", "result"].indexOf(table)!=-1 && IndicatorFilterUtils.filteredFields[field]["result"]){ return IndicatorFilterUtils.filteredFields[field]["result"]; }else{ return IndicatorFilterUtils.filteredFields[field][table];