From beb43ed1b7c5b0e1dd6e1db4f076f75bb3e0265d Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Tue, 2 May 2023 12:00:40 +0300 Subject: [PATCH] project & data landing/search page: get usage counts from index (measure field) --- .../dataProvider/dataProvider.component.html | 74 +++++++++---------- .../dataProvider/dataProvider.component.ts | 3 +- .../dataProvider/dataProvider.service.ts | 3 + landingPages/project/project.component.html | 74 +++++++++---------- landingPages/project/project.component.ts | 3 +- landingPages/project/project.service.ts | 4 + services/searchDataproviders.service.ts | 2 + services/searchProjects.service.ts | 2 + utils/entities/dataProviderInfo.ts | 2 + utils/entities/projectInfo.ts | 47 ++++++------ utils/rangeFilter/rangeFilter.component.html | 4 +- .../result-preview.component.html | 4 +- .../result-preview.component.ts | 6 ++ 13 files changed, 125 insertions(+), 103 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.component.html b/landingPages/dataProvider/dataProvider.component.html index 4d75685e..de65c000 100644 --- a/landingPages/dataProvider/dataProvider.component.html +++ b/landingPages/dataProvider/dataProvider.component.html @@ -189,17 +189,17 @@
-
-
+
+
-
-
{{formatNumber(totalDownloads)}}
-
{{formatNumber(totalViews)}}
+
{{formatNumber(dataProviderInfo.measure.counts[1].value)}}
+
{{formatNumber(dataProviderInfo.measure.counts[0].value)}}
@@ -780,14 +780,14 @@
  • Overview
  • -
  • +
  • Usage