Bug 29869: Teach log viewer about FILL
[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 'FILL'   %]Fill
113 [%        CASE 'RESUME' %]Resume
114 [%        CASE 'SUSPEND' %]Suspend
115 [%        CASE 'RENEW'  %]Renew
116 [%        CASE 'RENEWAL' %]Renew
117 [%        CASE 'CHANGE PASS' %]Change password
118 [%        CASE 'ADDCIRCMESSAGE' %]Add circulation message
119 [%        CASE 'DELCIRCMESSAGE' %]Delete circulation message
120 [%        CASE 'STATUS_CHANGE'  %]Change ILL request status
121 [%        CASE 'PATRON_NOTICE'  %]ILL notice sent to patron
122 [%        CASE 'ADD_BASKET' %]Create an acquisitions basket
123 [%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
124 [%        CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
125 [%        CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
126 [%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
127 [%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
128 [%        CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
129 [%        CASE 'CANCEL_ORDER' %]Cancel an order
130 [%        CASE 'CREATE_ORDER' %]Create an order
131 [%        CASE 'MODIFY_ORDER' %]Modify an order
132 [%        CASE 'CREATE_INVOICE_ADJUSTMENT' %]Create an invoice adjustment
133 [%        CASE 'UPDATE_INVOICE_ADJUSTMENT' %]Modify an invoice adjustment
134 [%        CASE 'DELETE_INVOICE_ADJUSTMENT' %]Delete an invoice adjustment
135 [%        CASE 'RECEIVE_ORDER' %]Receive an order
136 [%        CASE 'MODIFY_BUDGET' %]Modify a budget
137 [%        CASE 'CREATE_FUND' %]Create a fund
138 [%        CASE 'MODIFY_FUND' %]Modify a fund
139 [%        CASE 'DELETE_FUND' %]Delete a fund
140 [%        CASE 'Run'    %]Run
141 [%        CASE 'EDIT_MAPPINGS' %]Edit mappings
142 [%        CASE 'RESET_MAPPINGS' %]Reset mappings
143 [%        CASE 'SERIAL CLAIM' %]Serial claim
144 [%        CASE 'ACQUISITION CLAIM' %]Acquisition claim
145 [%        CASE 'ACQUISITION ORDER' %]Acquisition order
146 [%        CASE %][% action | html %]
147 [%    END %]
148 [% END %]
149
150 [% BLOCK translate_log_interface %]
151 [%    SWITCH log_interface.upper %]
152 [%        CASE 'INTRANET'    %]Intranet
153 [%        CASE 'OPAC'        %]OPAC
154 [%        CASE 'SIP'         %]SIP
155 [%        CASE 'COMMANDLINE' %]Command-line
156 [%        CASE 'API'         %]REST API
157 [%        CASE 'CRON'        %]Cron job
158 [%        CASE 'UPGRADE'     %]Upgrade
159 [%        CASE %][% log_interface | html %]
160 [%    END %]
161 [% END %]
162
163 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
164     <ol>
165         <li>
166             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
167         </li>
168         <li>
169             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
170         </li>
171         [% IF ( do_it ) %]
172             <li>
173                 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a>
174             </li>
175             <li>
176                 <a href="#" aria-current="page">
177                     Results
178                 </a>
179             </li>
180         [% ELSE %]
181             <li>
182                 <a href="#" aria-current="page">
183                     Logs
184                 </a>
185             </li>
186         [% END %]
187     </ol>
188 </nav>
189
190 <div class="main container-fluid">
191     <div class="row">
192         <div class="col-sm-10 col-sm-push-2">
193             <main>
194
195                                 <h1>Browse system logs</h1>
196                                 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
197                                         [% IF ( do_it ) %]
198                                                 <input type="hidden" name="do_it" value="[% do_it | html %]" />
199                                         [% END %]
200                     <input type="hidden" name="src" value="[% src | html %]" />
201                                         <fieldset class="rows">
202                                                 <ol>
203                                                         <li>
204                                                                 <label for="user">Librarian:</label>
205                                 <input type="text" name="user" id="user" value="[% user | html %]" />
206                                                         </li>
207                             [% UNLESS src == "circ" %]
208                                 <li>
209                                     <label>Modules:</label>
210                                     <div class="log_modules">
211                                         [% IF modules.size == 0 %]
212                                             <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
213                                         [% ELSE %]
214                                             <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
215                                         [% END %]
216                                         [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES', 'NEWS' ] %]
217                                             [% IF modules.grep(modx).size %]
218                                                 <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>
219                                             [% ELSE %]
220                                                 <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>
221                                             [% END %]
222                                         [% END %]
223                                     </div>
224                                 </li>
225                             [% ELSE %]
226                                 <input type="hidden" name="modules" value="MEMBERS" />
227                                 <input type="hidden" name="modules" value="CIRCULATION" />
228                             [% END %]
229                             <li>
230                                 <label>Actions:</label>
231                                 <div class="log_modules">
232                                     [% IF actions.length == 0 %]
233                                         <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
234                                     [% ELSE %]
235                                         <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
236                                     [% END %]
237
238                                     [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'FILL' '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' 'CANCEL_ORDER' 'CREATE_ORDER' 'MODIFY_ORDER' 'CREATE_INVOICE_ADJUSTMENT' 'UPDATE_INVOICE_ADJUSTMENT' 'DELETE_INVOICE_ADJUSTMENT' 'RECEIVE_ORDER' 'MODIFY_BUDGET' 'MODIFY_FUND' 'CREATE_FUND' 'DELETE_FUND' ] %]
239                                         [% IF actions.grep(actx).size %]
240                                             <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>
241                                         [% ELSE %]
242                                             <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>
243                                         [% END %]
244                                     [% END %]
245                                 </div>
246                             </li>
247                             <li>
248                                 [% IF src == 'circ' %]
249                                     <label for="object">Borrowernumber: </label>
250                                     <input type="text" id="object" name="object" value="[% object | html %]" readonly="readonly" title="This field cannot be modified from the circulation module." />
251                                 [% ELSE %]
252                                     <label for="object">Object: </label>
253                                     <input type="text" id="object" name="object" value="[% object | html %]" />
254                                 [% END %]
255                             </li>
256                                                         <li>
257                                                                 <label for="info">Info:</label>
258                                 <input type="text" id="info" name="info" value="[% info | html %]" />
259                                                         </li>
260                             <li>
261                                 <label>Interface:</label>
262                                 [% IF interfaces.size == 0 %]
263                                     <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
264                                 [% ELSE %]
265                                     <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
266                                 [% END %]
267
268                                 [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' 'API' 'CRON' ] %]
269                                     [% IF interfaces.grep(interf).size %]
270                                         <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>
271                                     [% ELSE %]
272                                         <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>
273                                     [% END %]
274                                 [% END %]
275                             </li>
276                                                         <li>
277                                 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="flatpickr" data-date_to="to" />
278                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
279                                                         </li>
280                                                         <li>
281                                 <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="flatpickr" />
282                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
283                                                         </li>
284                                                 </ol>
285                                         </fieldset>
286                                         <fieldset class="rows">
287                                                 <legend>Output</legend>
288                                                 <ol>
289                                                         <li>
290                                                                 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
291                                                         </li>
292                                                         <li>
293                                                                 <label for="file">To a file:</label>
294                                                                 <input id="file" type="radio" name="output" value="file" />
295                                                                 <label class="inline" for="basename">Named:</label>
296                                                                 <input type="text" name="basename" id="basename" value="Export" />
297                                                                 <!--
298                                                                         <label for="MIME" class="inline">Into an application:</label>
299                                                                         [% CGIextChoice | html %]
300                                                                         [% CGIsepChoice | html %]
301                                                                 -->
302                                                                 <input type="hidden" name="report_name" value="[% report_name | html %]" />
303                                                         </li>
304                                                 </ol>
305                                         </fieldset>
306                                         <fieldset class="action">
307                                                 <input type="submit" value="Submit" />
308                                                 <input type="hidden" name="do_it" value="1" />
309                                         </fieldset>
310                         </form>
311                 [% IF ( do_it ) %]
312                     [% IF ( total ) %]
313                         <h3>Log entries</h3>
314                         <div id="toolbar" class="btn-toolbar">
315                             <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a>
316                             <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
317                         </div>
318                         <table id="logst">
319                             <thead>
320                                 <tr>
321                                     <th>Date</th>
322                                     <th>Librarian</th>
323                                     <th>Module</th>
324                                     <th>Action</th>
325                                     <th>Object</th>
326                                     <th>Info</th>
327                                     <th>Interface</th>
328                                 </tr>
329                             </thead>
330                             <tbody>
331                             [% FOREACH loopro IN looprow %]
332                                 <tr>
333                                     <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
334                                     <td>
335                                         [% IF loopro.librarian %]
336                                             <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>
337                                         [% ELSE %]
338                                             [% loopro.user | html %]
339                                         [% END %]
340                                     </td>
341                                     <td>[% PROCESS translate_log_module module=loopro.module %]</td>
342                                     <td>[% PROCESS translate_log_action action=loopro.action %]</td>
343                                     <td>
344                                         [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
345                                             [% IF loopro.patron %]
346                                                 <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>
347                                             [% ELSE %]
348                                                 [% loopro.object | html %]
349                                             [% END %]
350                                         [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
351                                             [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
352                                                 <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
353                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
354                                             [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
355                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
356                                             [% ELSE %]
357                                                 [% loopro.object | html %]
358                                             [% END %]
359                                         [% ELSIF ( loopro.module == 'SERIAL' ) %]
360                                             <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
361                                         [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
362                                             <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
363                                         [% ELSIF ( loopro.module == 'NOTICES' ) %]
364                                             [% IF ( loopro.notice ) %]
365                                                 <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>
366                                             [% ELSE %]
367                                                 [% loopro.object | html %]
368                                             [% END %]
369                                         [% ELSE %]
370                                             [% loopro.object | html %]
371                                         [% END %]
372                                     </td>
373                                     <td>
374                                         [% IF ( loopro.module == 'CIRCULATION' ) %]
375                                             <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>
376                                         [% ELSE %]
377                                             [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
378                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
379                                                 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
380                                                     <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>
381                                                 </div>
382                                             [% ELSIF loopro.module == "NOTICES" %]
383                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
384                                                 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
385                                                     <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>
386                                                 </div>
387                                             [% ELSE %]
388                                                 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
389                                                     [% loopro.info | html %]
390                                                 </div>
391                                             [% END %]
392                                         [% END %]
393                                     </td>
394                                     <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
395                                 </tr>
396                             [% END %]
397                             </tbody>
398                         </table>
399                     [% ELSE %]
400                         <div class="dialog alert">
401                             No log found
402                             [% IF ( CATALOGUING ) %]
403                                 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">Bibliographic record [% object | html %]</a>
404                             [% END %]
405                             [% IF ( MEMBERS ) %]
406                                 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
407                             [% END %]
408                             .
409                         </div>
410                     [% END %]
411                 [% END %]
412
413
414             </main>
415         </div> <!-- /.col-sm-10.col-sm-push-2 -->
416
417         <div class="col-sm-2 col-sm-pull-10">
418             <aside>
419                 [% IF ( circulation ) %]
420                     [% INCLUDE 'circ-menu.inc' %]
421                 [% ELSE %]
422                     [% IF ( CATALOGUING ) %]
423                         [% INCLUDE 'biblio-view-menu.inc' %]
424                     [% ELSE %]
425                         [% INCLUDE 'tools-menu.inc' %]
426                     [% END %]
427                 [% END %]
428             </aside>
429         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
430      </div> <!-- /.row -->
431
432 <div class="modal" id="compareInfo" tabindex="-1" role="dialog" aria-labelledby="compareInfoLabel">
433     <div class="modal-dialog modal-lg" role="document">
434         <div class="modal-content">
435             <div class="modal-header">
436                 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
437                 <h4 class="modal-title" id="compareInfoLabel">Compare preference values</h4>
438             </div>
439             <div class="modal-body">
440                 <div class="row">
441                     <div class="compare_pane col-sm-6" id="col1">
442                         <h5>Older version</h5>
443                         <pre></pre>
444                     </div>
445                     <div class="compare_pane col-sm-6" id="col2">
446                         <h5>Newer version</h5>
447                         <pre></pre>
448                     </div>
449                 </div>
450             </div> <!-- /.modal-body -->
451             <div class="modal-footer">
452                 <button type="button" class="btn btn-default deny" data-dismiss="modal">Close</button>
453             </div>
454         </div> <!-- /.modal-content -->
455     </div> <!-- /.modal-dialog -->
456 </div> <!-- /#compareInfo -->
457
458 [% MACRO jsinclude BLOCK %]
459     [% INCLUDE 'calendar.inc' %]
460     [% INCLUDE 'datatables.inc' %]
461     [% INCLUDE 'columns_settings.inc' %]
462     [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
463     [% Asset.js("js/tools-menu.js") | $raw %]
464     [% Asset.js("lib/hc-sticky.js") | $raw %]
465     [% IF ( circulation ) %]
466         [% INCLUDE 'str/members-menu.inc' %]
467         [% Asset.js("js/members-menu.js") | $raw %]
468     [% END %]
469     [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
470     <script>
471         var columns_settings = [% TablesSettings.GetColumns('tools', 'logviewer', 'logst', 'json') | $raw %];
472     </script>
473     [% Asset.js("js/viewlog.js") | $raw %]
474 [% END %]
475
476 [% INCLUDE 'intranet-bottom.inc' %]