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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/vendor-menu.inc (+5 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% IF ( booksellerid ) %]
2
[% IF ( booksellerid ) %]
2
<div id="menu">
3
<div id="menu">
3
    <ul>
4
    <ul>
Lines 10-15 Link Here
10
        [% ELSE %]
11
        [% ELSE %]
11
        <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&amp;owner=1">Uncertain prices</a></li>
12
        <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid | uri %]&amp;owner=1">Uncertain prices</a></li>
12
        [% END %] [% END %]
13
        [% END %] [% END %]
14
15
        [% IF Koha.Preference('ERMModule') && ( CAN_user_erm_erm_licensing || CAN_user_erm_erm_admin || CAN_user_erm_erm_show ) %]
16
        <li><a href="/cgi-bin/koha/erm/licenses?vendor_id=[% booksellerid | uri %]">Licenses</a></li>
17
        [% END %]
13
    </ul>
18
    </ul>
14
</div>
19
</div>
15
[% END %]
20
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue (-2 / +14 lines)
Lines 41-46 export default { Link Here
41
        return {
41
        return {
42
            licenses: [],
42
            licenses: [],
43
            initialized: false,
43
            initialized: false,
44
            column_filters: {
45
                vendor_id: this.$route.query.vendor_id || null,
46
            },
44
        }
47
        }
45
    },
48
    },
46
    beforeRouteEnter(to, from, next) {
49
    beforeRouteEnter(to, from, next) {
Lines 91-97 export default { Link Here
91
                window[av_cat] = map_av_dt_filter(av_cat)
94
                window[av_cat] = map_av_dt_filter(av_cat)
92
            })
95
            })
93
96
94
            $("#" + table_id).kohaTable(
97
            let table = $("#" + table_id).kohaTable(
95
                {
98
                {
96
                    ajax: {
99
                    ajax: {
97
                        url: "/api/v1/erm/licenses",
100
                        url: "/api/v1/erm/licenses",
Lines 109-114 export default { Link Here
109
                            },
112
                            },
110
                        },
113
                        },
111
                    ],
114
                    ],
115
                    iDeferLoading: true,
112
                    columns: [
116
                    columns: [
113
                        {
117
                        {
114
                            title: __("Name"),
118
                            title: __("Name"),
Lines 289-294 export default { Link Here
289
                license_table_settings,
293
                license_table_settings,
290
                1
294
                1
291
            )
295
            )
296
297
            let table_dt = table.DataTable()
298
            if (this.column_filters.vendor_id) {
299
                table
300
                    .find('thead tr:eq(1) th[data-filter="vendors"] select')
301
                    .val(this.column_filters.vendor_id)
302
                table_dt.column(1).search(this.column_filters.vendor_id)
303
            }
304
            table_dt.draw()
292
        },
305
        },
293
    },
306
    },
294
    props: {
307
    props: {
295
- 

Return to bug 33106