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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/erm/erm.tt (-30 / +28 lines)
Lines 21-57 Link Here
21
    [% INCLUDE 'erm-search.inc' %]
21
    [% INCLUDE 'erm-search.inc' %]
22
[% END %]
22
[% END %]
23
23
24
<div id="erm">
24
<div id="erm"></div>
25
    <!-- this is closed in intranet-bottom.inc -->
26
25
27
    [% MACRO jsinclude BLOCK %]
26
[% MACRO jsinclude BLOCK %]
28
        [% INCLUDE 'calendar.inc' %]
27
    [% INCLUDE 'calendar.inc' %]
29
        [% INCLUDE 'datatables.inc' %]
28
    [% INCLUDE 'datatables.inc' %]
30
        [% INCLUDE 'js-patron-format.inc' %]
29
    [% INCLUDE 'js-patron-format.inc' %]
31
        [% INCLUDE 'js-date-format.inc' %]
30
    [% INCLUDE 'js-date-format.inc' %]
32
        <script>
31
    <script>
33
            const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
32
        const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
34
            const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
33
        const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
35
            const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
34
        const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
36
            const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
35
        const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
37
            const usage_data_provider_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'usage_data_providers', 'usage_data_providers', 'json' ) | $raw %];
36
        const usage_data_provider_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'usage_data_providers', 'usage_data_providers', 'json' ) | $raw %];
38
            const title_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'titles', 'titles', 'json' ) | $raw %];
37
        const title_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'titles', 'titles', 'json' ) | $raw %];
39
            const counter_log_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'counter_logs', 'counter_logs', 'json' ) | $raw %];
38
        const counter_log_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'counter_logs', 'counter_logs', 'json' ) | $raw %];
40
            const monthly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'monthly_usages', 'monthly_usages', 'json' ) | $raw %];
39
        const monthly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'monthly_usages', 'monthly_usages', 'json' ) | $raw %];
41
            const yearly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'yearly_usages', 'yearly_usages', 'json' ) | $raw %];
40
        const yearly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'yearly_usages', 'yearly_usages', 'json' ) | $raw %];
42
41
43
            const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
42
        const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
44
43
45
            const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
44
        const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
46
45
47
            const logged_in_user = [% To.json(logged_in_user.unblessed) | $raw %];
46
        const logged_in_user = [% To.json(logged_in_user.unblessed) | $raw %];
48
        </script>
47
    </script>
49
        [% Asset.js("js/vue/dist/erm.js") | $raw %]
48
    [% Asset.js("js/vue/dist/erm.js") | $raw %]
50
        [% INCLUDE 'select2.inc' %]
49
    [% INCLUDE 'select2.inc' %]
51
        [% SET columns = ['cardnumber','name','category','branch','action'] %]
50
    [% SET columns = ['cardnumber','name','category','branch','action'] %]
52
        [% SET filter = "erm_users" %]
51
    [% SET filter = "erm_users" %]
53
        [% PROCESS patron_search_modal columns => columns, modal_title => t("Select user") %]
52
    [% PROCESS patron_search_modal columns => columns, modal_title => t("Select user") %]
54
        [% PROCESS patron_search_js columns => columns, actions => ["select"], preview_on_name_click => 1 %]
53
    [% PROCESS patron_search_js columns => columns, actions => ["select"], preview_on_name_click => 1 %]
55
    [% END %]
54
[% END %]
56
    [% INCLUDE 'intranet-bottom.inc' %]</div
55
[% INCLUDE 'intranet-bottom.inc' %]
57
>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/preservation/home.tt (-20 / +17 lines)
Lines 17-40 Link Here
17
    [% INCLUDE 'preservation-search.inc' %]
17
    [% INCLUDE 'preservation-search.inc' %]
18
[% END %]
18
[% END %]
19
19
20
<div id="preservation">
20
<div id="preservation"></div>
21
    <!-- this is closed in intranet-bottom.inc -->
22
21
23
    [% MACRO jsinclude BLOCK %]
22
[% MACRO jsinclude BLOCK %]
24
        [% INCLUDE 'calendar.inc' %]
23
    [% INCLUDE 'calendar.inc' %]
25
        [% INCLUDE 'datatables.inc' %]
24
    [% INCLUDE 'datatables.inc' %]
26
        [% INCLUDE 'js-patron-format.inc' %]
25
    [% INCLUDE 'js-patron-format.inc' %]
27
        [% INCLUDE 'js-date-format.inc' %]
26
    [% INCLUDE 'js-date-format.inc' %]
28
        [% INCLUDE 'js-biblio-format.inc' %]
27
    [% INCLUDE 'js-biblio-format.inc' %]
29
        <script>
28
    <script>
30
            const authorised_value_categories = [% To.json(AuthorisedValues.GetCategories()) | $raw %].map(c => c.category);
29
        const authorised_value_categories = [% To.json(AuthorisedValues.GetCategories()) | $raw %].map(c => c.category);
31
            const db_columns = [% To.json(db_columns) | $raw %];
30
        const db_columns = [% To.json(db_columns) | $raw %];
32
            const api_mappings = [% To.json(api_mappings) | $raw %];
31
        const api_mappings = [% To.json(api_mappings) | $raw %];
33
            const notice_templates = [% To.json(notice_templates || []) | $raw %];
32
        const notice_templates = [% To.json(notice_templates || []) | $raw %];
34
33
35
            const csrf_token = "[% Koha.GenerateCSRF | $raw %]";
34
        const csrf_token = "[% Koha.GenerateCSRF | $raw %]";
36
        </script>
35
    </script>
37
        [% Asset.js("js/vue/dist/preservation.js") | $raw %]
36
    [% Asset.js("js/vue/dist/preservation.js") | $raw %]
38
    [% END %]
37
[% END %]
39
    [% INCLUDE 'intranet-bottom.inc' %]</div
38
[% INCLUDE 'intranet-bottom.inc' %]
40
>
41
- 

Return to bug 39350