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 'NEWS' %]News[% UNLESS Koha.Preference('NewsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
99 [% CASE 'RECALLS' %]Recalls[% UNLESS Koha.Preference('RecallsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
101 [% CASE %][% module | html %]
105 [% BLOCK translate_log_action %]
108 [% CASE 'DELETE' %]Delete
109 [% CASE 'MODIFY' %]Modify
110 [% CASE 'ISSUE' %]Checkout
111 [% CASE 'RETURN' %]Return
112 [% CASE 'CREATE' %]Create
113 [% CASE 'CANCEL' %]Cancel
114 [% CASE 'FILL' %]Fill
115 [% CASE 'RESUME' %]Resume
116 [% CASE 'SUSPEND' %]Suspend
117 [% CASE 'RENEW' %]Renew
118 [% CASE 'RENEWAL' %]Renew
119 [% CASE 'CHANGE PASS' %]Change password
120 [% CASE 'ADDCIRCMESSAGE' %]Add circulation message
121 [% CASE 'DELCIRCMESSAGE' %]Delete circulation message
122 [% CASE 'STATUS_CHANGE' %]Change ILL request status
123 [% CASE 'PATRON_NOTICE' %]ILL notice sent to patron
124 [% CASE 'ADD_BASKET' %]Create an acquisitions basket
125 [% CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
126 [% CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
127 [% CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
128 [% CASE 'CLOSE_BASKET' %]Close an acquisitions basket
129 [% CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
130 [% CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
131 [% CASE 'CANCEL_ORDER' %]Cancel an order
132 [% CASE 'CREATE_ORDER' %]Create an order
133 [% CASE 'MODIFY_ORDER' %]Modify an order
134 [% CASE 'CREATE_INVOICE_ADJUSTMENT' %]Create an invoice adjustment
135 [% CASE 'UPDATE_INVOICE_ADJUSTMENT' %]Modify an invoice adjustment
136 [% CASE 'DELETE_INVOICE_ADJUSTMENT' %]Delete an invoice adjustment
137 [% CASE 'RECEIVE_ORDER' %]Receive an order
138 [% CASE 'MODIFY_BUDGET' %]Modify a budget
139 [% CASE 'CREATE_FUND' %]Create a fund
140 [% CASE 'MODIFY_FUND' %]Modify a fund
141 [% CASE 'DELETE_FUND' %]Delete a fund
143 [% CASE 'EDIT_MAPPINGS' %]Edit mappings
144 [% CASE 'RESET_MAPPINGS' %]Reset mappings
145 [% CASE 'SERIAL CLAIM' %]Serial claim
146 [% CASE 'ACQUISITION CLAIM' %]Acquisition claim
147 [% CASE 'ACQUISITION ORDER' %]Acquisition order
148 [% CASE 'FULFILL' %]Fulfill
149 [% CASE 'OVERDUE' %]Overdue
150 [% CASE 'EXPIRE' %]Expire
151 [% CASE %][% action | html %]
155 [% BLOCK translate_log_interface %]
156 [% SWITCH log_interface.upper %]
157 [% CASE 'INTRANET' %]Intranet
158 [% CASE 'OPAC' %]OPAC
160 [% CASE 'COMMANDLINE' %]Command-line
161 [% CASE 'API' %]REST API
162 [% CASE 'CRON' %]Cron job
163 [% CASE 'UPGRADE' %]Upgrade
164 [% CASE %][% log_interface | html %]
168 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
171 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
174 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
178 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a>
181 <a href="#" aria-current="page">
187 <a href="#" aria-current="page">
195 <div class="main container-fluid">
197 <div class="col-sm-10 col-sm-push-2">
200 <h1>Browse system logs</h1>
201 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
203 <input type="hidden" name="do_it" value="[% do_it | html %]" />
205 <input type="hidden" name="src" value="[% src | html %]" />
206 <fieldset class="rows">
209 <label for="user">Librarian:</label>
210 <input type="text" name="user" id="user" value="[% user | html %]" />
212 [% UNLESS src == "circ" %]
214 <label>Modules:</label>
215 <div class="log_modules">
216 [% IF modules.size == 0 %]
217 <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
219 <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
221 [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES', 'NEWS', 'RECALLS' ] %]
222 [% IF modules.grep(modx).size %]
223 <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>
225 <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>
231 <input type="hidden" name="modules" value="MEMBERS" />
232 <input type="hidden" name="modules" value="CIRCULATION" />
235 <label>Actions:</label>
236 <div class="log_modules">
237 [% IF actions.length == 0 %]
238 <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
240 <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
243 [% 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' 'OVERDUE' 'EXPIRE' 'FULFILL' ] %]
244 [% IF actions.grep(actx).size %]
245 <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>
247 <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>
253 [% IF src == 'circ' %]
254 <label for="object">Borrowernumber: </label>
255 <input type="text" id="object" name="object" value="[% object | html %]" readonly="readonly" title="This field cannot be modified from the circulation module." />
257 <label for="object">Object: </label>
258 <input type="text" id="object" name="object" value="[% object | html %]" />
262 <label for="info">Info:</label>
263 <input type="text" id="info" name="info" value="[% info | html %]" />
266 <label>Interface:</label>
267 [% IF interfaces.size == 0 %]
268 <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
270 <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
273 [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' 'API' 'CRON' ] %]
274 [% IF interfaces.grep(interf).size %]
275 <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>
277 <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>
282 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom | html %]" class="flatpickr" data-date_to="to" />
283 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
286 <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto | html %]" class="flatpickr" />
287 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
291 <fieldset class="rows">
292 <legend>Output</legend>
295 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
298 <label for="file">To a file:</label>
299 <input id="file" type="radio" name="output" value="file" />
300 <label class="inline" for="basename">Named:</label>
301 <input type="text" name="basename" id="basename" value="Export" />
303 <label for="MIME" class="inline">Into an application:</label>
304 [% CGIextChoice | html %]
305 [% CGIsepChoice | html %]
307 <input type="hidden" name="report_name" value="[% report_name | html %]" />
311 <fieldset class="action">
312 <input type="submit" value="Submit" />
313 <input type="hidden" name="do_it" value="1" />
319 <div id="toolbar" class="btn-toolbar">
320 <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a>
321 <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
336 [% FOREACH loopro IN looprow %]
338 <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
340 [% IF loopro.librarian %]
341 <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>
343 [% loopro.user | html %]
346 <td>[% PROCESS translate_log_module module=loopro.module %]</td>
347 <td>[% PROCESS translate_log_action action=loopro.action %]</td>
349 [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
350 [% IF loopro.patron %]
351 <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>
353 [% loopro.object | html %]
355 [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
356 [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
357 <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
358 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
359 [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
360 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
362 [% loopro.object | html %]
364 [% ELSIF ( loopro.module == 'SERIAL' ) %]
365 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
366 [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
367 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
368 [% ELSIF ( loopro.module == 'NOTICES' ) %]
369 [% IF ( loopro.notice ) %]
370 <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>
372 [% loopro.object | html %]
374 [% ELSIF ( loopro.module == 'RECALLS' ) %]
375 [% IF loopro.recall.item_level_recall %]
376 Item-level recall on <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.recall.itemnumber | uri %]&biblionumber=[% loopro.recall.biblionumber | uri %]&bi=[% loopro.recall.item.biblioitemnumber | uri %]">item</a>
378 Biblio-level recall on <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.recall.biblionumber | uri %]">biblio</a>
381 [% loopro.object | html %]
385 [% IF ( loopro.module == 'CIRCULATION' ) %]
386 <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>
388 [% IF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
389 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
390 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
391 <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>
393 [% ELSIF loopro.module == "NOTICES" %]
394 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
395 <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
396 <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>
399 <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
400 [% loopro.info | html %]
405 <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
411 <div class="dialog alert">
413 [% IF ( CATALOGUING ) %]
414 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object | url %]">Bibliographic record [% object | html %]</a>
417 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object | url %]">[% INCLUDE 'patron-title.inc' %]</a>
426 </div> <!-- /.col-sm-10.col-sm-push-2 -->
428 <div class="col-sm-2 col-sm-pull-10">
430 [% IF ( circulation ) %]
431 [% INCLUDE 'circ-menu.inc' %]
433 [% IF ( CATALOGUING ) %]
434 [% INCLUDE 'biblio-view-menu.inc' %]
436 [% INCLUDE 'tools-menu.inc' %]
440 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
441 </div> <!-- /.row -->
443 <div class="modal" id="compareInfo" tabindex="-1" role="dialog" aria-labelledby="compareInfoLabel">
444 <div class="modal-dialog modal-lg" role="document">
445 <div class="modal-content">
446 <div class="modal-header">
447 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
448 <h4 class="modal-title" id="compareInfoLabel">Compare preference values</h4>
450 <div class="modal-body">
452 <div class="compare_pane col-sm-6" id="col1">
453 <h5>Older version</h5>
456 <div class="compare_pane col-sm-6" id="col2">
457 <h5>Newer version</h5>
461 </div> <!-- /.modal-body -->
462 <div class="modal-footer">
463 <button type="button" class="btn btn-default deny" data-dismiss="modal">Close</button>
465 </div> <!-- /.modal-content -->
466 </div> <!-- /.modal-dialog -->
467 </div> <!-- /#compareInfo -->
469 [% MACRO jsinclude BLOCK %]
470 [% INCLUDE 'calendar.inc' %]
471 [% INCLUDE 'datatables.inc' %]
472 [% INCLUDE 'columns_settings.inc' %]
473 [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
474 [% Asset.js("js/tools-menu.js") | $raw %]
475 [% Asset.js("lib/hc-sticky.js") | $raw %]
476 [% IF ( circulation ) %]
477 [% INCLUDE 'str/members-menu.inc' %]
478 [% Asset.js("js/members-menu.js") | $raw %]
480 [% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
482 var columns_settings = [% TablesSettings.GetColumns('tools', 'logviewer', 'logst', 'json') | $raw %];
484 [% Asset.js("js/viewlog.js") | $raw %]
487 [% INCLUDE 'intranet-bottom.inc' %]