Bugzilla – Attachment 175146 Details for
Bug 23005
Specify notice language for vendors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23005: Add language field to the UI
Bug-23005-Add-language-field-to-the-UI.patch (text/plain), 4.17 KB, created by
Matt Blenkinsop
on 2024-12-04 10:17:11 UTC
(
hide
)
Description:
Bug 23005: Add language field to the UI
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-12-04 10:17:11 UTC
Size:
4.17 KB
patch
obsolete
>From b780ae54aa6ea124fa0ae8034abcb59cfd188fd8 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Fri, 18 Oct 2024 15:42:10 +0000 >Subject: [PATCH] Bug 23005: Add language field to the UI > >--- > api/v1/swagger/definitions/vendor.yaml | 5 +++++ > .../prog/js/vue/components/Vendors/Main.vue | 1 + > .../vue/components/Vendors/VendorDetails.vue | 21 ++++++++++++++++++- > .../prog/js/vue/stores/authorised-values.js | 1 + > 4 files changed, 27 insertions(+), 1 deletion(-) > >diff --git a/api/v1/swagger/definitions/vendor.yaml b/api/v1/swagger/definitions/vendor.yaml >index 0260d357d13..3132bca44b9 100644 >--- a/api/v1/swagger/definitions/vendor.yaml >+++ b/api/v1/swagger/definitions/vendor.yaml >@@ -119,6 +119,11 @@ properties: > - string > - "null" > description: Payment method >+ language: >+ type: >+ - string >+ - "null" >+ description: Language > aliases: > type: array > description: List of aliases >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/Main.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/Main.vue >index 7362c1af164..323e0d8d4c8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/Main.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/Main.vue >@@ -67,6 +67,7 @@ export default { > av_vendor_types: "VENDOR_TYPE", > av_vendor_interface_types: "VENDOR_INTERFACE_TYPE", > av_vendor_payment_methods: "VENDOR_PAYMENT_METHOD", >+ av_lang: "LANG", > } > > let av_cat_array = Object.keys(authorised_values).map(function ( >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue >index e455cb9d3d8..69333c90250 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue >@@ -60,6 +60,12 @@ > {{ vendor.accountnumber }} > </span> > </li> >+ <li v-if="vendor.language"> >+ <label>{{ $__("Language") }}:</label> >+ <span> >+ {{ get_lib_from_av("av_lang", vendor.language) }} >+ </span> >+ </li> > <li v-if="vendor.aliases.length"> > <label>{{ $__("Aliases") }}:</label> > <ul style="margin-left: 8rem"> >@@ -141,6 +147,18 @@ > /> > <input v-else id="vendor_type" v-model="vendor.type" /> > </li> >+ <li> >+ <label for="language">{{ $__("Language") }}:</label> >+ <v-select >+ v-if="av_lang.length" >+ id="language" >+ v-model="vendor.language" >+ label="description" >+ :reduce="av => av.value" >+ :options="av_lang" >+ /> >+ <input v-else id="language" v-model="vendor.type" /> >+ </li> > <li> > <label for="vendor_aliases">{{ $__("Aliases") }}:</label> > <input id="vendor_aliases" v-model="newAlias" /> >@@ -179,10 +197,11 @@ export default { > }, > setup() { > const AVStore = inject("AVStore") >- const { get_lib_from_av, av_vendor_types } = AVStore >+ const { get_lib_from_av, av_vendor_types, av_lang } = AVStore > return { > get_lib_from_av, > av_vendor_types, >+ av_lang, > } > }, > data() { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/authorised-values.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/authorised-values.js >index 39f58bd3e4f..09af394d86f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/authorised-values.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/authorised-values.js >@@ -45,6 +45,7 @@ export const useAVStore = defineStore("authorised_values", { > av_vendor_types: [], > av_vendor_interface_types: [], > av_vendor_payment_methods: [], >+ av_lang: [], > }), > actions: { > get_lib_from_av(arr_name, av) { >-- >2.39.3 (Apple Git-146)
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 23005
:
175144
|
175145
|
175146
|
182588
|
182589
|
182590