Jonathan Druart
7c5b691808
Test plan: Edit an agreement or a license Add new user and click "Select user" to open the modal Test with different user for the same agreement/license Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
58 lines
2.6 KiB
Text
58 lines
2.6 KiB
Text
[% USE raw %]
|
|
[% USE To %]
|
|
[% USE Asset %]
|
|
[% USE KohaDates %]
|
|
[% USE TablesSettings %]
|
|
[% PROCESS 'i18n.inc' %]
|
|
[% SET footerjs = 1 %]
|
|
[% PROCESS 'patron-search.inc' %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% FILTER collapse %]
|
|
[% t("E-resource management") | html %] ›
|
|
[% t("Koha") | html %]
|
|
[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="erm_agreements" class="erm">
|
|
[% WRAPPER 'header.inc' %]
|
|
[% INCLUDE 'erm-search.inc' %]
|
|
[% END %]
|
|
|
|
<div id="erm"> <!-- this is closed in intranet-bottom.inc -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
[% INCLUDE 'columns_settings.inc' %]
|
|
[% INCLUDE 'js-patron-format.inc' %]
|
|
[% INCLUDE 'js-date-format.inc' %]
|
|
|
|
<script>
|
|
|
|
const agreement_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'agreements', 'agreements', 'json' ) | $raw %];
|
|
const license_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'licenses', 'licenses', 'json' ) | $raw %];
|
|
const eholdings_packages_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'packages', 'json' ) | $raw %];
|
|
const eholdings_titles_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'eholdings', 'titles', 'json' ) | $raw %];
|
|
const usage_data_provider_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'usage_data_providers', 'usage_data_providers', 'json' ) | $raw %];
|
|
const title_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'titles', 'titles', 'json' ) | $raw %];
|
|
const counter_log_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'counter_logs', 'counter_logs', 'json' ) | $raw %];
|
|
const monthly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'monthly_usages', 'monthly_usages', 'json' ) | $raw %];
|
|
const yearly_usage_table_settings = [% TablesSettings.GetTableSettings( 'erm', 'yearly_usages', 'yearly_usages', 'json' ) | $raw %];
|
|
|
|
const max_allowed_packet = [% To.json(max_allowed_packet) | $raw %];
|
|
|
|
const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];
|
|
|
|
const logged_in_user = [% To.json(logged_in_user.unblessed) | $raw %];
|
|
|
|
</script>
|
|
|
|
[% Asset.js("js/vue/dist/erm.js") | $raw %]
|
|
[% INCLUDE 'select2.inc' %]
|
|
[% SET columns = ['cardnumber','name','category','branch','action'] %]
|
|
[% PROCESS patron_search_modal columns => columns, modal_title => t("Select user") %]
|
|
[% PROCESS patron_search_js columns => columns, filter => erm_users, actions => ["select"], preview_on_name_click => 1 %]
|
|
|
|
[% END %]
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|