3 [% USE TablesSettings %]
7 [% IF module.keys and module.keys.size > 0 %]
9 [% FOR pagename IN module.keys %]
10 <a href="#[% pagename | url %]">[% pagename | html %]</a>
11 [% UNLESS loop.last %]<span class="separator"> | </span>[% END %]
14 <div class="pagelist">
15 <form method="post" action="/cgi-bin/koha/admin/columns_settings.pl">
16 <input type="hidden" name="action" value="save" />
17 <input type="hidden" name="module" value="[% modulename | html %]" />
18 <input type="hidden" name="panel" value="[% panel_id | html %]" />
19 [% SET panel_id = panel_id + 1 %]
20 [% IF module.keys and module.keys.size > 0 %]
21 [% FOR pagename IN module.keys %]
22 <h4 class="page_name" id="[% pagename | html %]">Page: [% pagename | html %]</h4>
23 [% SET tables = module %]
24 [% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
25 [% FOR tablename IN tables.$pagename.keys.sort %]
26 [% SET table_id = pagename _ '#' _ tablename %]
27 <div class="datatable_config" id="[% table_id | html %]" style="border:1px solid #7EA6B2; padding: 1em;">
28 <input type="hidden" name="table_id" value="[% table_id| html %]" />
29 [% IF pagename == 'additem' AND tablename == 'itemst' %]
30 <div class="alert">Changes made below will only apply to item subfields that are mapped to the 'items' table. <a href="/cgi-bin/koha/admin/koha2marclinks.pl?tablename=items">Go to Koha to MARC mapping</a></div>
34 [% IF tablename == 'currencies-table' %]
36 [% ELSIF pagename == 'additem' AND tablename == 'itemst' %]
39 Table id: [% tablename | html %]
45 <th>Is hidden by default</th>
46 <th>Cannot be toggled</th>
50 [% FOR column IN tables.$pagename.$tablename.columns %]
51 [% SET value = pagename _ '#' _ tablename _ '#' _ column.columnname %]
54 [% column.columnname | html %]
55 <input type="hidden" name="columnid" value="[% value | html %]" />
58 [% IF column.is_hidden %]
59 [% IF column.cannot_be_modified %]
60 <input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" disabled="disabled" />
61 <input type="hidden" name="[% value | html %]_hidden" value="1" />
63 <input type="checkbox" name="[% value | html %]_hidden" value="1" checked="checked" />
66 [% IF column.cannot_be_modified %]
67 <input type="checkbox" name="[% value | html %]_hidden" value="1" disabled="disabled" />
68 <input type="hidden" name="[% value | html %]_hidden" value="0" />
70 <input type="checkbox" name="[% value | html %]_hidden" value="1" />
75 [% IF column.cannot_be_toggled %]
76 [% IF column.cannot_be_modified %]
77 <input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" disabled="disabled" />
78 <input type="hidden" name="[% value | html %]_cannot_be_toggled" value="1" />
80 <input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" checked="checked" />
83 [% IF column.cannot_be_modified %]
84 <input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" disabled="disabled" />
85 <input type="hidden" name="[% value | html %]_cannot_be_toggled" value="0" />
87 <input type="checkbox" name="[% value | html %]_cannot_be_toggled" value="1" />
95 [% SET table_settings = TablesSettings.GetTableSettings( modulename, pagename, tablename ) %]
96 [% IF table_settings.default_display_length %]
98 Default display length:
99 <select name="[% table_id | html %]_default_display_length">
100 [% IF table_settings.default_display_length == 10 %]
101 <option value="10" selected="selected">10</option>
103 <option value="10">10</option>
105 [% IF table_settings.default_display_length == 20 %]
106 <option value="20" selected="selected">20</option>
108 <option value="20">20</option>
110 [% IF table_settings.default_display_length == 50 %]
111 <option value="50" selected="selected">50</option>
113 <option value="50">50</option>
115 [% IF table_settings.default_display_length == 100 %]
116 <option value="100" selected="selected">100</option>
118 <option value="100">100</option>
120 [% IF table_settings.default_display_length == -1 %]
121 <option value="-1" selected="selected">All</option>
123 <option value="-1">All</option>
128 [% IF table_settings.default_sort_order.defined %]
131 <select name="[% pagename | html %]#[% tablename | html %]_default_sort_order">
132 [% FOR column IN tables.$pagename.$tablename.columns %]
133 [% IF table_settings.default_sort_order == loop.count - 1 %]
134 <option value="[% loop.count - 1 %]" selected="selected">[% column.columnname | html %]</option>
136 <option value="[% loop.count - 1 %]">[% column.columnname | html %]</option>
145 <fieldset class="action">
146 <input type="submit" value="Save" />
149 There is no table to configure for this module.
153 There is no page using the table configuration in this module.
159 [% INCLUDE 'doc-head-open.inc' %]
160 <title>Koha › Administration › Tables settings</title>
161 [% INCLUDE 'doc-head-close.inc' %]
167 border-top: 1px solid #b9d8d9;
174 <body id="admin_tables" class="admin">
176 [% INCLUDE 'header.inc' %]
177 [% INCLUDE 'prefs-admin-search.inc' %]
178 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Tables settings</div>
180 <div class="main container-fluid">
182 <div class="col-sm-10 col-sm-push-2">
185 <h2>Tables settings</h2>
187 <div class="panel_header"><a href="#acqui">Acquisition</a></div>
189 <h3>Acquisition tables</h3>
190 [% PROCESS pagelist module=modules.acqui modulename="acqui" %]
193 <div class="panel_header"><a href="#admin">Administration</a></div>
195 <h3>Administration tables</h3>
196 [% PROCESS pagelist module=modules.admin modulename="admin" %]
199 <div class="panel_header"><a href="#authorities">Authorities</a></div>
200 <div id="authorities">
201 <h3>Authorities tables</h3>
202 [% PROCESS pagelist module=modules.authorities modulename="authorities" %]
205 <div class="panel_header"><a href="#catalog">Catalog</a></div>
207 <h3>Catalogue tables</h3>
208 [% PROCESS pagelist module=modules.catalogue modulename="catalogue" %]
211 <div class="panel_header"><a href="#cataloguing">Cataloging</a></div>
212 <div id="cataloguing">
213 <h3>Cataloguing tables</h3>
214 [% PROCESS pagelist module=modules.cataloguing modulename="cataloguing" %]
217 <div class="panel_header"><a href="#circulation">Circulation</a></div>
218 <div id="circulation">
219 <h3>Circulation tables</h3>
220 [% PROCESS pagelist module=modules.circ modulename="circ" %]
223 <div class="panel_header"><a href="#coursereserves">Course reserves</a></div>
224 <div id="coursereserves">
225 <h3>Course reserves tables</h3>
226 [% PROCESS pagelist module=modules.coursereserves modulename="coursereserves" %]
229 <div class="panel_header"><a href="#ill">Interlibrary loans</a></div>
231 <h3>Interlibrary loans tables</h3>
232 [% PROCESS pagelist module=modules.illrequests modulename="illrequests" %]
235 <div class="panel_header"><a href="#members">Patrons</a></div>
237 <h3>Patrons tables</h3>
238 [% PROCESS pagelist module=modules.members modulename="members" %]
241 <div class="panel_header"><a href="#tools">Tools</a></div>
243 <h3>Tools tables</h3>
244 [% PROCESS pagelist module=modules.tools modulename="tools" %]
247 <div class="panel_header"><a href="#opac">OPAC</a></div>
250 [% PROCESS pagelist module=modules.opac modulename="opac" %]
253 <div class="panel_header"><a href="#reports">Reports</a></div>
255 <h3>Reports tables</h3>
256 [% PROCESS pagelist module=modules.reports modulename="reports" %]
259 <div class="panel_header"><a href="#serials">Serials</a></div>
261 <h3>Serials tables</h3>
262 [% PROCESS pagelist module=modules.serials modulename="serials" %]
267 </div> <!-- /.col-sm-10.col-sm-push-2 -->
269 <div class="col-sm-2 col-sm-pull-10">
271 [% INCLUDE 'admin-menu.inc' %]
273 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
274 </div> <!-- /.row -->
276 [% MACRO jsinclude BLOCK %]
277 [% Asset.js("js/admin-menu.js") | $raw %]
279 $(document).ready( function() {
280 var accordion = $( "#modules" ).accordion({
282 heightStyle: "content",
283 header: ".panel_header",
285 [%# we were asked to show a specific panel, usually on update %]
286 active: [%- panel | html -%]
294 [% INCLUDE 'intranet-bottom.inc' %]