Bug 32030: Add users to licenses - Preparation
[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 [% USE AuthorisedValues %]
7 [% SET footerjs = 1 %]
8 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>
11     E-Resource management &rsaquo; Koha
12 </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_statuses = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_STATUS')) | $raw %];
33
34         const agreement_closure_reasons = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_CLOSURE_REASON')) | $raw %];
35         const agreement_renewal_priorities = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_RENEWAL_PRIORITY')) | $raw %];
36         const user_roles = [% To.json(AuthorisedValues.Get('ERM_USER_ROLES')) | $raw %];
37
38         const license_types = [% To.json(AuthorisedValues.Get('ERM_LICENSE_TYPE')) | $raw %];
39         const license_statuses = [% To.json(AuthorisedValues.Get('ERM_LICENSE_STATUS')) | $raw %];
40
41         const agreement_license_statuses = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_LICENSE_STATUS')) | $raw %];
42         const agreement_license_location = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_LICENSE_LOCATION')) | $raw %];
43
44         const package_types = [% To.json(AuthorisedValues.Get('ERM_PACKAGE_TYPE')) | $raw %];
45         const package_content_types = [% To.json(AuthorisedValues.Get('ERM_PACKAGE_CONTENT_TYPE')) | $raw %];
46
47         const title_publication_types = [% To.json(AuthorisedValues.Get('ERM_TITLE_PUBLICATION_TYPE')) | $raw %];
48
49         const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
50         const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
51         const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
52         const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
53
54         const ERMProviders  = "[% Koha.Preference('ERMProviders') | html %]";
55         const erm_providers = ERMProviders.split(',');
56
57         const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
58
59         const ERMModule = [% IF Koha.Preference('ERMModule') %]true[% ELSE %]false[% END %];
60
61         const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
62
63     </script>
64
65     [% Asset.js("js/vue/dist/main.js") | $raw %]
66
67 [% END %]
68 [% INCLUDE 'intranet-bottom.inc' %]