From 5bf831a9b6ec6222c9a0f08097e007863814a17d Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Mon, 14 Oct 2019 14:21:04 +0000 Subject: [PATCH] [Monitor]: Change arrays of number to Indicator's array. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor@57367 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/assets/stakeholders.json | 447 +++++++++++++++++++++++++++++++++-- 1 file changed, 426 insertions(+), 21 deletions(-) diff --git a/src/assets/stakeholders.json b/src/assets/stakeholders.json index c248383..402bdc3 100644 --- a/src/assets/stakeholders.json +++ b/src/assets/stakeholders.json @@ -36,12 +36,93 @@ "isActive": true, "isPublic": true, "numbers": [ - "1", - "2", - "3" + { + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags": [ + "publications" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "publications" + ] + } + ] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags": [ + "publication", + "open access" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "open_access" + ] + } + ] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags": [ + "publication", + "embargo" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "embargo" + ] + } + ] + } ], "charts": [ - "4" + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags": [ + "publication", + "project" + ], + "width": "large", + "indicatorPaths": [ + { + "type": "bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath": [] + }, + { + "type": "table", + "url": "https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortName}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath": [] + } + ] + } ] }, { @@ -51,12 +132,93 @@ "isActive": true, "isPublic": true, "numbers": [ - "1", - "2", - "3" + { + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags": [ + "publications" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "publications" + ] + } + ] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags": [ + "publication", + "open access" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "open_access" + ] + } + ] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags": [ + "publication", + "embargo" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "embargo" + ] + } + ] + } ], "charts": [ - "4" + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags": [ + "publication", + "project" + ], + "width": "large", + "indicatorPaths": [ + { + "type": "bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath": [] + }, + { + "type": "table", + "url": "https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortName}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath": [] + } + ] + } ] } ] @@ -76,12 +238,93 @@ "isActive": true, "isPublic": true, "numbers": [ - "1", - "2", - "3" + { + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags": [ + "publications" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "publications" + ] + } + ] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags": [ + "publication", + "open access" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "open_access" + ] + } + ] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags": [ + "publication", + "embargo" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "embargo" + ] + } + ] + } ], "charts": [ - "4" + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags": [ + "publication", + "project" + ], + "width": "large", + "indicatorPaths": [ + { + "type": "bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath": [] + }, + { + "type": "table", + "url": "https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortName}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath": [] + } + ] + } ] } ] @@ -173,12 +416,93 @@ "isActive": true, "isPublic": true, "numbers": [ - "1", - "2", - "3" + { + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags": [ + "publications" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "publications" + ] + } + ] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags": [ + "publication", + "open access" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "open_access" + ] + } + ] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags": [ + "publication", + "embargo" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "embargo" + ] + } + ] + } ], "charts": [ - "4" + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags": [ + "publication", + "project" + ], + "width": "large", + "indicatorPaths": [ + { + "type": "bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath": [] + }, + { + "type": "table", + "url": "https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortName}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath": [] + } + ] + } ] } ] @@ -207,12 +531,93 @@ "isActive": true, "isPublic": true, "numbers": [ - "1", - "2", - "3" + { + "id": "1", + "type": "number", + "name": "Total", + "description": "Total number of publications", + "tags": [ + "publications" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "publications" + ] + } + ] + }, + { + "id": "2", + "type": "number", + "name": "Open", + "description": "Total number of open access publications", + "tags": [ + "publication", + "open access" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "open_access" + ] + } + ] + }, + { + "id": "3", + "type": "number", + "name": "Embargo", + "description": "Total number of embargoed publications", + "tags": [ + "publication", + "embargo" + ], + "width": "small", + "indicatorPaths": [ + { + "type": "", + "url": "/funders/{index_shortName}", + "jsonPath": [ + "statistics", + "embargo" + ] + } + ] + } ], "charts": [ - "4" + { + "id": "4", + "type": "charts", + "name": "Number of publications by project", + "description": "Number of publications by project", + "tags": [ + "publication", + "project" + ], + "width": "large", + "indicatorPaths": [ + { + "type": "bar graph", + "url": "https://www.openaire.eu/stats/chart.php?com=query&data={%22table%22%3A%22result%22%2C%22fields%22%3A[{%22fld%22%3A%22number%22%2C%22agg%22%3A%22count%22%2C%22type%22%3A%22bar%22%2C%22yaxis%22%3A1%2C%22c%22%3Afalse}]%2C%22xaxis%22%3A{%22name%22%3A%22result_projects-project-acronym%22%2C%22agg%22%3A%22avg%22}%2C%22group%22%3A%22%22%2C%22color%22%3A%22%22%2C%22type%22%3A%22chart%22%2C%22size%22%3A30%2C%22sort%22%3A%22count-number%22%2C%22yaxisheaders%22%3A[%22%22]%2C%22fieldsheaders%22%3A[%22publications%22]%2C%22in%22%3A[]%2C%22filters%22%3A[{%22name%22%3A%22result_projects-project-funding_lvl0%22%2C%22values%22%3A[%22H2020%22]%2C%22to%22%3A%22-1%22}%2C{%22name%22%3A%22type%22%2C%22values%22%3A[%22publication%22]%2C%22to%22%3A%22-1%22}]%2C%22having%22%3A[]%2C%22xStyle%22%3A{%22r%22:%22-%22,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:%22-%22,%22wt%22:%22-%22}%2C%22title%22%3A%22H2020%20Publications%20per%20project%20%28top%2030%29%22%2C%22subtitle%22%3A%22%22%2C%22xaxistitle%22%3A%22project%22%2C%22order%22%3A%22d%22}&h=100%&w=80%", + "jsonPath": [] + }, + { + "type": "table", + "url": "https://www.openaire.eu/stats/gtable.php?com=query&data={%22table%22:%22result%22,%22fields%22:[{%22fld%22:%22number%22,%22agg%22:%22count%22,%22type%22:%22pie%22,%22yaxis%22:1,%22c%22:false}],%22xaxis%22:{%22name%22:%22result_projects-project-title%22,%22agg%22:%22avg%22},%22group%22:%22%22,%22color%22:%22%22,%22type%22:%22chart%22,%22size%22:%2230%22,%22sort%22:%22count-number%22,%22yaxisheaders%22:[%22%22],%22fieldsheaders%22:[%22publications%22],%22in%22:[],%22filters%22:[{%22name%22:%22result_projects-project-funder%22,%22values%22:[%22{index_name}%22],%22to%22:%22-1%22},{%22name%22:%22type%22,%22values%22:[%22publication%22],%22to%22:%22-1%22}],%22having%22:[],%22xStyle%22:{%22r%22:-90,%22s%22:%22-%22,%22l%22:%22-%22,%22ft%22:10,%22wt%22:%22-%22},%22title%22:%22{index_shortName}%20Publications%20by%20project%20(top%2030)%22,%22subtitle%22:%22%22,%22xaxistitle%22:%22project%22,%22order%22:%22d%22}", + "jsonPath": [] + } + ] + } ] } ] @@ -259,7 +664,7 @@ "url": "/funders/{index_shortName}", "jsonPath": [ "statistics", - "open" + "open_access" ] } ]