+
+
+
+
+
+
+
+
+
diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts
index 71298dc..0202984 100644
--- a/src/app/community/community.component.ts
+++ b/src/app/community/community.component.ts
@@ -78,6 +78,7 @@ export class CommunityComponent {
@ViewChild(StatisticsForDashboardComponent) statistics: StatisticsForDashboardComponent = null;
public activeTab = "summary";
public show: string = 'overview';
+ public analyticsActiveTab = "";
searchLinkToResults: string = null;
@@ -473,4 +474,65 @@ export class CommunityComponent {
public countSubscribersEvent($event){
this.subscribers = $event.value;
}
+
+ public checkStatistics(type: string) {
+ // if(this.isEntityEnabled(type)
+ // && this.statistics && this.statistics.statisticsDisplay && this.statistics.statisticsDisplay.isActive
+ // && this.statistics.statisticsSum && this.statistics.statisticsSum[type].total>0
+ // &&
+ // ( this.statistics.statisticsDisplay.entities[type].numbers.map['total']['showInMonitor']
+ // || this.statistics.statisticsDisplay.entities[type].numbers.map['project']['showInMonitor']
+ // || this.statistics.statisticsDisplay.entities[type].numbers.map['open']['showInMonitor']
+ // || this.statistics.statisticsDisplay.entities[type].numbers.map['closed']['showInMonitor']
+ // || this.statistics.statisticsDisplay.entities[type].numbers.map['embargo']['showInMonitor']
+ // || this.statistics.statisticsDisplay.entities[type].numbers.map['restricted']['showInMonitor']
+ // || ( this.statistics.allowedEntitiesMode['showInMonitor'] && this.statistics.statisticsSum
+ // && this.statistics.allowedChartsMode['showInMonitor'] && this.statistics.statisticsSum[type]
+ // && this.statistics.allowedChartsMode['showInMonitor'][type] && this.statistics.statisticsSum[type].total > 0
+ // && this.statistics.allowedChartsMode['showInMonitor'][type].length > 0))) {
+ // return true;
+ // } else {
+ // return false;
+ // }
+ if(this.isEntityEnabled(type)
+ && this.statistics && this.statistics.statisticsDisplay && this.statistics.statisticsDisplay.isActive
+ && this.statistics.statisticsSum && this.statistics.statisticsSum[type] && this.statistics.statisticsSum[type].total>0
+ &&
+ ( this.statistics.statisticsDisplay.entities[type].numbers.map['total']['showInMonitor']
+ || this.statistics.statisticsDisplay.entities[type].numbers.map['project']['showInMonitor']
+ || this.statistics.statisticsDisplay.entities[type].numbers.map['open']['showInMonitor']
+ || this.statistics.statisticsDisplay.entities[type].numbers.map['closed']['showInMonitor']
+ || this.statistics.statisticsDisplay.entities[type].numbers.map['embargo']['showInMonitor']
+ || this.statistics.statisticsDisplay.entities[type].numbers.map['restricted']['showInMonitor']
+ || ( this.statistics.allowedEntitiesMode['showInMonitor']
+ && this.statistics.allowedChartsMode['showInMonitor'][type]
+ && this.statistics.allowedChartsMode['showInMonitor'][type].length > 0))) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public initializeAnalyticsActiveTab() {
+ if(!this.analyticsActiveTab) {
+ if(this.checkStatistics("publication")) {
+ this.analyticsActiveTab = "publication";
+ } else if(this.checkStatistics("dataset")) {
+ this.analyticsActiveTab = "dataset";
+ } else if(this.checkStatistics("software")) {
+ this.analyticsActiveTab = "software";
+ } else if(this.checkStatistics("orp")) {
+ this.analyticsActiveTab = "orp";
+ }
+ }
+ }
+
+ public showAnalyticsTab() {
+ this.initializeAnalyticsActiveTab();
+ if(!this.analyticsActiveTab) {
+ return false;
+ } else {
+ return true;
+ }
+ }
}
diff --git a/src/assets/connect-assets/home/entities/dataset.svg b/src/assets/connect-assets/home/entities/dataset.svg
new file mode 100644
index 0000000..a3c5ffa
--- /dev/null
+++ b/src/assets/connect-assets/home/entities/dataset.svg
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/src/assets/connect-assets/home/entities/other.svg b/src/assets/connect-assets/home/entities/other.svg
new file mode 100644
index 0000000..971cdf4
--- /dev/null
+++ b/src/assets/connect-assets/home/entities/other.svg
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/src/assets/connect-assets/home/entities/publication.svg b/src/assets/connect-assets/home/entities/publication.svg
new file mode 100644
index 0000000..ee15fdb
--- /dev/null
+++ b/src/assets/connect-assets/home/entities/publication.svg
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/src/assets/connect-assets/home/entities/software.svg b/src/assets/connect-assets/home/entities/software.svg
new file mode 100644
index 0000000..4194c05
--- /dev/null
+++ b/src/assets/connect-assets/home/entities/software.svg
@@ -0,0 +1,11 @@
+
diff --git a/src/assets/connect-custom.css b/src/assets/connect-custom.css
index 1504a13..f09200a 100644
--- a/src/assets/connect-custom.css
+++ b/src/assets/connect-custom.css
@@ -266,6 +266,33 @@ a:hover .user-circle-background {
font-family: 'Open Sans', sans-serif !important;
}
+.publicationAnalytics.uk-icon-button:hover, .publicationAnalytics.uk-icon-button.active {
+ background: #FFE6E6;
+}
+.publicationAnalytics.uk-icon-button {
+ border-color: #F17AA9 !important;
+}
+
+.datasetAnalytics.uk-icon-button:hover, .datasetAnalytics.uk-icon-button.active {
+ background: #E2DAF0;
+}
+.datasetAnalytics.uk-icon-button {
+ border-color: #A98BD4 !important;
+}
+
+.softwareAnalytics.uk-icon-button:hover, .softwareAnalytics.uk-icon-button.active {
+ background: #D4ECD6;
+}
+.softwareAnalytics.uk-icon-button {
+ border-color: #639C66 !important;
+}
+
+.otherAnalytics.uk-icon-button:hover, .otherAnalytics.uk-icon-button.active {
+ background: #C5E0E9;
+}
+.otherAnalytics.uk-icon-button {
+ border-color: #708AA5 !important;
+}
/*END OF CONNECT REDESIGN*/
.communityApp .uk-logo{