]> git.koha-community.org Git - koha.git/commit
Bug 34587: Abstract reports backend to allow new data types
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 2 Aug 2023 09:20:23 +0000 (09:20 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Oct 2023 19:46:07 +0000 (16:46 -0300)
commit8987ff1591f05b1f34b8fc9318fad99d59c7a963
treee655b2f4781065d1dbfa76091d6cbde621f0a5d6
parentf57d5088c7366e1633d181ded7656450df1a319e
Bug 34587: Abstract reports backend to allow new data types

Now that harvesting is possible for platforms, databases and items we need to be able to generate reports for all of these data types. Currently the reporting backend structure is very geared towards titles. Rather than copying this for each different data type, this patch abstracts the code to accept the data type as a url parameter and use that to generate a report based on a given data type

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/ERM/UsageDataProvider.pm
Koha/REST/V1/ERM/CustomReports.pm [new file with mode: 0644]
Koha/REST/V1/ERM/UsageDataProviders.pm
Koha/REST/V1/ERM/UsageTitles.pm
api/v1/swagger/definitions/erm_custom_report.yaml [new file with mode: 0644]
api/v1/swagger/paths/erm_custom_reports.yaml [new file with mode: 0644]
api/v1/swagger/swagger.yaml
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportsViewer.vue