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