View | Details | Raw Unified | Return to bug 31827
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-85 / +86 lines)
Lines 323-419 Link Here
323
                            <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a>
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>
324
                            <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button>
325
                        </div>
325
                        </div>
326
                        <table id="logst">
326
                        <div class="page-section">
327
                            <thead>
327
                            <table id="logst">
328
                                <tr>
328
                                <thead>
329
                                    <th>Date</th>
329
                                    <tr>
330
                                    <th>Librarian</th>
330
                                        <th>Date</th>
331
                                    <th>Module</th>
331
                                        <th>Librarian</th>
332
                                    <th>Action</th>
332
                                        <th>Module</th>
333
                                    <th>Object</th>
333
                                        <th>Action</th>
334
                                    <th>Info</th>
334
                                        <th>Object</th>
335
                                    <th>Interface</th>
335
                                        <th>Info</th>
336
                                </tr>
336
                                        <th>Interface</th>
337
                            </thead>
337
                                    </tr>
338
                            <tbody>
338
                                </thead>
339
                            [% FOREACH loopro IN looprow %]
339
                                <tbody>
340
                                <tr>
340
                                [% FOREACH loopro IN looprow %]
341
                                    <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
341
                                    <tr>
342
                                    <td>
342
                                        <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td>
343
                                        [% IF loopro.librarian %]
343
                                        <td>
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>
344
                                            [% IF loopro.librarian %]
345
                                        [% ELSE %]
345
                                                <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>
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 %]
346
                                            [% ELSE %]
356
                                                [% loopro.object | html %]
347
                                                [% loopro.user | html %]
357
                                            [% END %]
348
                                            [% END %]
358
                                        [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
349
                                        </td>
359
                                            [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
350
                                        <td>[% PROCESS translate_log_module module=loopro.module %]</td>
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
351
                                        <td>[% PROCESS translate_log_action action=loopro.action %]</td>
361
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
352
                                        <td>
362
                                            [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
353
                                            [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
363
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
354
                                                [% IF loopro.patron %]
355
                                                    <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>
356
                                                [% ELSE %]
357
                                                    [% loopro.object | html %]
358
                                                [% END %]
359
                                            [% ELSIF ( loopro.module == 'CATALOGUING' ) %]
360
                                                [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
361
                                                    <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
362
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a>
363
                                                [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
364
                                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a>
365
                                                [% ELSE %]
366
                                                    [% loopro.object | html %]
367
                                                [% END %]
368
                                            [% ELSIF ( loopro.module == 'SERIAL' ) %]
369
                                                <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
370
                                            [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
371
                                                <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
372
                                            [% ELSIF ( loopro.module == 'NOTICES' ) %]
373
                                                [% IF ( loopro.notice ) %]
374
                                                    <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>
375
                                                [% ELSE %]
376
                                                    [% loopro.object | html %]
377
                                                [% END %]
378
                                            [% ELSIF ( loopro.module == 'RECALLS' ) %]
379
                                                [% IF loopro.recall.item_level %]
380
                                                    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>
381
                                                [% ELSE %]
382
                                                    Biblio-level recall on <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.recall.biblio_id | uri %]">biblio</a>
383
                                                [% END %]
384
                                            [% ELSIF ( loopro.module == 'ACQUISITIONS' && loopro.action == 'ACQUISITION ORDER' && loopro.object ) %]
385
                                                [% IF ( CAN_user_acquisition_order_manage ) %]
386
                                                    Basket <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loopro.object | uri %]">[% loopro.object | html %]</a>
387
                                                [% ELSE %]
388
                                                    Basket [% loopro.object | html %]
389
                                                [% END %]
364
                                            [% ELSE %]
390
                                            [% ELSE %]
365
                                                [% loopro.object | html %]
391
                                                [% loopro.object | html %]
366
                                            [% END %]
392
                                            [% END %]
367
                                        [% ELSIF ( loopro.module == 'SERIAL' ) %]
393
                                        </td>
368
                                            <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a>
394
                                        <td>
369
                                        [% ELSIF ( loopro.module == 'AUTHORITIES' ) %]
395
                                            [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %]
370
                                            <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a>
396
                                                <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>
371
                                        [% ELSIF ( loopro.module == 'NOTICES' ) %]
397
                                            [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
372
                                            [% IF ( loopro.notice ) %]
398
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
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>
399
                                                <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
374
                                            [% ELSE %]
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>
375
                                                [% loopro.object | html %]
401
                                                </div>
376
                                            [% END %]
402
                                            [% ELSIF loopro.module == "NOTICES" %]
377
                                        [% ELSIF ( loopro.module == 'RECALLS' ) %]
403
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
378
                                            [% IF loopro.recall.item_level %]
404
                                                <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
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>
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>
380
                                            [% ELSE %]
406
                                                </div>
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 %]
407
                                            [% ELSE %]
387
                                                Basket [% loopro.object | html %]
408
                                                <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
409
                                                    [% loopro.info | html %]
410
                                                </div>
388
                                            [% END %]
411
                                            [% END %]
389
                                        [% ELSE %]
412
                                        </td>
390
                                            [% loopro.object | html %]
413
                                        <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
391
                                        [% END %]
414
                                    </tr>
392
                                    </td>
415
                                [% END %]
393
                                    <td>
416
                                </tbody>
394
                                        [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %]
417
                            </table>
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>
418
                        </div> <!-- /.page-section -->
396
                                        [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %]
397
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
398
                                            <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
399
                                                <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>
400
                                            </div>
401
                                        [% ELSIF loopro.module == "NOTICES" %]
402
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div>
403
                                            <div class="compare_info" id="compare_info[% loopro.action_id | html %]">
404
                                                <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>
405
                                            </div>
406
                                        [% ELSE %]
407
                                            <div class="loginfo" id="loginfo[% loopro.action_id | html %]">
408
                                                [% loopro.info | html %]
409
                                            </div>
410
                                        [% END %]
411
                                    </td>
412
                                    <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td>
413
                                </tr>
414
                            [% END %]
415
                            </tbody>
416
                        </table>
417
                    [% ELSE %]
419
                    [% ELSE %]
418
                        <div class="dialog alert">
420
                        <div class="dialog alert">
419
                            No log found
421
                            No log found
420
- 

Return to bug 31827