]> git.koha-community.org Git - koha.git/commit
Bug 37856: Add service_platform field
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Wed, 18 Sep 2024 15:56:19 +0000 (15:56 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 27 Sep 2024 16:00:37 +0000 (18:00 +0200)
commitb852c042feff417c745e2166c26f84b22456b14a
treef8038a24171874ea84257d3fe2ec26d7a0fe4627
parent2e4b1ca42f7a940e8329ed860dda102deb629db0
Bug 37856: Add service_platform field

The change from this patch itself should be self-explanatory.
Testing for this requires credentials to a specific provider.
But the parameter is only added to the URL if defined.

Test plan, ktd, apply patch, run:
$ yarn js:build
$ yarn api:bundle
$ koha-plack --restart kohadev

1) Enable ERMModule
2) Create a new provider, visit:
<staff_url>/cgi-bin/koha/erm/eusage/usage_data_providers/add
3) Ensure 'Service platform' now shows. Create the provider and put something in this field.
4) View the provider, ensure the field is shown, visit:
<staff_url>/cgi-bin/koha/erm/eusage/usage_data_providers/1

Ensure all tests are still passing:
$ cypress run --spec t/cypress/integration/ERM/DataProviders_spec.ts
$ prove t/db_dependent/api/v1/erm_usage_*

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
api/v1/swagger/definitions/erm_usage_data_provider.yaml
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue