From 8cc8b2501e154e8761448271ad114d3d247a721b Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 30 May 2023 14:45:12 +0000 Subject: [PATCH] Bug 34587: Add reports by metric types Adds the ability to generate a report with the individual metric types as columns Signed-off-by: Jessica Zairo Signed-off-by: Michaela Sieber Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/erm_usage_titles.yaml | 2 +- .../ERM/UsageStatisticsReportBuilder.vue | 51 ++++++++++++------ .../ERM/UsageStatisticsReportsViewer.vue | 53 +++++++++++++------ 3 files changed, 71 insertions(+), 35 deletions(-) diff --git a/api/v1/swagger/paths/erm_usage_titles.yaml b/api/v1/swagger/paths/erm_usage_titles.yaml index 9e553de098..112af70d52 100644 --- a/api/v1/swagger/paths/erm_usage_titles.yaml +++ b/api/v1/swagger/paths/erm_usage_titles.yaml @@ -110,4 +110,4 @@ $ref: "../swagger.yaml#/definitions/error" x-koha-authorization: permissions: - erm: 1 \ No newline at end of file + erm: 1 diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue index ba92c58e53..2920a21d21 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue @@ -8,24 +8,28 @@
  1. {{ $__("Data display") }}:
  2. @@ -102,7 +106,9 @@ label="description" :reduce="month => month.value" :options="months_data" - :disabled="query.interval.includes('yearly')" + :disabled=" + query.data_display.includes('yearly') + " />
  3. @@ -128,7 +134,9 @@ label="description" :reduce="month => month.value" :options="months_data" - :disabled="query.interval.includes('yearly')" + :disabled=" + query.data_display.includes('yearly') + " />
  4. @@ -171,7 +179,7 @@
-
+

{{ $__("Select date display method") }}