diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index fa71e773..c2330f64 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 0a8ab589..73a8ee30 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
@@ -224,7 +224,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 235c18cd..9828cc91 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.html b/landingPages/result/resultLanding.component.html index c0d128ed..4ba16208 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -425,17 +425,19 @@
- -
+
+ +
+ diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index 7bd0da39..cec8d099 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -353,7 +353,7 @@ export class ResultLandingComponent { if (this.type == "result") { // no type was specified - update URL based this.resultLandingInfo.resultType this.updateUrlWithType(pid); } - this.seoService.createLinkForCanonicalURL(this.properties.domain+ properties.baseLink + ( pid ? (this.linkToLandingPage.split("?")[0] + "?pid=" + pid.id): + this.seoService.createLinkForCanonicalURL(this.properties.domain+ properties.baseLink + ( pid ? (this.linkToLandingPage.split("?")[0] + "?pid=" + encodeURIComponent(pid.id)): (this.linkToLandingPage + this.resultLandingInfo.relcanId))); if ((this.type == "publication") && (this.properties.environment == "beta" || this.properties.environment == "development") && (typeof document !== 'undefined')) { this.getOpenCitations(); @@ -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) { diff --git a/utils/result-preview/result-preview.component.html b/utils/result-preview/result-preview.component.html index 4b30a90a..9000ffdb 100644 --- a/utils/result-preview/result-preview.component.html +++ b/utils/result-preview/result-preview.component.html @@ -1,10 +1,16 @@
-
- Enermaps tool preview - +
+ Enermaps tool preview + +
diff --git a/utils/result-preview/result-preview.component.ts b/utils/result-preview/result-preview.component.ts index 1267cdd5..0f2eca11 100644 --- a/utils/result-preview/result-preview.component.ts +++ b/utils/result-preview/result-preview.component.ts @@ -83,7 +83,7 @@ export class ResultPreviewComponent implements OnInit, OnChanges { let pid:Identifier =this.getPID(); if(pid){ this.urlParam = "pid"; - this.result.id = encodeURIComponent(pid.id); + this.result.id = pid.id; } }