From 84f4ca48fa9240fffe44589691e45f962a63c19d Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Mon, 5 Apr 2021 10:49:47 +0000 Subject: [PATCH] [Library|Trunk] Metrics: - comment Openaire views git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60789 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../dataProvider/dataProvider.component.ts | 2 +- .../landing-utils/metrics/metrics.component.ts | 16 ++++++++-------- landingPages/project/project.component.ts | 2 +- landingPages/result/resultLanding.component.ts | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index c2330f64..fa71e773 100644 --- a/landingPages/dataProvider/dataProvider.component.ts +++ b/landingPages/dataProvider/dataProvider.component.ts @@ -526,7 +526,7 @@ export class DataProviderComponent { } public get hasMetrics(): boolean { - return !(this.totalViews && this.totalDownloads && this.pageViews) || this.totalViews > 0 || this.totalDownloads > 0 || this.pageViews > 0; + return !(this.totalViews && this.totalDownloads/* && this.pageViews*/) || this.totalViews > 0 || this.totalDownloads > 0 /*|| this.pageViews > 0*/; } public openStatistics() { diff --git a/landingPages/landing-utils/metrics/metrics.component.ts b/landingPages/landing-utils/metrics/metrics.component.ts index dde0a3d5..6e7c8a46 100644 --- a/landingPages/landing-utils/metrics/metrics.component.ts +++ b/landingPages/landing-utils/metrics/metrics.component.ts @@ -26,15 +26,15 @@ import {animate, state, style, transition, trigger} from "@angular/animations"; are derived from aggregating individual research results metrics. -
+
{{metrics.totalDownloads | number}}
Downloads
-
+
{{metrics.totalViews | number}}
Total views
@@ -63,15 +63,15 @@ import {animate, state, style, transition, trigger} from "@angular/animations"; {{metrics.infos.get(key).numOfViews | number}} - + {{metrics.infos.get(key).numOfDownloads | number}} - + @@ -223,7 +223,7 @@ export class MetricsComponent { } public get total(): number { - return +this.pageViews + +this.metrics.totalViews + +this.metrics.totalDownloads; + return /*+this.pageViews +*/ +this.metrics.totalViews + +this.metrics.totalDownloads; } private getMetrics() { diff --git a/landingPages/project/project.component.ts b/landingPages/project/project.component.ts index 9828cc91..235c18cd 100644 --- a/landingPages/project/project.component.ts +++ b/landingPages/project/project.component.ts @@ -467,7 +467,7 @@ export class ProjectComponent { } public get hasMetrics(): boolean { - return !(this.totalViews && this.totalDownloads && this.pageViews) || this.totalViews > 0 || this.totalDownloads > 0||this.pageViews > 0; + return !(this.totalViews && this.totalDownloads/* && this.pageViews*/) || this.totalViews > 0 || this.totalDownloads > 0/*||this.pageViews > 0*/; } public openStatistics() { diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index 9630af43..6c1b5b72 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -433,7 +433,7 @@ export class ResultLandingComponent { } public get hasMetrics(): boolean { - return !(this.totalViews && this.totalDownloads && this.pageViews) || this.totalViews > 0 || this.totalDownloads > 0 || this.pageViews > 0; + return !(this.totalViews && this.totalDownloads /*&& this.pageViews*/) || this.totalViews > 0 || this.totalDownloads > 0 /*|| this.pageViews > 0*/; } private updateDescription(description: string) {