Bugzilla – Attachment 143603 Details for
Bug 31827
Add page-section to list to log viewer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31827: Add page-section to list to log viewer
Bug-31827-Add-page-section-to-list-to-log-viewer.patch (text/plain), 19.68 KB, created by
Katrin Fischer
on 2022-11-09 23:36:44 UTC
(
hide
)
Description:
Bug 31827: Add page-section to list to log viewer
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-11-09 23:36:44 UTC
Size:
19.68 KB
patch
obsolete
>From efe0ab7aa6a5e025e42808f7ada44585a3452e02 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 9 Nov 2022 17:28:13 +0000 >Subject: [PATCH] Bug 31827: Add page-section to list to log viewer > >This patch adds a "page-section" container div around the log viewer >output. > >To test, apply the patch and go to Tools -> Logs. > >- Perform a log search which will return results. >- The table of results should appear in a white box. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/tools/viewlog.tt | 170 +++++++++--------- > 1 file changed, 86 insertions(+), 84 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index 9bf9f915e1..575336b026 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -323,97 +323,99 @@ > <a href="#" id="select_none" class="btn btn-link disabled"><i class="fa fa-remove"></i> Check none</a> > <button class="btn btn-link disabled compare_link"><i class="fa fa-columns"></i> Compare selected</button> > </div> >- <table id="logst"> >- <thead> >- <tr> >- <th>Date</th> >- <th>Librarian</th> >- <th>Module</th> >- <th>Action</th> >- <th>Object</th> >- <th>Info</th> >- <th>Interface</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH loopro IN looprow %] >- <tr> >- <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td> >- <td> >- [% IF loopro.librarian %] >- <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> >- [% ELSE %] >- [% loopro.user | html %] >- [% END %] >- </td> >- <td>[% PROCESS translate_log_module module=loopro.module %]</td> >- <td>[% PROCESS translate_log_action action=loopro.action %]</td> >- <td> >- [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %] >- [% IF loopro.patron %] >- <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> >+ <div class="page-section"> >+ <table id="logst"> >+ <thead> >+ <tr> >+ <th>Date</th> >+ <th>Librarian</th> >+ <th>Module</th> >+ <th>Action</th> >+ <th>Object</th> >+ <th>Info</th> >+ <th>Interface</th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH loopro IN looprow %] >+ <tr> >+ <td data-order="[% loopro.timestamp | html %]">[% loopro.timestamp | $KohaDates with_hours=1 %]</td> >+ <td> >+ [% IF loopro.librarian %] >+ <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> > [% ELSE %] >- [% loopro.object | html %] >+ [% loopro.user | html %] > [% END %] >- [% ELSIF ( loopro.module == 'CATALOGUING' ) %] >- [% IF ( loopro.info.substr(0, 4) == 'item' ) %] >- <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 >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a> >- [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a> >+ </td> >+ <td>[% PROCESS translate_log_module module=loopro.module %]</td> >+ <td>[% PROCESS translate_log_action action=loopro.action %]</td> >+ <td> >+ [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %] >+ [% IF loopro.patron %] >+ <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> >+ [% ELSE %] >+ [% loopro.object | html %] >+ [% END %] >+ [% ELSIF ( loopro.module == 'CATALOGUING' ) %] >+ [% IF ( loopro.info.substr(0, 4) == 'item' ) %] >+ <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 >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber | uri %]" title="Display detail for this biblio">Biblio [% loopro.biblionumber | html %]</a> >+ [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object | uri %]" title="Display detail for this biblio">Biblio [% loopro.object | html %]</a> >+ [% ELSE %] >+ [% loopro.object | html %] >+ [% END %] >+ [% ELSIF ( loopro.module == 'SERIAL' ) %] >+ <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a> >+ [% ELSIF ( loopro.module == 'AUTHORITIES' ) %] >+ <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a> >+ [% ELSIF ( loopro.module == 'NOTICES' ) %] >+ [% IF ( loopro.notice ) %] >+ <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> >+ [% ELSE %] >+ [% loopro.object | html %] >+ [% END %] >+ [% ELSIF ( loopro.module == 'RECALLS' ) %] >+ [% IF loopro.recall.item_level %] >+ Item-level recall on <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.recall.item_id | uri %]&biblionumber=[% loopro.recall.biblio_id | uri %]&bi=[% loopro.recall.item.biblioitemnumber | uri %]">item</a> >+ [% ELSE %] >+ Biblio-level recall on <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.recall.biblio_id | uri %]">biblio</a> >+ [% END %] >+ [% ELSIF ( loopro.module == 'ACQUISITIONS' && loopro.action == 'ACQUISITION ORDER' && loopro.object ) %] >+ [% IF ( CAN_user_acquisition_order_manage ) %] >+ Basket <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loopro.object | uri %]">[% loopro.object | html %]</a> >+ [% ELSE %] >+ Basket [% loopro.object | html %] >+ [% END %] > [% ELSE %] > [% loopro.object | html %] > [% END %] >- [% ELSIF ( loopro.module == 'SERIAL' ) %] >- <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object | uri %]">Subscription [% loopro.object | html %] </a> >- [% ELSIF ( loopro.module == 'AUTHORITIES' ) %] >- <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object | uri %]" title="Display detail for this authority">Authority [% loopro.object | html %]</a> >- [% ELSIF ( loopro.module == 'NOTICES' ) %] >- [% IF ( loopro.notice ) %] >- <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> >- [% ELSE %] >- [% loopro.object | html %] >- [% END %] >- [% ELSIF ( loopro.module == 'RECALLS' ) %] >- [% IF loopro.recall.item_level %] >- Item-level recall on <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.recall.item_id | uri %]&biblionumber=[% loopro.recall.biblio_id | uri %]&bi=[% loopro.recall.item.biblioitemnumber | uri %]">item</a> >- [% ELSE %] >- Biblio-level recall on <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.recall.biblio_id | uri %]">biblio</a> >- [% END %] >- [% ELSIF ( loopro.module == 'ACQUISITIONS' && loopro.action == 'ACQUISITION ORDER' && loopro.object ) %] >- [% IF ( CAN_user_acquisition_order_manage ) %] >- Basket <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loopro.object | uri %]">[% loopro.object | html %]</a> >+ </td> >+ <td> >+ [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %] >+ <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> >+ [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %] >+ <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div> >+ <div class="compare_info" id="compare_info[% loopro.action_id | html %]"> >+ <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> >+ </div> >+ [% ELSIF loopro.module == "NOTICES" %] >+ <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div> >+ <div class="compare_info" id="compare_info[% loopro.action_id | html %]"> >+ <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> >+ </div> > [% ELSE %] >- Basket [% loopro.object | html %] >+ <div class="loginfo" id="loginfo[% loopro.action_id | html %]"> >+ [% loopro.info | html %] >+ </div> > [% END %] >- [% ELSE %] >- [% loopro.object | html %] >- [% END %] >- </td> >- <td> >- [% IF ( loopro.module == 'CIRCULATION' && loopro.object_found ) %] >- <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> >- [% ELSIF loopro.module == "SYSTEMPREFERENCE" || loopro.module == "REPORTS" || loopro.module == "NEWS" %] >- <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div> >- <div class="compare_info" id="compare_info[% loopro.action_id | html %]"> >- <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> >- </div> >- [% ELSIF loopro.module == "NOTICES" %] >- <div class="loginfo" id="loginfo[% loopro.action_id | html %]">[% loopro.info | trim | html %]</div> >- <div class="compare_info" id="compare_info[% loopro.action_id | html %]"> >- <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> >- </div> >- [% ELSE %] >- <div class="loginfo" id="loginfo[% loopro.action_id | html %]"> >- [% loopro.info | html %] >- </div> >- [% END %] >- </td> >- <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td> >- </tr> >- [% END %] >- </tbody> >- </table> >+ </td> >+ <td>[% PROCESS translate_log_interface log_interface=loopro.interface %]</td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ </div> <!-- /.page-section --> > [% ELSE %] > <div class="dialog alert"> > No log found >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31827
:
143559
|
143591
| 143603