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 658-680 export default { Link Here
658
            table_settings: agreement_table_settings,
658
            table_settings: agreement_table_settings,
659
            add_filters: true,
659
            add_filters: true,
660
            filters_options: {
660
            filters_options: {
661
                2: [
661
                vendor_id: [
662
                    ...vendors.value.map(e => {
662
                    ...vendors.value.map(e => {
663
                        e["_id"] = e["id"];
663
                        e["_id"] = e["id"];
664
                        e["_str"] = e["name"];
664
                        e["_str"] = e["name"];
665
                        return e;
665
                        return e;
666
                    }),
666
                    }),
667
                ],
667
                ],
668
                4: () => baseResource.map_av_dt_filter("av_agreement_statuses"),
668
                status: baseResource.map_av_dt_filter("av_agreement_statuses"),
669
                5: () =>
669
                closure_reason: baseResource.map_av_dt_filter(
670
                    baseResource.map_av_dt_filter(
670
                    "av_agreement_closure_reasons"
671
                        "av_agreement_closure_reasons"
671
                ),
672
                    ),
672
                is_perpetual: [
673
                6: [
674
                    { _id: 0, _str: $__("No") },
673
                    { _id: 0, _str: $__("No") },
675
                    { _id: 1, _str: $__("Yes") },
674
                    { _id: 1, _str: $__("Yes") },
676
                ],
675
                ],
677
                7: () =>
676
                renewal_priority: () =>
678
                    baseResource.map_av_dt_filter(
677
                    baseResource.map_av_dt_filter(
679
                        "av_agreement_renewal_priorities"
678
                        "av_agreement_renewal_priorities"
680
                    ),
679
                    ),
(-)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
                        "av_title_publication_types"
191
                        "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 451-457 export default { Link Here
451
            table_settings: eholdings_titles_table_settings,
451
            table_settings: eholdings_titles_table_settings,
452
            add_filters: true,
452
            add_filters: true,
453
            filters_options: {
453
            filters_options: {
454
                3: () =>
454
                publication_type: () =>
455
                    baseResource.map_av_dt_filter("av_title_publication_types"),
455
                    baseResource.map_av_dt_filter("av_title_publication_types"),
456
            },
456
            },
457
            actions: {
457
            actions: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicenseResource.vue (-3 / +4 lines)
Lines 295-309 export default { Link Here
295
            table_settings: license_table_settings,
295
            table_settings: license_table_settings,
296
            add_filters: true,
296
            add_filters: true,
297
            filters_options: {
297
            filters_options: {
298
                2: [
298
                vendor_id: [
299
                    ...vendors.value.map(e => {
299
                    ...vendors.value.map(e => {
300
                        e["_id"] = e["id"];
300
                        e["_id"] = e["id"];
301
                        e["_str"] = e["name"];
301
                        e["_str"] = e["name"];
302
                        return e;
302
                        return e;
303
                    }),
303
                    }),
304
                ],
304
                ],
305
                4: () => baseResource.map_av_dt_filter("av_license_types"),
305
                type: () => baseResource.map_av_dt_filter("av_license_types"),
306
                5: () => baseResource.map_av_dt_filter("av_license_statuses"),
306
                status: () =>
307
                    baseResource.map_av_dt_filter("av_license_statuses"),
307
            },
308
            },
308
            actions: {
309
            actions: {
309
                "-1": ["edit", "delete"],
310
                "-1": ["edit", "delete"],
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue (-1 / +12 lines)
Lines 246-254 export default { Link Here
246
        const tableOptionsWithColumns = computed(() => {
246
        const tableOptionsWithColumns = computed(() => {
247
            props.instancedResource.tableOptions.columns = getTableColumns(
247
            props.instancedResource.tableOptions.columns = getTableColumns(
248
                props.instancedResource.resourceAttrs
248
                props.instancedResource.resourceAttrs
249
            );
249
            ).map(col => {
250
                const filterOptions =
251
                    props.instancedResource.tableOptions.filters_options;
252
                const filterRequired = Object.keys(filterOptions).includes(
253
                    col.data
254
                );
255
                if (filterRequired) {
256
                    col.dataFilter = col.data;
257
                }
258
                return col;
259
            });
250
            return props.instancedResource.tableOptions;
260
            return props.instancedResource.tableOptions;
251
        });
261
        });
262
252
        const tableEventList = computed(() => {
263
        const tableEventList = computed(() => {
253
            const actionButtons = props.instancedResource.tableOptions.actions[
264
            const actionButtons = props.instancedResource.tableOptions.actions[
254
                "-1"
265
                "-1"
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue (-3 / +3 lines)
Lines 679-687 export default { Link Here
679
            add_filters: true,
679
            add_filters: true,
680
            filters_options: {
680
            filters_options: {
681
                ...(baseResource.map_av_dt_filter("av_vendor_types").length && {
681
                ...(baseResource.map_av_dt_filter("av_vendor_types").length && {
682
                    2: () => baseResource.map_av_dt_filter("av_vendor_types"),
682
                    type: () =>
683
                        baseResource.map_av_dt_filter("av_vendor_types"),
683
                }),
684
                }),
684
                3: [
685
                active: [
685
                    { _id: 0, _str: $__("Inactive") },
686
                    { _id: 0, _str: $__("Inactive") },
686
                    { _id: 1, _str: $__("Active") },
687
                    { _id: 1, _str: $__("Active") },
687
                ],
688
                ],
688
- 

Return to bug 38311