432bd5ac446d1c5048a9998556891497ddddb61e
[srvgit] / 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 [% INCLUDE 'doc-head-open.inc' %]
9 <title>
10     E-Resource management &rsaquo; Koha
11 </title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 </head>
14
15 <body id="erm_agreements" class="erm">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'erm-search.inc' %]
18
19 <div id="erm"> <!-- this is closed in intranet-bottom.inc -->
20
21 [% MACRO jsinclude BLOCK %]
22     [% INCLUDE 'calendar.inc' %]
23     [% INCLUDE 'datatables.inc' %]
24     [% INCLUDE 'columns_settings.inc' %]
25     [% INCLUDE 'js-patron-format.inc' %]
26     [% INCLUDE 'js-date-format.inc' %]
27
28     <script>
29
30         const agreement_statuses = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_STATUS')) | $raw %];
31
32         const agreement_closure_reasons = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_CLOSURE_REASON')) | $raw %];
33         const agreement_renewal_priorities = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_RENEWAL_PRIORITY')) | $raw %];
34         const agreement_user_roles = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_USER_ROLES')) | $raw %];
35
36         const license_types = [% To.json(AuthorisedValues.Get('ERM_LICENSE_TYPE')) | $raw %];
37         const license_statuses = [% To.json(AuthorisedValues.Get('ERM_LICENSE_STATUS')) | $raw %];
38
39         const agreement_license_statuses = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_LICENSE_STATUS')) | $raw %];
40         const agreement_license_location = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_LICENSE_LOCATION')) | $raw %];
41
42         const package_types = [% To.json(AuthorisedValues.Get('ERM_PACKAGE_TYPE')) | $raw %];
43         const package_content_types = [% To.json(AuthorisedValues.Get('ERM_PACKAGE_CONTENT_TYPE')) | $raw %];
44
45         const title_publication_types = [% To.json(AuthorisedValues.Get('ERM_TITLE_PUBLICATION_TYPE')) | $raw %];
46
47         const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
48         const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
49         const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
50         const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
51
52         const erm_provider = "[% Koha.Preference('ERMProvider') | html %]";
53
54     </script>
55
56     [% Asset.js("js/vue/dist/main.js") | $raw %]
57
58 [% END %]
59 [% INCLUDE 'intranet-bottom.inc' %]