5 [% USE TablesSettings %]
6 [% USE AuthorisedValues %]
8 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
11 E-Resource management › Koha
13 [% INCLUDE 'doc-head-close.inc' %]
16 <body id="erm_agreements" class="erm">
17 [% WRAPPER 'header.inc' %]
18 [% INCLUDE 'erm-search.inc' %]
21 <div id="erm"> <!-- this is closed in intranet-bottom.inc -->
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' %]
32 const agreement_statuses = [% To.json(AuthorisedValues.Get('ERM_AGREEMENT_STATUS')) | $raw %];
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 %];
38 const license_types = [% To.json(AuthorisedValues.Get('ERM_LICENSE_TYPE')) | $raw %];
39 const license_statuses = [% To.json(AuthorisedValues.Get('ERM_LICENSE_STATUS')) | $raw %];
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 %];
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 %];
47 const title_publication_types = [% To.json(AuthorisedValues.Get('ERM_TITLE_PUBLICATION_TYPE')) | $raw %];
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 %];
54 const ERMProviders = "[% Koha.Preference('ERMProviders') | html %]";
55 const erm_providers = ERMProviders.split(',');
57 const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
59 const ERMModule = [% IF Koha.Preference('ERMModule') %]true[% ELSE %]false[% END %];
61 const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
65 [% Asset.js("js/vue/dist/main.js") | $raw %]
68 [% INCLUDE 'intranet-bottom.inc' %]