Bugzilla – Attachment 147957 Details for
Bug 33066
We need a KohaTable Vue component
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33066: (follow-up) Use KohaTable for EHoldingsLocalTitlePackagesList
Bug-33066-follow-up-Use-KohaTable-for-EHoldingsLoc.patch (text/plain), 2.67 KB, created by
Jonathan Druart
on 2023-03-08 14:47:03 UTC
(
hide
)
Description:
Bug 33066: (follow-up) Use KohaTable for EHoldingsLocalTitlePackagesList
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-03-08 14:47:03 UTC
Size:
2.67 KB
patch
obsolete
>From 57f6a5dc4d439cb50176f16583fdbfb5f85601da Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 8 Mar 2023 15:39:17 +0100 >Subject: [PATCH] Bug 33066: (follow-up) Use KohaTable for > EHoldingsLocalTitlePackagesList > >--- > .../ERM/EHoldingsLocalPackagesList.vue | 24 +++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >index 5e164c2cb73..d06e7dea59c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >@@ -25,7 +25,7 @@ > > <script> > import Toolbar from "./EHoldingsLocalPackagesToolbar.vue" >-import { inject, ref } from "vue" >+import { inject, ref, reactive } from "vue" > import { storeToRefs } from "pinia" > import { APIClient } from "../../fetch/api-client.js" > import { useDataTable } from "../../composables/datatables" >@@ -42,12 +42,17 @@ export default { > const { setConfirmationDialog, setMessage } = inject("mainStore") > > const table = ref() >+ const filters = reactive({ >+ package_name: "", >+ content_type: "", >+ }) > > return { > vendors, > get_lib_from_av, > map_av_dt_filter, > table, >+ filters, > setConfirmationDialog, > setMessage, > escape_str, >@@ -55,13 +60,28 @@ export default { > } > }, > data: function () { >+ this.filters = { >+ package_name: this.$route.query.package_name || "", >+ content_type: this.$route.query.content_type || "", >+ } >+ let filters = this.filters > return { > package_count: [], > initialized: false, > tableOptions: { > columns: this.getTableColumns(), > url: "/api/v1/erm/eholdings/local/packages", >- options: { embed: "resources+count,vendor.name" }, >+ options: { >+ embed: "resources+count,vendor.name", >+ searchCols: [ >+ { search: filters.package_name }, >+ null, >+ null, >+ { search: filters.content_type }, >+ null, >+ null, >+ ], >+ }, > table_settings: this.eholdings_packages_table_settings, > add_filters: true, > filters_options: { >-- >2.25.1
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 33066
:
147352
|
147353
|
147354
|
147692
|
147693
|
147694
|
147713
|
147846
|
147847
|
147848
|
147849
|
147850
|
147851
|
147852
|
147853
|
147855
|
147856
|
147857
|
147858
|
147862
|
147865
|
147902
|
147903
|
147904
|
147905
|
147906
|
147907
|
147908
|
147909
|
147910
|
147911
|
147912
|
147913
|
147914
|
147915
|
147916
|
147917
|
147918
|
147921
|
147922
|
147923
|
147925
|
147926
|
147928
|
147957
|
147960
|
147971
|
147972
|
148718
|
149158
|
149159
|
149160
|
149161
|
149162
|
149163
|
149164
|
149165
|
149166
|
149167
|
149168
|
149169
|
149170
|
149171
|
149172
|
149173
|
149174
|
149175
|
149176
|
149177
|
149178
|
149179
|
149180
|
149181
|
149182
|
149183