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 |
> |
|
|