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