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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue (-64 / +65 lines)
Lines 163-171 export default { Link Here
163
            splitScreenGroupings: [
163
            splitScreenGroupings: [
164
                { name: "Details", pane: 1 },
164
                { name: "Details", pane: 1 },
165
                { name: "Aliases", pane: 1 },
165
                { name: "Aliases", pane: 1 },
166
                { name: "Contacts", pane: 2 },
166
                { name: "Ordering information", pane: 2 },
167
                { name: "Interfaces", pane: 2 },
167
                { name: "Interfaces", pane: 2 },
168
                { name: "Ordering information", pane: 1 },
169
            ],
168
            ],
170
            additionalToolbarButtons,
169
            additionalToolbarButtons,
171
            defaultToolbarButtons,
170
            defaultToolbarButtons,
Lines 283-348 export default { Link Here
283
                    name: "contacts",
282
                    name: "contacts",
284
                    type: "relationshipWidget",
283
                    type: "relationshipWidget",
285
                    group: $__("Contacts"),
284
                    group: $__("Contacts"),
286
                    showElement: {
287
                        type: "table",
288
                        columnData: "contacts",
289
                        hidden: vendor => !!vendor.contacts?.length,
290
                        columns: [
291
                            {
292
                                name: $__("Name"),
293
                                value: "name",
294
                            },
295
                            {
296
                                name: $__("Position"),
297
                                value: "role",
298
                            },
299
                            {
300
                                name: $__("Phone"),
301
                                value: "phone",
302
                            },
303
                            {
304
                                name: $__("Alternative phone"),
305
                                value: "altphone",
306
                            },
307
                            {
308
                                name: $__("Fax"),
309
                                value: "fax",
310
                            },
311
                            {
312
                                name: $__("Email"),
313
                                value: "email",
314
                            },
315
                            {
316
                                name: $__("Notes"),
317
                                value: "notes",
318
                            },
319
                            {
320
                                name: $__("Primary acquisitions contact"),
321
                                value: "acqprimary",
322
                                format: handleContactOptions,
323
                            },
324
                            {
325
                                name: $__("Contact when ordering"),
326
                                value: "orderacquisition",
327
                                format: handleContactOptions,
328
                            },
329
                            {
330
                                name: $__("Contact about late orders"),
331
                                value: "claimacquisition",
332
                                format: handleContactOptions,
333
                            },
334
                            {
335
                                name: $__("Primary serials contact"),
336
                                value: "serialsprimary",
337
                                format: handleContactOptions,
338
                            },
339
                            {
340
                                name: $__("Contact about late issues"),
341
                                value: "claimissues",
342
                                format: handleContactOptions,
343
                            },
344
                        ],
345
                    },
346
                    componentProps: {
285
                    componentProps: {
347
                        resourceRelationships: {
286
                        resourceRelationships: {
348
                            resourceProperty: "contacts",
287
                            resourceProperty: "contacts",
Lines 427-433 export default { Link Here
427
                            hideIn: ["List", "Show"],
366
                            hideIn: ["List", "Show"],
428
                        },
367
                        },
429
                    ],
368
                    ],
430
                    hideIn: ["List"],
369
                    hideIn: ["List", "Show"],
431
                },
370
                },
432
                {
371
                {
433
                    name: "interfaces",
372
                    name: "interfaces",
Lines 847-852 export default { Link Here
847
        const appendToShow = componentData => {
786
        const appendToShow = componentData => {
848
            let formatDate = format_date;
787
            let formatDate = format_date;
849
            return [
788
            return [
789
                {
790
                    name: $__("Contacts"),
791
                    showElement: {
792
                        type: "table",
793
                        columnData: "contacts",
794
                        hidden: vendor => !!vendor.contacts?.length,
795
                        columns: [
796
                            {
797
                                name: $__("Name"),
798
                                value: "name",
799
                            },
800
                            {
801
                                name: $__("Position"),
802
                                value: "position",
803
                            },
804
                            {
805
                                name: $__("Phone"),
806
                                value: "phone",
807
                            },
808
                            {
809
                                name: $__("Alternative phone"),
810
                                value: "altphone",
811
                            },
812
                            {
813
                                name: $__("Fax"),
814
                                value: "fax",
815
                            },
816
                            {
817
                                name: $__("Email"),
818
                                value: "email",
819
                            },
820
                            {
821
                                name: $__("Notes"),
822
                                value: "notes",
823
                            },
824
                            {
825
                                name: $__("Primary acquisitions contact"),
826
                                value: "acqprimary",
827
                                format: handleContactOptions,
828
                            },
829
                            {
830
                                name: $__("Contact when ordering"),
831
                                value: "orderacquisition",
832
                                format: handleContactOptions,
833
                            },
834
                            {
835
                                name: $__("Contact about late orders"),
836
                                value: "claimacquisition",
837
                                format: handleContactOptions,
838
                            },
839
                            {
840
                                name: $__("Primary serials contact"),
841
                                value: "serialsprimary",
842
                                format: handleContactOptions,
843
                            },
844
                            {
845
                                name: $__("Contact about late issues"),
846
                                value: "claimissues",
847
                                format: handleContactOptions,
848
                            },
849
                        ],
850
                    },
851
                },
850
                {
852
                {
851
                    type: "component",
853
                    type: "component",
852
                    name: $__("Contracts"),
854
                    name: $__("Contracts"),
853
- 

Return to bug 40942