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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementResource.vue (-8 / +7 lines)
Lines 653-675 export default { Link Here
653
            table_settings: agreement_table_settings,
653
            table_settings: agreement_table_settings,
654
            add_filters: true,
654
            add_filters: true,
655
            filters_options: {
655
            filters_options: {
656
                2: [
656
                vendor_id: [
657
                    ...vendors.value.map(e => {
657
                    ...vendors.value.map(e => {
658
                        e["_id"] = e["id"];
658
                        e["_id"] = e["id"];
659
                        e["_str"] = e["name"];
659
                        e["_str"] = e["name"];
660
                        return e;
660
                        return e;
661
                    }),
661
                    }),
662
                ],
662
                ],
663
                4: () => baseResource.map_av_dt_filter("av_agreement_statuses"),
663
                status: baseResource.map_av_dt_filter("av_agreement_statuses"),
664
                5: () =>
664
                closure_reason: baseResource.map_av_dt_filter(
665
                    baseResource.map_av_dt_filter(
665
                    "av_agreement_closure_reasons"
666
                        "av_agreement_closure_reasons"
666
                ),
667
                    ),
667
                is_perpetual: [
668
                6: [
669
                    { _id: 0, _str: $__("No") },
668
                    { _id: 0, _str: $__("No") },
670
                    { _id: 1, _str: $__("Yes") },
669
                    { _id: 1, _str: $__("Yes") },
671
                ],
670
                ],
672
                7: () =>
671
                renewal_priority: () =>
673
                    baseResource.map_av_dt_filter(
672
                    baseResource.map_av_dt_filter(
674
                        "av_agreement_renewal_priorities"
673
                        "av_agreement_renewal_priorities"
675
                    ),
674
                    ),
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackageTitlesList.vue (-1 / +2 lines)
Lines 154-160 export default { Link Here
154
                ],
154
                ],
155
            },
155
            },
156
            filters_options: {
156
            filters_options: {
157
                1: () => map_av_dt_filter("av_title_publication_types"),
157
                publication_type: () =>
158
                    map_av_dt_filter("av_title_publication_types"),
158
            },
159
            },
159
            actions: { 0: ["show"] },
160
            actions: { 0: ["show"] },
160
            default_filters: {
161
            default_filters: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue (-1 / +1 lines)
Lines 186-192 export default { Link Here
186
                ],
186
                ],
187
            },
187
            },
188
            filters_options: {
188
            filters_options: {
189
                1: () =>
189
                publication_type: () =>
190
                    map_av_dt_filter(
190
                    map_av_dt_filter(
191
                        "authorisedValues.av_title_publication_types"
191
                        "authorisedValues.av_title_publication_types"
192
                    ),
192
                    ),
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackageResource.vue (-3 / +4 lines)
Lines 193-207 export default { Link Here
193
            table_settings: eholdings_packages_table_settings,
193
            table_settings: eholdings_packages_table_settings,
194
            add_filters: true,
194
            add_filters: true,
195
            filters_options: {
195
            filters_options: {
196
                1: [
196
                vendor_id: [
197
                    ...vendors.value.map(e => {
197
                    ...vendors.value.map(e => {
198
                        e["_id"] = e["id"];
198
                        e["_id"] = e["id"];
199
                        e["_str"] = e["name"];
199
                        e["_str"] = e["name"];
200
                        return e;
200
                        return e;
201
                    }),
201
                    }),
202
                ],
202
                ],
203
                2: () => baseResource.map_av_dt_filter("av_package_types"),
203
                package_type: () =>
204
                3: () =>
204
                    baseResource.map_av_dt_filter("av_package_types"),
205
                content_type: () =>
205
                    baseResource.map_av_dt_filter("av_package_content_types"),
206
                    baseResource.map_av_dt_filter("av_package_content_types"),
206
            },
207
            },
207
            actions: {
208
            actions: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitleResource.vue (-1 / +1 lines)
Lines 450-456 export default { Link Here
450
            table_settings: eholdings_titles_table_settings,
450
            table_settings: eholdings_titles_table_settings,
451
            add_filters: true,
451
            add_filters: true,
452
            filters_options: {
452
            filters_options: {
453
                3: () =>
453
                publication_type: () =>
454
                    baseResource.map_av_dt_filter("av_title_publication_types"),
454
                    baseResource.map_av_dt_filter("av_title_publication_types"),
455
            },
455
            },
456
            actions: {
456
            actions: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicenseResource.vue (-3 / +4 lines)
Lines 292-306 export default { Link Here
292
            table_settings: license_table_settings,
292
            table_settings: license_table_settings,
293
            add_filters: true,
293
            add_filters: true,
294
            filters_options: {
294
            filters_options: {
295
                2: [
295
                vendor_id: [
296
                    ...vendors.value.map(e => {
296
                    ...vendors.value.map(e => {
297
                        e["_id"] = e["id"];
297
                        e["_id"] = e["id"];
298
                        e["_str"] = e["name"];
298
                        e["_str"] = e["name"];
299
                        return e;
299
                        return e;
300
                    }),
300
                    }),
301
                ],
301
                ],
302
                4: () => baseResource.map_av_dt_filter("av_license_types"),
302
                type: () => baseResource.map_av_dt_filter("av_license_types"),
303
                5: () => baseResource.map_av_dt_filter("av_license_statuses"),
303
                status: () =>
304
                    baseResource.map_av_dt_filter("av_license_statuses"),
304
            },
305
            },
305
            actions: {
306
            actions: {
306
                0: ["show"],
307
                0: ["show"],
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue (-1 / +12 lines)
Lines 235-243 export default { Link Here
235
        const tableOptionsWithColumns = computed(() => {
235
        const tableOptionsWithColumns = computed(() => {
236
            props.instancedResource.tableOptions.columns = getTableColumns(
236
            props.instancedResource.tableOptions.columns = getTableColumns(
237
                props.instancedResource.resourceAttrs
237
                props.instancedResource.resourceAttrs
238
            );
238
            ).map(col => {
239
                const filterOptions =
240
                    props.instancedResource.tableOptions.filters_options;
241
                const filterRequired = Object.keys(filterOptions).includes(
242
                    col.data
243
                );
244
                if (filterRequired) {
245
                    col.dataFilter = col.data;
246
                }
247
                return col;
248
            });
239
            return props.instancedResource.tableOptions;
249
            return props.instancedResource.tableOptions;
240
        });
250
        });
251
241
        const tableEventList = computed(() => {
252
        const tableEventList = computed(() => {
242
            const actionButtons = props.instancedResource.tableOptions.actions[
253
            const actionButtons = props.instancedResource.tableOptions.actions[
243
                "-1"
254
                "-1"
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue (-3 / +3 lines)
Lines 665-673 export default { Link Here
665
            add_filters: true,
665
            add_filters: true,
666
            filters_options: {
666
            filters_options: {
667
                ...(baseResource.map_av_dt_filter("av_vendor_types").length && {
667
                ...(baseResource.map_av_dt_filter("av_vendor_types").length && {
668
                    2: () => baseResource.map_av_dt_filter("av_vendor_types"),
668
                    type: () =>
669
                        baseResource.map_av_dt_filter("av_vendor_types"),
669
                }),
670
                }),
670
                3: [
671
                active: [
671
                    { _id: 0, _str: $__("Inactive") },
672
                    { _id: 0, _str: $__("Inactive") },
672
                    { _id: 1, _str: $__("Active") },
673
                    { _id: 1, _str: $__("Active") },
673
                ],
674
                ],
674
- 

Return to bug 38311