Bug 26205: (QA follow-up) Change OPACNEWS to just NEWS
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / viewlog.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5 [% USE Branches %]
6 [% USE KohaDates %]
7 [% USE TablesSettings %]
8 [% SET footerjs = 1 %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>
11     [% IF ( do_it ) %]
12         Results &rsaquo; [% END %]
13
14     Logs &rsaquo; Tools &rsaquo; Koha
15 </title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% Asset.css("css/humanmsg.css") | $raw %]
18 [% FILTER collapse %]
19     <style>
20         fieldset.rows label.viewlog {
21             float: none;
22             font-weight: normal;
23             margin: 0;
24             min-width: 9em;
25             padding: .5em;
26             text-align: left;
27             white-space: nowrap;
28             width: auto;
29         }
30         .log_modules {
31             display: flex;
32             flex-wrap: wrap;
33         }
34         .compare_info {
35             background-color: #E6F0F2;
36             margin: .5em -.5em -.5em -.5em;
37             padding: .5em;
38             text-align: right;
39         }
40         .modal-dialog {
41             width : 90%;
42         }
43         /* jsdiff styles */
44         ins {
45             background-color: #e6ffe6;
46         }
47         del {
48             background-color: #ffe6e6;
49         }
50         #col1 ins,
51         #col2 del {
52             display: none;
53         }
54         pre {
55             overflow: scroll;
56             padding: 10px;
57         }
58     </style>
59 [% END %]
60 </head>
61
62 <body id="tools_viewlog" class="tools">
63 [% INCLUDE 'header.inc' %]
64 [% INCLUDE 'cat-search.inc' %]
65
66 [% BLOCK translate_log_module %]
67 [%    SWITCH module %]
68 [%        CASE 'AUTH'         %]Authentication[% UNLESS Koha.Preference('AuthFailureLog') || Koha.Preference('AuthScuccessLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
69 [%        CASE 'CATALOGUING'  %]Catalog[% UNLESS Koha.Preference('CataloguingLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
70
71 [%        CASE 'AUTHORITIES'  %]Authorities[% UNLESS Koha.Preference('AuthoritiesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
72
73 [%        CASE 'MEMBERS'      %]Patrons[% UNLESS Koha.Preference('BorrowersLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
74
75 [%        CASE 'ACQUISITIONS' %]Acquisitions [% UNLESS Koha.Preference('AcquisitionLog') %]<i class="fa fa-warning" title="Log not enabled"></i>[% END %]
76
77 [%        CASE 'SERIAL'       %]Serials[% UNLESS Koha.Preference('SubscriptionLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
78
79 [%        CASE 'HOLDS'        %]Holds[% UNLESS Koha.Preference('HoldsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
80
81 [%        CASE 'ILL'          %]Interlibrary loans[% UNLESS Koha.Preference('IllLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
82
83 [%        CASE 'CIRCULATION'  %]Circulation[% UNLESS Koha.Preference('IssueLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
84
85 [%        CASE 'CLAIMS'       %]Claims[% UNLESS Koha.Preference('ClaimsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
86
87 [%        CASE 'FINES'        %]Fines[% UNLESS Koha.Preference('FinesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
88
89 [%        CASE 'SYSTEMPREFERENCE' %]System prefs
90
91 [%        CASE 'CRONJOBS' %]Cron jobs[% UNLESS Koha.Preference('CronjobLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
92
93 [%        CASE 'REPORTS'      %]Reports[% UNLESS Koha.Preference('ReportsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
94
95 [%        CASE 'SEARCHENGINE' %]Search engine
96
97 [%        CASE 'NOTICES'      %]Notices[% UNLESS Koha.Preference('NoticesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
98 [%        CASE 'NEWS'      %]News[% UNLESS Koha.Preference('NewsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
99 [%        CASE %][% module | html %]
100 [%    END %]
101 [% END %]
102
103 [% BLOCK translate_log_action %]
104 [%    SWITCH action %]
105 [%        CASE 'ADD'    %]Add
106 [%        CASE 'DELETE' %]Delete
107 [%        CASE 'MODIFY' %]Modify
108 [%        CASE 'ISSUE'  %]Checkout
109 [%        CASE 'RETURN' %]Return
110 [%        CASE 'CREATE' %]Create
111 [%        CASE 'CANCEL' %]Cancel
112 [%        CASE 'RESUME' %]Resume
113 [%        CASE 'SUSPEND' %]Suspend
114 [%        CASE 'RENEW'  %]Renew
115 [%        CASE 'RENEWAL' %]Renew
116 [%        CASE 'CHANGE PASS' %]Change password
117 [%        CASE 'ADDCIRCMESSAGE' %]Add circulation message
118 [%        CASE 'DELCIRCMESSAGE' %]Delete circulation message
119 [%        CASE 'STATUS_CHANGE'  %]Change ILL request status
120 [%        CASE 'PATRON_NOTICE'  %]ILL notice sent to patron
121 [%        CASE 'ADD_BASKET' %]Create an acquisitions basket
122 [%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
123 [%        CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
124 [%        CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
125 [%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
126 [%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
127 [%        CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
128 [%        CASE 'Run'    %]Run
129 [%        CASE 'EDIT_MAPPINGS' %]Edit mappings
130 [%        CASE 'RESET_MAPPINGS' %]Reset mappings
131 [%        CASE 'SERIAL CLAIM' %]Serial claim
132 [%        CASE 'ACQUISITION CLAIM' %]Acquisition claim
133 [%        CASE 'ACQUISITION ORDER' %]Acquisition order
134 [%        CASE %][% action | html %]
135 [%    END %]
136 [% END %]
137
138 [% BLOCK translate_log_interface %]
139 [%    SWITCH log_interface.upper %]
140 [%        CASE 'INTRANET'    %]Intranet
141 [%        CASE 'OPAC'        %]OPAC
142 [%        CASE 'SIP'         %]SIP
143 [%        CASE 'COMMANDLINE' %]Command-line
144 [%        CASE 'API'         %]REST API
145 [%        CASE 'CRON'        %]Cron job
146 [%        CASE 'UPGRADE'     %]Upgrade
147 [%        CASE %][% log_interface | html %]
148 [%    END %]
149 [% END %]
150
151 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
152     <ol>
153         <li>
154             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
155         </li>
156         <li>
157             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
158         </li>
159         [% IF ( do_it ) %]
160             <li>
161                 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a>
162             </li>
163             <li>
164                 <a href="#" aria-current="page">
165                     Results
166                 </a>
167             </li>
168         [% ELSE %]
169             <li>
170                 <a href="#" aria-current="page">
171                     Logs
172                 </a>
173             </li>
174         [% END %]
175     </ol>
176 </nav>
177
178 <div class="main container-fluid">
179     <div class="row">
180         <div class="col-sm-10 col-sm-push-2">
181             <main>
182
183                                 <h1>Browse system logs</h1>
184                                 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
185                                         [% IF ( do_it ) %]
186                                                 <input type="hidden" name="do_it" value="[% do_it | html %]" />
187                                         [% END %]
188                     <input type="hidden" name="src" value="[% src | html %]" />
189                                         <fieldset class="rows">
190                                                 <ol>
191                                                         <li>
192                                                                 <label for="user">Librarian:</label>
193                                 <input type="text" name="user" id="user" value="[% user | html %]" />
194                                                         </li>
195                             [% UNLESS src == "circ" %]
196                                 <li>
197                                     <label>Modules:</label>
198                                     <div class="log_modules">
199                                         [% IF modules.size == 0 %]
200                                             <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
201                                         [% ELSE %]
202                                             <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
203                                         [% END %]
204                                         [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES', 'NEWS' ] %]
205                                             [% IF modules.grep(modx).size %]
206                                                 <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]" checked="checked"> [% PROCESS translate_log_module module=modx %]</label>
207                                             [% ELSE %]
208                                                 <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]"> [% PROCESS translate_log_module module=modx %]</label>
209                                             [% END %]
210                                         [% END %]
211                                     </div>
212                                 </li>
213                             [% ELSE %]
214                                 <input type="hidden" name="modules" value="MEMBERS" />
215                                 <input type="hidden" name="modules" value="CIRCULATION" />
216                             [% END %]
217                             <li>
218                                 <label>Actions:</label>
219                                 <div class="log_modules">
220                                     [% IF actions.length == 0 %]
221                                         <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
222                                     [% ELSE %]
223                                         <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
224                                     [% END %]
225
226                                     [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' 'EDIT_MAPPINGS' 'RESET_MAPPINGS' 'ADD_BASKET' 'MODIFY_BASKET' 'MODIFY_BASKET_HEADER' 'MODIFY_BASKET_USERS' 'CLOSE_BASKET' 'APPROVE_BASKET' 'REOPEN_BASKET' ] %]
227                                         [% IF actions.grep(actx).size %]
228                                             <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
229                                         [% ELSE %]
230                                             <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]"> [% PROCESS translate_log_action action=actx %]</label>
231                                         [% END %]
232                                     [% END %]
233                                 </div>
234                             </li>
235                             <li>
236                                 [% IF src == 'circ' %]
237                                     <label for="object">Borrowernumber: </label>
238                                     <input type="text" id="object" name="object" value="[% object | html %]" readonly="readonly" title="This field cannot be modified from the circulation module." />
239                                 [% ELSE %]
240                                     <label for="object">Object: </label>
241                                     <input type="text" id="object" name="object" value="[% object | html %]" />
242                                 [% END %]
243                             </li>
244                                                         <li>
245                                                                 <label for="info">Info:</label>
246                                 <input type="text" id="info" name="info" value="[% info | html %]" />
247                                                         </li>
248                             <li>
249                                 <label>Interface:</label>
250                                 [% IF interfaces.size == 0 %]
251                                     <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
252                                 [% ELSE %]
253                                     <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
254                                 [% END %]
255
256                                 [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' 'API' 'CRON' ] %]
257                                     [% IF interfaces.grep(interf).size %]
258                                         <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]" checked="checked"> [% PROCESS translate_log_interface log_interface=interf %]</label>
259                                     [% ELSE %]
260                                         <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]"> [% PROCESS translate_log_interface log_interface=interf %]</label>
261                                     [% END %]
262                                 [% END %]
263                             </li>
264                                                         <li>
265                                 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="datepickerfrom" />
266                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
267                                                         </li>
268                                                         <li>
269                                 <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="datepickerto" />
270                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
271                                                         </li>
272                                                 </ol>
273                                         </fieldset>
274                                         <fieldset class="rows">
275                                                 <legend>Output</legend>
276                                                 <ol>
277                                                         <li>
278                                                                 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
279                                                         </li>
280                                                         <li>
281                                                                 <label for="file">To a file:</label>
282                                                                 <input id="file" type="radio" name="output" value="file" />
283                                                                 <label class="inline" for="basename">Named:</label>
284                                                                 <input type="text" name="basename" id="basename" value="Export" />
285                                                                 <!--
286                                                                         <label for="MIME" class="inline">Into an application:</label>
287                                                                         [% CGIextChoice | html %]
288                                                                         [% CGIsepChoice | html %]
289                                                                 -->
290                                                                 <input type="hidden" name="report_name" value="[% report_name | html %]" />
291                                                         </li>
292                                                 </ol>
293                                         </fieldset>
294                                         <fieldset class="action">
295                                                 <input type="submit" value="Submit" />
296                                                 <input type="hidden" name="do_it" value="1" />
297                                         </fieldset>
298                         </form>
299                 [% IF ( do_it ) %]
300                     [% IF ( total ) %]
301                         <h3>Log entries</h3>
302                         <div id="toolbar" class="btn-toolbar">
303                             <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a>
304                             <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
305                         </div>
306                         <table id="logst">
307                             <thead>
308                                 <tr>
309                                     <th>Date</th>
310                                     <th>Librarian</th>
311                                     <th>Module</th>
312                                     <th>Action</th>
313                                     <th>Object</th>
314                                     <th>Info</th>
315                                     <th>Interface</th>
316                                 </tr>
317                             </thead>
318                             <tbody>
319                             [% FOREACH loopro IN looprow %]
320                                 <tr>
321                                     <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
322                                     <td>
323                                         [% IF loopro.librarian %]
324                                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.librarian.borrowernumber | uri %]" title="display detail for this librarian."> [% IF ( loopro.librarian.firstname ) || ( loopro.librarian.surname ) %][% loopro.librarian.firstname | html %] [% loopro.librarian.surname | html %] ([% loopro.librarian.borrowernumber | html %]) [% ELSE %][% loopro.librarian.borrowernumber | html %][% END %]</a>
325                                         [% ELSE %]
326                                             [% loopro.user | html %]
327                                         [% END %]
328                                     </td>
329                                     <td>[% PROCESS translate_log_module module=loopro.module %]</td>
330                                     <td>[% PROCESS translate_log_action action=loopro.action %]</td>
331                                     <td>
332                                         [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
333                                             [% IF loopro.patron %]
334                                                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object | uri %]" title="Display member details."> [% IF ( loopro.object ) %][% IF ( loopro.patron.firstname ) || ( loopro.patron.surname ) %][% loopro.patron.firstname | html %] [% loopro.patron.surname | html %] ([% loopro.object | html %]) [% ELSE %]Member [% loopro.object | html %][% END %][% END %] </a>
335                                             [% ELSE %]
336                                                 [% loopro.object | html %]
337                                             [% END %]
338                                         [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
339                                             [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
340                                                 <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object | uri %]&amp;biblionumber=[% loopro.biblionumber | uri %]&amp;bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.object | uri %]">Item [% loopro.object | html %]</a> from
341                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
342                                             [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
343                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
344                                             [% ELSE %]
345                                                 [% loopro.object | html %]
346                                             [% END %]
347                                         [% ELSIF ( loopro.module == 'SERIAL' ) %]
348                                             <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
349                                         [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
350                                             <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
351                                         [% ELSIF ( loopro.module == 'NOTICES' ) %]
352                                             [% IF ( loopro.notice ) %]
353                                                 <a href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% loopro.notice.branchcode | uri %]&module=[% loopro.notice.module | uri %]&code=[% loopro.notice.code | uri %]#lang_[% loopro.notice.lang | uri %]">Notice [% loopro.notice.title | html %] ([% loopro.notice.code | html %])</a>
354                                             [% ELSE %]
355                                                 [% loopro.object | html %]
356                                             [% END %]
357                                         [% ELSE %]
358                                             [% loopro.object | html %]
359                                         [% END %]
360                                     </td>
361                                     <td>
362                                         [% IF ( loopro.module == 'CIRCULATION' ) %]
363                                             <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info | uri %]&amp;biblionumber=[% loopro.biblionumber | uri %]&amp;bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.info | uri %]" title="Display detail for this item">Item [% loopro.barcode | html %]</a>
364                                         [% ELSE %]
365                                             [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "OPACNEWS" %]
366                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
367                                                 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
368                                                     <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% FOREACH info IN loopro.info.split(' \| ') %][% IF loop.first %][% info | html %][% END %][% END %]" class="compare" /> Compare</label>
369                                                 </div>
370                                             [% ELSIF loopro.module == "NOTICES" %]
371                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
372                                                 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
373                                                     <label><input type="checkbox" name="diff" id="action_id[% loopro.action_id | html %]" data-actionid="[% loopro.action_id | html %]" data-filter="[% IF loopro.notice %][% loopro.notice.title | html %][% ELSE %][% loopro.object | html %][% END %]" class="compare" /> Compare</label>
374                                                 </div>
375                                             [% ELSE %]
376                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
377                                                     [% loopro.info | html %]
378                                                 </div>
379                                             [% END %]
380                                         [% END %]
381                                     </td>
382                                     <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
383                                 </tr>
384                             [% END %]
385                             </tbody>
386                         </table>
387                     [% ELSE %]
388                         <div class="dialog alert">
389                             No log found
390                             [% IF ( CATALOGUING ) %]
391                                 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">Bibliographic record [% object | html %]</a>
392                             [% END %]
393                             [% IF ( MEMBERS ) %]
394                                 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
395                             [% END %]
396                             .
397                         </div>
398                     [% END %]
399                 [% END %]
400
401
402             </main>
403         </div> <!-- /.col-sm-10.col-sm-push-2 -->
404
405         <div class="col-sm-2 col-sm-pull-10">
406             <aside>
407                 [% IF ( circulation ) %]
408                     [% INCLUDE 'circ-menu.inc' %]
409                 [% ELSE %]
410                     [% IF ( CATALOGUING ) %]
411                         [% INCLUDE 'biblio-view-menu.inc' %]
412                     [% ELSE %]
413                         [% INCLUDE 'tools-menu.inc' %]
414                     [% END %]
415                 [% END %]
416             </aside>
417         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
418      </div> <!-- /.row -->
419
420 <div class="modal" id="compareInfo" tabindex="-1" role="dialog" aria-labelledby="compareInfoLabel">
421     <div class="modal-dialog modal-lg" role="document">
422         <div class="modal-content">
423             <div class="modal-header">
424                 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
425                 <h4 class="modal-title" id="compareInfoLabel">Compare preference values</h4>
426             </div>
427             <div class="modal-body">
428                 <div class="row">
429                     <div class="compare_pane col-sm-6" id="col1">
430                         <h5>Older version</h5>
431                         <pre></pre>
432                     </div>
433                     <div class="compare_pane col-sm-6" id="col2">
434                         <h5>Newer version</h5>
435                         <pre></pre>
436                     </div>
437                 </div>
438             </div> <!-- /.modal-body -->
439             <div class="modal-footer">
440                 <button type="button" class="btn btn-default deny" data-dismiss="modal">Close</button>
441             </div>
442         </div> <!-- /.modal-content -->
443     </div> <!-- /.modal-dialog -->
444 </div> <!-- /#compareInfo -->
445
446 [% MACRO jsinclude BLOCK %]
447     [% INCLUDE 'calendar.inc' %]
448     [% INCLUDE 'datatables.inc' %]
449     [% INCLUDE 'columns_settings.inc' %]
450     [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
451     [% Asset.js("js/tools-menu.js") | $raw %]
452     [% Asset.js("lib/hc-sticky.js") | $raw %]
453     [% IF ( circulation ) %]
454         [% INCLUDE 'str/members-menu.inc' %]
455         [% Asset.js("js/members-menu.js") | $raw %]
456     [% END %]
457     [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
458     <script>
459         var columns_settings = [% TablesSettings.GetColumns('tools', 'logviewer', 'logst', 'json') | $raw %];
460     </script>
461     [% Asset.js("js/viewlog.js") | $raw %]
462 [% END %]
463
464 [% INCLUDE 'intranet-bottom.inc' %]