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 169-176 export default { Link Here
169
        const client = APIClient.acquisition
169
        const client = APIClient.acquisition
170
        client.vendors.getAll().then(
170
        client.vendors.getAll().then(
171
            vendors => {
171
            vendors => {
172
                this.vendorStore.vendors = vendors
172
                this.vendorStore.vendors = vendors.map(v => ({
173
                this.initialized = true
173
                    ...v,
174
                    display_name:
175
                        v.name +
176
                        (v.aliases.length > 0
177
                            ? " (" +
178
                              v.aliases.map(a => a.alias).join(", ") +
179
                              ")"
180
                            : ""),
181
                }))
174
            },
182
            },
175
            error => {}
183
            error => {}
176
        )
184
        )
177
- 

Return to bug 33103