Bugzilla – Attachment 149518 Details for
Bug 33408
Fetch sysprefs from svc/config/systempreferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33408: Move providers into syspref array
Bug-33408-Move-providers-into-syspref-array.patch (text/plain), 5.13 KB, created by
Pedro Amorim
on 2023-04-12 09:45:14 UTC
(
hide
)
Description:
Bug 33408: Move providers into syspref array
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-04-12 09:45:14 UTC
Size:
5.13 KB
patch
obsolete
>From 8f2b9f3d3a0082f71a0affbe92373fbf483898e2 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 12 Apr 2023 09:42:29 +0000 >Subject: [PATCH] Bug 33408: Move providers into syspref array > >ERMProviders is a sys pref, place it in sysprefs > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > .../js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue | 6 +++--- > .../js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue | 6 +++--- > .../intranet-tmpl/prog/js/vue/components/ERM/Main.vue | 7 +++---- > koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js | 2 +- > 4 files changed, 10 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue >index 9cffce6f7eb..d2573e988fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue >@@ -82,7 +82,7 @@ export default { > const { get_lib_from_av, map_av_dt_filter } = AVStore > > const ERMStore = inject("ERMStore") >- const { providers } = ERMStore >+ const { sysprefs } = ERMStore > > const table = ref() > const filters = reactive({ >@@ -98,7 +98,7 @@ export default { > get_lib_from_av, > escape_str, > map_av_dt_filter, >- providers, >+ sysprefs, > table, > } > }, >@@ -168,7 +168,7 @@ export default { > this.show_table = true > this.local_count_packages = null > >- if (this.providers.includes("local")) { >+ if (this.sysprefs.ERMProviders.includes("local")) { > const client = APIClient.erm > const query = this.filters > ? { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >index be1333af6da..c29c9a2783a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue >@@ -85,7 +85,7 @@ export default { > const { get_lib_from_av } = AVStore > > const ERMStore = inject("ERMStore") >- const { providers } = ERMStore >+ const { sysprefs } = ERMStore > > const table = ref() > const filters = reactive({ >@@ -99,7 +99,7 @@ export default { > av_title_publication_types, > get_lib_from_av, > escape_str, >- providers, >+ sysprefs, > table, > } > }, >@@ -178,7 +178,7 @@ export default { > "/api/v1/erm/eholdings/ebsco/titles" > ) > } >- if (this.providers.includes("local")) { >+ if (this.sysprefs.ERMProviders.includes("local")) { > const client = APIClient.erm > > const q = this.filters >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >index ded1dae20c3..9f4a1c99dde 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >@@ -48,7 +48,7 @@ > <li> > <ul> > <li >- v-for="provider in providers" >+ v-for="provider in sysprefs.ERMProviders" > :key="provider" > > > <router-link >@@ -138,14 +138,13 @@ export default { > > const ERMStore = inject("ERMStore") > >- const { sysprefs, providers } = storeToRefs(ERMStore) >+ const { sysprefs } = storeToRefs(ERMStore) > > return { > vendorStore, > AVStore, > ERMStore, > sysprefs, >- providers, > setError, > loading, > loaded, >@@ -214,7 +213,7 @@ export default { > promises.push( > sysprefs_client.sysprefs.get("ERMProviders").then( > providers => { >- this.providers = providers.value.split(",") >+ this.sysprefs.ERMProviders = providers.value.split(",") > }, > error => {} > ) >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js >index 91a42d0c014..0b759b8741a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js >@@ -4,7 +4,7 @@ export const useERMStore = defineStore("erm", { > state: () => ({ > sysprefs: { > ERMModule: false, >+ ERMProviders: [], > }, >- providers: [], > }), > }); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33408
:
149131
|
149132
|
149133
|
149134
|
149184
|
149185
|
149186
|
149196
|
149197
|
149198
|
149200
|
149204
|
149205
|
149206
|
149207
|
149208
|
149209
|
149254
|
149438
|
149516
|
149517
|
149518
|
149535
|
149536
|
149537
|
149538
|
149539
|
149540
|
149541
|
149542
|
149543
|
149570