From c0ce01f5615437fe3b9b490eb683070a6b21f9f3 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 11 May 2020 17:11:12 +0000 Subject: [PATCH] [Trunk | Connect]: 1. assets/connect-assets/home/entities: svg files added for entity types in community first page. 2. connect-custom.css: Classes added for icons in entity types in community first page. 3. community.component: Analytics tab redesigned - entity tabs added & charts in cards. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58676 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/community/community.component.html | 151 ++++++++++++++---- src/app/community/community.component.ts | 62 +++++++ .../connect-assets/home/entities/dataset.svg | 7 + .../connect-assets/home/entities/other.svg | 13 ++ .../home/entities/publication.svg | 11 ++ .../connect-assets/home/entities/software.svg | 11 ++ src/assets/connect-custom.css | 27 ++++ 7 files changed, 247 insertions(+), 35 deletions(-) create mode 100644 src/assets/connect-assets/home/entities/dataset.svg create mode 100644 src/assets/connect-assets/home/entities/other.svg create mode 100644 src/assets/connect-assets/home/entities/publication.svg create mode 100644 src/assets/connect-assets/home/entities/software.svg diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 90cfed1..2c08703 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -48,7 +48,7 @@ - 0 && ( statistics.statisticsDisplay.entities[type].numbers.map['total']['showInMonitor'] @@ -63,15 +63,16 @@ && statistics.allowedChartsMode['showInMonitor'][type].length > 0) )">
{{typeName}}
+ - -
+ entity: type, entityName: typeName, + statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay, + allowedEntities: statistics.allowedEntitiesMode['showInMonitor'], + allowedCharts:statistics.allowedChartsMode['showInMonitor'], + showChartTitle: statistics.chartTitlesMode['showInMonitor'], + chartsInfoMap:statistics.chartsInfoMap, showIn:'showInMonitor'}"> + +
-
+
{{statisticsSum[entity].total|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].total|number}}
Total
-
+ *ngIf="statisticsDisplay.entities[entity].numbers.map['project'][showIn] && statisticsSum[entity].projects" class=""> +
{{statisticsSum[entity].projects|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].projects|number}}
Total linked projects
-
+ *ngIf="statisticsDisplay.entities[entity].numbers.map['open'][showIn] && statisticsSum[entity].open_access" class=""> +
{{statisticsSum[entity].open_access|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].open_access|number}}
Open access
-
-
+
+
{{statisticsSum[entity].closed_access|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].closed_access|number}}
Closed access
-
+ *ngIf="statisticsDisplay.entities[entity].numbers.map['embargo'][showIn] && statisticsSum[entity].embargo" class=""> +
{{statisticsSum[entity].embargo|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].embargo|number}}
Embargoed
-
+
{{statisticsSum[entity].restricted|number}}
+ class="uk-h4 uk-text-bold">{{statisticsSum[entity].restricted|number}}
Restricted
@@ -152,9 +153,10 @@