4 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
12 Results › [% END %]
14 Logs › Tools › Koha
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% Asset.css("css/humanmsg.css") | $raw %]
20 fieldset.rows label.viewlog {
35 background-color: #E6F0F2;
36 margin: .5em -.5em -.5em -.5em;
45 background-color: #e6ffe6;
48 background-color: #ffe6e6;
62 <body id="tools_viewlog" class="tools">
63 [% INCLUDE 'header.inc' %]
64 [% INCLUDE 'cat-search.inc' %]
66 [% BLOCK translate_log_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 %]
71 [% CASE 'AUTHORITIES' %]Authorities[% UNLESS Koha.Preference('AuthoritiesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
73 [% CASE 'MEMBERS' %]Patrons[% UNLESS Koha.Preference('BorrowersLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
75 [% CASE 'ACQUISITIONS' %]Acquisitions [% UNLESS Koha.Preference('AcquisitionLog') %]<i class="fa fa-warning" title="Log not enabled"></i>[% END %]
77 [% CASE 'SERIAL' %]Serials[% UNLESS Koha.Preference('SubscriptionLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
79 [% CASE 'HOLDS' %]Holds[% UNLESS Koha.Preference('HoldsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
81 [% CASE 'ILL' %]Interlibrary loans[% UNLESS Koha.Preference('IllLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
83 [% CASE 'CIRCULATION' %]Circulation[% UNLESS Koha.Preference('IssueLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
85 [% CASE 'CLAIMS' %]Claims[% UNLESS Koha.Preference('ClaimsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
87 [% CASE 'FINES' %]Fines[% UNLESS Koha.Preference('FinesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
89 [% CASE 'SYSTEMPREFERENCE' %]System prefs
91 [% CASE 'CRONJOBS' %]Cron jobs[% UNLESS Koha.Preference('CronjobLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
93 [% CASE 'REPORTS' %]Reports[% UNLESS Koha.Preference('ReportsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
95 [% CASE 'SEARCHENGINE' %]Search engine
97 [% CASE 'NOTICES' %]Notices[% UNLESS Koha.Preference('NoticesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
98 [% CASE %][% module | html %]
102 [% BLOCK translate_log_action %]
105 [% CASE 'DELETE' %]Delete
106 [% CASE 'MODIFY' %]Modify
107 [% CASE 'ISSUE' %]Checkout
108 [% CASE 'RETURN' %]Return
109 [% CASE 'CREATE' %]Create
110 [% CASE 'CANCEL' %]Cancel
111 [% CASE 'RESUME' %]Resume
112 [% CASE 'SUSPEND' %]Suspend
113 [% CASE 'RENEW' %]Renew
114 [% CASE 'RENEWAL' %]Renew
115 [% CASE 'CHANGE PASS' %]Change password
116 [% CASE 'ADDCIRCMESSAGE' %]Add circulation message
117 [% CASE 'DELCIRCMESSAGE' %]Delete circulation message
118 [% CASE 'STATUS_CHANGE' %]Change ILL request status
119 [% CASE 'PATRON_NOTICE' %]ILL notice sent to patron
120 [% CASE 'ADD_BASKET' %]Create an acquisitions basket
121 [% CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
122 [% CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
123 [% CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
124 [% CASE 'CLOSE_BASKET' %]Close an acquisitions basket
125 [% CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
126 [% CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
128 [% CASE 'EDIT_MAPPINGS' %]Edit mappings
129 [% CASE 'RESET_MAPPINGS' %]Reset mappings
130 [% CASE %][% action | html %]
134 [% BLOCK translate_log_interface %]
135 [% SWITCH log_interface.upper %]
136 [% CASE 'INTRANET' %]Intranet
137 [% CASE 'OPAC' %]OPAC
139 [% CASE 'COMMANDLINE' %]Command-line
140 [% CASE 'API' %]REST API
141 [% CASE 'CRON' %]Cron job
142 [% CASE 'UPGRADE' %]Upgrade
143 [% CASE %][% log_interface | html %]
147 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
150 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
153 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
157 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a>
160 <a href="#" aria-current="page">
166 <a href="#" aria-current="page">
174 <div class="main container-fluid">
176 <div class="col-sm-10 col-sm-push-2">
179 <h1>Browse system logs</h1>
180 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
182 <input type="hidden" name="do_it" value="[% do_it | html %]" />
184 <input type="hidden" name="src" value="[% src | html %]" />
185 <fieldset class="rows">
188 <label for="user">Librarian:</label>
189 <input type="text" name="user" id="user" value="[% user | html %]" />
191 [% UNLESS src == "circ" %]
193 <label>Modules:</label>
194 <div class="log_modules">
195 [% IF modules.size == 0 %]
196 <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
198 <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
200 [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES' ] %]
201 [% IF modules.grep(modx).size %]
202 <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>
204 <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>
210 <input type="hidden" name="modules" value="MEMBERS" />
211 <input type="hidden" name="modules" value="CIRCULATION" />
214 <label>Actions:</label>
215 <div class="log_modules">
216 [% IF actions.length == 0 %]
217 <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
219 <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
222 [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' 'EDIT_MAPPINGS' 'RESET_MAPPINGS' 'ADD_BASKET' 'MODIFY_BASKET' 'MODIFY_BASKET_HEADER' 'MODIFY_BASKET_USERS' 'CLOSE_BASKET' 'APPROVE_BASKET' 'REOPEN_BASKET' ] %]
223 [% IF actions.grep(actx).size %]
224 <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>
226 <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>
232 [% IF src == 'circ' %]
233 <label for="object">Borrowernumber: </label>
234 <input type="text" id="object" name="object" value="[% object | html %]" readonly="readonly" title="This field cannot be modified from the circulation module." />
236 <label for="object">Object: </label>
237 <input type="text" id="object" name="object" value="[% object | html %]" />
241 <label for="info">Info:</label>
242 <input type="text" id="info" name="info" value="[% info | html %]" />
245 <label>Interface:</label>
246 [% IF interfaces.size == 0 %]
247 <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
249 <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
252 [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' 'API' 'CRON' ] %]
253 [% IF interfaces.grep(interf).size %]
254 <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>
256 <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]"> [% PROCESS translate_log_interface log_interface=interf %]</label>
261 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="datepickerfrom" />
262 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
265 <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="datepickerto" />
266 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
270 <fieldset class="rows">
271 <legend>Output</legend>
274 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
277 <label for="file">To a file:</label>
278 <input id="file" type="radio" name="output" value="file" />
279 <label class="inline" for="basename">Named:</label>
280 <input type="text" name="basename" id="basename" value="Export" />
282 <label for="MIME" class="inline">Into an application:</label>
283 [% CGIextChoice | html %]
284 [% CGIsepChoice | html %]
286 <input type="hidden" name="report_name" value="[% report_name | html %]" />
290 <fieldset class="action">
291 <input type="submit" value="Submit" />
292 <input type="hidden" name="do_it" value="1" />
298 <div id="toolbar" class="btn-toolbar">
299 <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a>
300 <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
315 [% FOREACH loopro IN looprow %]
317 <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
319 [% IF loopro.librarian %]
320 <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>
322 [% loopro.user | html %]
325 <td>[% PROCESS translate_log_module module=loopro.module %]</td>
326 <td>[% PROCESS translate_log_action action=loopro.action %]</td>
328 [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
329 [% IF loopro.patron %]
330 <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>
332 [% loopro.object | html %]
334 [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
335 [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
336 <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object | uri %]&biblionumber=[% loopro.biblionumber | uri %]&bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.object | uri %]">Item [% loopro.object | html %]</a> from
337 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
338 [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
339 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
341 [% loopro.object | html %]
343 [% ELSIF ( loopro.module == 'SERIAL' ) %]
344 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
345 [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
346 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
347 [% ELSIF ( loopro.module == 'NOTICES' ) %]
348 [% IF ( loopro.notice ) %]
349 <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>
351 [% loopro.object | html %]
354 [% loopro.object | html %]
358 [% IF ( loopro.module == 'CIRCULATION' ) %]
359 <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info | uri %]&biblionumber=[% loopro.biblionumber | uri %]&bi=[% loopro.biblioitemnumber | uri %]#item[% loopro.info | uri %]" title="Display detail for this item">Item [% loopro.barcode | html %]</a>
361 [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" %]
362 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
363 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
364 <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>
366 [% ELSIF loopro.module == "NOTICES" %]
367 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
368 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
369 <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>
372 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
373 [% loopro.info | html %]
378 <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
384 <div class="dialog alert">
386 [% IF ( CATALOGUING ) %]
387 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">Bibliographic record [% object | html %]</a>
390 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
399 </div> <!-- /.col-sm-10.col-sm-push-2 -->
401 <div class="col-sm-2 col-sm-pull-10">
403 [% IF ( circulation ) %]
404 [% INCLUDE 'circ-menu.inc' %]
406 [% IF ( CATALOGUING ) %]
407 [% INCLUDE 'biblio-view-menu.inc' %]
409 [% INCLUDE 'tools-menu.inc' %]
413 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
414 </div> <!-- /.row -->
416 <div class="modal" id="compareInfo" tabindex="-1" role="dialog" aria-labelledby="compareInfoLabel">
417 <div class="modal-dialog modal-lg" role="document">
418 <div class="modal-content">
419 <div class="modal-header">
420 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
421 <h4 class="modal-title" id="compareInfoLabel">Compare preference values</h4>
423 <div class="modal-body">
425 <div class="compare_pane col-sm-6" id="col1">
426 <h5>Older version</h5>
429 <div class="compare_pane col-sm-6" id="col2">
430 <h5>Newer version</h5>
434 </div> <!-- /.modal-body -->
435 <div class="modal-footer">
436 <button type="button" class="btn btn-default deny" data-dismiss="modal">Close</button>
438 </div> <!-- /.modal-content -->
439 </div> <!-- /.modal-dialog -->
440 </div> <!-- /#compareInfo -->
442 [% MACRO jsinclude BLOCK %]
443 [% INCLUDE 'calendar.inc' %]
444 [% INCLUDE 'datatables.inc' %]
445 [% INCLUDE 'columns_settings.inc' %]
446 [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
447 [% Asset.js("js/tools-menu.js") | $raw %]
448 [% Asset.js("lib/hc-sticky.js") | $raw %]
449 [% IF ( circulation ) %]
450 [% INCLUDE 'str/members-menu.inc' %]
451 [% Asset.js("js/members-menu.js") | $raw %]
453 [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
455 var columns_settings = [% TablesSettings.GetColumns('tools', 'logviewer', 'logst', 'json') | $raw %];
457 [% Asset.js("js/viewlog.js") | $raw %]
460 [% INCLUDE 'intranet-bottom.inc' %]