View | Details | Raw Unified | Return to bug 33103
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue (-1 / +1 lines)
Lines 31-37 Link Here
31
                                <v-select
31
                                <v-select
32
                                    id="agreement_vendor_id"
32
                                    id="agreement_vendor_id"
33
                                    v-model="agreement.vendor_id"
33
                                    v-model="agreement.vendor_id"
34
                                    label="name"
34
                                    label="display_name"
35
                                    :reduce="vendor => vendor.id"
35
                                    :reduce="vendor => vendor.id"
36
                                    :options="vendors"
36
                                    :options="vendors"
37
                                />
37
                                />
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesFormAdd.vue (-1 / +1 lines)
Lines 28-34 Link Here
28
                            <v-select
28
                            <v-select
29
                                id="package_vendor_id"
29
                                id="package_vendor_id"
30
                                v-model="erm_package.vendor_id"
30
                                v-model="erm_package.vendor_id"
31
                                label="name"
31
                                label="display_name"
32
                                :reduce="vendor => vendor.id"
32
                                :reduce="vendor => vendor.id"
33
                                :options="vendors"
33
                                :options="vendors"
34
                            />
34
                            />
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesFormAddResources.vue (-1 / +1 lines)
Lines 46-52 Link Here
46
                    <v-select
46
                    <v-select
47
                        :id="`resource_vendor_id_${counter}`"
47
                        :id="`resource_vendor_id_${counter}`"
48
                        v-model="resource.vendor_id"
48
                        v-model="resource.vendor_id"
49
                        label="name"
49
                        label="display_name"
50
                        :reduce="vendor => vendor.id"
50
                        :reduce="vendor => vendor.id"
51
                        :options="vendors"
51
                        :options="vendors"
52
                    />
52
                    />
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue (-1 / +1 lines)
Lines 31-37 Link Here
31
                                <v-select
31
                                <v-select
32
                                    id="license_vendor_id"
32
                                    id="license_vendor_id"
33
                                    v-model="license.vendor_id"
33
                                    v-model="license.vendor_id"
34
                                    label="name"
34
                                    label="display_name"
35
                                    :reduce="vendor => vendor.id"
35
                                    :reduce="vendor => vendor.id"
36
                                    :options="vendors"
36
                                    :options="vendors"
37
                                />
37
                                />
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue (-3 / +10 lines)
Lines 157-164 export default { Link Here
157
        const client = APIClient.acquisition
157
        const client = APIClient.acquisition
158
        client.vendors.getAll().then(
158
        client.vendors.getAll().then(
159
            vendors => {
159
            vendors => {
160
                this.vendorStore.vendors = vendors
160
                this.vendorStore.vendors = vendors.map(v => ({
161
                this.initialized = true
161
                    ...v,
162
                    display_name:
163
                        v.name +
164
                        (v.aliases.length > 0
165
                            ? " (" +
166
                              v.aliases.map(a => a.alias).join(", ") +
167
                              ")"
168
                            : ""),
169
                }))
162
            },
170
            },
163
            error => {}
171
            error => {}
164
        )
172
        )
165
- 

Return to bug 33103