Bug 34587: Usage statistics table column data
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / erm / erm.tt
1 [% USE raw %]
2 [% USE To %]
3 [% USE Asset %]
4 [% USE KohaDates %]
5 [% USE TablesSettings %]
6 [% PROCESS 'i18n.inc' %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10     [% t("E-resource management") | html %] &rsaquo;
11     [% t("Koha") | html %]
12 [% END %]</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 </head>
15
16 <body id="erm_agreements" class="erm">
17 [% WRAPPER 'header.inc' %]
18     [% INCLUDE 'erm-search.inc' %]
19 [% END %]
20
21 <div id="erm"> <!-- this is closed in intranet-bottom.inc -->
22
23 [% MACRO jsinclude BLOCK %]
24     [% INCLUDE 'calendar.inc' %]
25     [% INCLUDE 'datatables.inc' %]
26     [% INCLUDE 'columns_settings.inc' %]
27     [% INCLUDE 'js-patron-format.inc' %]
28     [% INCLUDE 'js-date-format.inc' %]
29
30     <script>
31
32         const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
33         const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
34         const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
35         const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
36         const usage_data_provider_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'usage_data_providers', 'usage_data_providers', 'json' ) | $raw %];
37         const title_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'titles', 'titles', 'json' ) | $raw %];
38         const counter_log_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'counter_logs', 'counter_logs', 'json' ) | $raw %];
39         const monthly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'monthly_usages', 'monthly_usages', 'json' ) | $raw %];
40         const yearly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'yearly_usages', 'yearly_usages', 'json' ) | $raw %];
41
42         const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
43
44         const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
45
46         const logged_in_user = [% To.json(logged_in_user.unblessed) | $raw %];
47
48     </script>
49
50     [% Asset.js("js/vue/dist/erm.js") | $raw %]
51
52 [% END %]
53 [% INCLUDE 'intranet-bottom.inc' %]