Bug 30708: Koha controller script and template changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / preservation / home.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     Preservation &rsaquo; Koha
12 </title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 </head>
15
16 <body id="preservation_home" class="preservation">
17 [% WRAPPER 'header.inc' %]
18     [% INCLUDE 'preservation-search.inc' %]
19 [% END %]
20
21 <div id="preservation"> <!-- 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     [% INCLUDE 'js-biblio-format.inc' %]
30
31     <script>
32
33         const authorised_value_categories = [% To.json(AuthorisedValues.GetCategories()) | $raw %].map(c => c.category);
34         const db_columns = [% To.json(db_columns) | $raw %];
35         const api_mappings = [% To.json(api_mappings) | $raw %];
36
37     </script>
38
39     [% Asset.js("js/vue/dist/preservation.js") | $raw %]
40
41 [% END %]
42 [% INCLUDE 'intranet-bottom.inc' %]