Bugzilla – Attachment 175782 Details for
Bug 38290
Add library group limits to vendors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38290: Add library group api client
Bug-38290-Add-library-group-api-client.patch (text/plain), 2.19 KB, created by
Matt Blenkinsop
on 2024-12-19 16:30:32 UTC
(
hide
)
Description:
Bug 38290: Add library group api client
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-12-19 16:30:32 UTC
Size:
2.19 KB
patch
obsolete
>From a851c32c7260f744c20c9f11ccf7e460726b53ae Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Tue, 29 Oct 2024 16:52:34 +0000 >Subject: [PATCH] Bug 38290: Add library group api client > >(cherry picked from commit 67277c0bc4da4ac3bafd436c77b49bc7884e3f5b) >--- > .../prog/js/vue/fetch/api-client.js | 2 ++ > .../prog/js/vue/fetch/library-api-client.js | 22 +++++++++++++++++++ > 2 files changed, 24 insertions(+) > create mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js >index 7e10da71eae..b37987f28f8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js >@@ -7,6 +7,7 @@ import ItemAPIClient from "./item-api-client"; > import RecordSourcesAPIClient from "./record-sources-api-client"; > import SysprefAPIClient from "./system-preferences-api-client"; > import PreservationAPIClient from "./preservation-api-client"; >+import LibraryAPIClient from "./library-api-client"; > > export const APIClient = { > erm: new ERMAPIClient(), >@@ -18,4 +19,5 @@ export const APIClient = { > sysprefs: new SysprefAPIClient(), > preservation: new PreservationAPIClient(), > record_sources: new RecordSourcesAPIClient(), >+ libraries: new LibraryAPIClient(), > }; >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js >new file mode 100644 >index 00000000000..46906dd1493 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js >@@ -0,0 +1,22 @@ >+import HttpClient from "./http-client"; >+ >+export class LibraryAPIClient extends HttpClient { >+ constructor() { >+ super({ >+ baseURL: "/api/v1/library_groups", >+ }); >+ } >+ >+ get libraryGroups() { >+ return { >+ getAll: (query, params) => >+ this.getAll({ >+ endpoint: "", >+ query, >+ params, >+ }), >+ }; >+ } >+} >+ >+export default LibraryAPIClient; >-- >2.39.5 (Apple Git-154)
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 38290
:
175155
|
175156
|
175157
|
175158
|
175159
|
175160
|
175161
|
175779
|
175780
|
175781
| 175782 |
175783
|
175784
|
175785
|
175786
|
175787