From e8f69c38bb446cf3d456b5dd08bdd020aa9e10c4 Mon Sep 17 00:00:00 2001 From: jbalasis Date: Wed, 27 Sep 2023 10:16:53 +0300 Subject: [PATCH] changes for metrics query params --- .../metrics-usagestats-report-results.component.ts | 10 +++++----- .../metrics/metrics-usagestats-report.component.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/pages/repository/metrics/metrics-usagestats-report-results.component.ts b/src/app/pages/repository/metrics/metrics-usagestats-report-results.component.ts index 0238a4da5..c16587213 100755 --- a/src/app/pages/repository/metrics/metrics-usagestats-report-results.component.ts +++ b/src/app/pages/repository/metrics/metrics-usagestats-report-results.component.ts @@ -58,11 +58,11 @@ export class MetricsUsagestatsReportResultsComponent implements OnInit { this.params.append('DatasetIdentifier', qparams['datasetIdentifier']); this.params.append('ItemDataType', qparams['itemIdentifier']); this.params.append('Granularity', qparams['granularity']); - this.params.append('MetricType', qparams['metricTypes']); - // this.params.append('MetricType', qparams['totalItemRequests']); - // this.params.append('MetricType', qparams['totalItemInvestigations']); - // this.params.append('MetricType', qparams['uniqueItemRequests']); - // this.params.append('MetricType', qparams['uniqueItemInvestigations']); + // this.params.append('MetricType', qparams['metricTypes']); + this.params.append('MetricType', qparams['totalItemRequests']); + this.params.append('MetricType', qparams['totalItemInvestigations']); + this.params.append('MetricType', qparams['uniqueItemRequests']); + this.params.append('MetricType', qparams['uniqueItemInvestigations']); }); this.chosenReport = this.params.get('Report'); diff --git a/src/app/pages/repository/metrics/metrics-usagestats-report.component.ts b/src/app/pages/repository/metrics/metrics-usagestats-report.component.ts index bb6f26891..060f23446 100755 --- a/src/app/pages/repository/metrics/metrics-usagestats-report.component.ts +++ b/src/app/pages/repository/metrics/metrics-usagestats-report.component.ts @@ -207,11 +207,11 @@ export class MetricsUsagestatsReportComponent implements OnInit { itemIdentifier: this.itemIdentifier, datasetIdentifier: this.datasetIdentifier, granularity: this.granularity, - metricTypes: metricTypes, - // totalItemRequests: this.totalItemRequests, - // totalItemInvestigations: this.totalItemInvestigations, - // uniqueItemRequests: this.uniqueItemRequests, - // uniqueItemInvestigations: this.uniqueItemInvestigations + // metricTypes: metricTypes, + totalItemRequests: this.totalItemRequests, + totalItemInvestigations: this.totalItemInvestigations, + uniqueItemRequests: this.uniqueItemRequests, + uniqueItemInvestigations: this.uniqueItemInvestigations } });