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 45-50 export default { Link Here
45
        return {
45
        return {
46
            license_count: null,
46
            license_count: null,
47
            initialized: false,
47
            initialized: false,
48
            column_filters: {
49
                vendor_id: this.$route.query.vendor_id || null,
50
            },
48
        }
51
        }
49
    },
52
    },
50
    beforeRouteEnter(to, from, next) {
53
    beforeRouteEnter(to, from, next) {
Lines 122-128 export default { Link Here
122
                window[av_cat] = map_av_dt_filter(av_cat)
125
                window[av_cat] = map_av_dt_filter(av_cat)
123
            })
126
            })
124
127
125
            $("#" + table_id).kohaTable(
128
            let table = $("#" + table_id).kohaTable(
126
                {
129
                {
127
                    ajax: {
130
                    ajax: {
128
                        url: "/api/v1/erm/licenses",
131
                        url: "/api/v1/erm/licenses",
Lines 140-145 export default { Link Here
140
                            },
143
                            },
141
                        },
144
                        },
142
                    ],
145
                    ],
146
                    iDeferLoading: true,
143
                    columns: [
147
                    columns: [
144
                        {
148
                        {
145
                            title: __("Name"),
149
                            title: __("Name"),
Lines 324-329 export default { Link Here
324
                license_table_settings,
328
                license_table_settings,
325
                1
329
                1
326
            )
330
            )
331
332
            let table_dt = table.DataTable()
333
            if (this.column_filters.vendor_id) {
334
                table
335
                    .find('thead tr:eq(1) th[data-filter="vendors"] select')
336
                    .val(this.column_filters.vendor_id)
337
                table_dt.column(1).search(this.column_filters.vendor_id)
338
            }
339
            table_dt.draw()
327
        },
340
        },
328
    },
341
    },
329
    props: {
342
    props: {
330
- 

Return to bug 33106