[master | DONE | CHANGED] Monitor - Indicators: update fields mapping for filtering to work better for FOS filters

This commit is contained in:
argirok 2024-01-30 11:29:31 +02:00
parent 0c85072ac3
commit 3e96a5f889
1 changed files with 3 additions and 3 deletions

View File

@ -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];