Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / viewlog.tt
1 [% USE Koha %]
2 [% USE AuthorisedValues %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>
5         Koha &rsaquo; Tools &rsaquo;
6         [% IF ( do_it ) %]
7                 Logs &rsaquo; Results
8         [% ELSE %]
9                 Logs
10         [% END %]
11 </title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% INCLUDE 'calendar.inc' %]
14 </head>
15 <body id="tools_viewlog" class="tools">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'cat-search.inc' %]
18
19 [% BLOCK translate_log_module %]
20 [%    SWITCH module %]
21 [%        CASE 'CATALOGUING'  %]Catalog
22 [%        CASE 'AUTHORITIES'  %]Authorities
23 [%        CASE 'MEMBERS'      %]Patrons
24 [%        CASE 'ACQUISITIONS' %]Acquisitions
25 [%        CASE 'SERIAL'       %]Serials
26 [%        CASE 'CIRCULATION'  %]Circulation
27 [%        CASE 'LETTER'       %]Letter
28 [%        CASE 'FINES'        %]Fines
29 [%        CASE 'SYSTEMPREFERENCE' %]System prefs
30 [%        CASE 'CRONJOBS' %]Cron jobs
31 [%        CASE 'REPORTS'      %]Reports
32 [%        CASE %][% module %]
33 [%    END %]
34 [% END %]
35
36 [% BLOCK translate_log_action %]
37 [%    SWITCH action %]
38 [%        CASE 'ADD'    %]Add
39 [%        CASE 'DELETE' %]Delete
40 [%        CASE 'MODIFY' %]Modify
41 [%        CASE 'ISSUE'  %]Checkout
42 [%        CASE 'RETURN' %]Return
43 [%        CASE 'CREATE' %]Create
44 [%        CASE 'RENEW'  %]Renew
45 [%        CASE 'CHANGE PASS' %]Change password
46 [%        CASE 'ADDCIRCMESSAGE' %]Add circulation message
47 [%        CASE 'DELCIRCMESSAGE' %]Delete circulation message
48 [%        CASE 'Run'    %]Run
49 [%        CASE %][% action %]
50 [%    END %]
51 [% END %]
52
53 <div id="breadcrumbs">
54         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
55         [% IF ( do_it ) %]
56                 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a> &rsaquo; Results
57         [% ELSE %]
58                 Logs
59         [% END %]
60 </div>
61
62 <div id="doc3" class="yui-t2">
63         <div id="bd">
64                 <div id="yui-main">
65                         <div class="yui-b">
66                 [% IF ( CAN_user_reports ) %]
67                                 <h1>Browse system logs</h1>
68                                 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
69                                         [% IF ( do_it ) %]
70                                                 <input type="hidden" name="do_it" value="[% do_it %]" />
71                                         [% END %]
72                                         <input type="hidden" name="src" value="[% src %]" />
73                                         <fieldset class="rows">
74                                                 <ol>
75                                                         <li>
76                                                                 <label for="user">Librarian:</label>
77                                                                 <input type="text" name="user" id="user" value="[% user %]" />
78                                                         </li>
79                         <li>
80                                 <label for="modules">Modules:</label>
81                                 <select name="modules" id="modules" multiple="multiple">
82                                     [% UNLESS modules %]
83                                         <option value="" selected="selected">All</option>
84                                     [% ELSE %]
85                                         <option value="">All</option>
86                                     [% END %]
87                                     [% FOREACH modx IN [ 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'CIRCULATION' 'LETTER' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS' ] %]
88                                         [% IF modules.grep(modx).size %]
89                                             <option value="[% modx %]" selected="selected">[% PROCESS translate_log_module module=modx %]</option>
90                                         [% ELSE %]
91                                             <option value="[% modx %]">[% PROCESS translate_log_module module=modx %]</option>
92                                         [% END %]
93                                     [% END %]
94                                 </select>
95                             </li>
96                             <li>
97                                 <label for="actions">Actions:</label>
98                                 <select name="actions" id="actions" multiple="multiple">
99                                     [% UNLESS actions %]
100                                         <option value="" selected="selected">All</option>
101                                     [% ELSE %]
102                                         <option value="">All</option>
103                                     [% END %]
104
105                                     [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'CHANGE PASS' 'Run' ] %]
106                                         [% IF actions.grep(actx).size %]
107                                             <option value="[% actx %]" selected="selected">[% PROCESS translate_log_action action=actx %]</option>
108                                         [% ELSE %]
109                                                 <option value="[% actx %]">[% PROCESS translate_log_action action=actx %]</option>
110                                         [% END %]
111                                     [% END %]
112                                 </select>
113                             </li>
114                                                         <li>
115                                                                 <label for="object">Object: </label>
116                                                                 <input type="text" id="object" name="object" value="[% object %]" />
117                                                         </li>
118                                                         <li>
119                                                                 <label for="info">Info:</label>
120                                                                 <input type="text" id="info" name="info" value="[% info %]" />
121                                                         </li>
122                                                         <li>
123                                 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom %]" class="datepickerfrom" />
124                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
125                                                         </li>
126                                                         <li>
127                                 <label for="to">Display to: </label> <input size="10" id="to" name="to" type="text" value="[% dateto %]" class="datepickerto" />
128                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
129                                                         </li>
130                                                 </ol>
131                                         </fieldset>
132                                         <fieldset class="rows">
133                                                 <legend>Output</legend>
134                                                 <ol>
135                                                         <li>
136                                                                 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
137                                                         </li>
138                                                         <li>
139                                                                 <label for="file">To a file:</label>
140                                                                 <input id="file" type="radio" name="output" value="file" />
141                                                                 <label class="inline" for="basename">Named:</label>
142                                                                 <input type="text" name="basename" id="basename" value="Export" />
143                                                                 <!--
144                                                                         <label for="MIME" class="inline">Into an application:</label>
145                                                                         [% CGIextChoice %]
146                                                                         [% CGIsepChoice %]
147                                                                 -->
148                                                                 <input type="hidden" name="report_name" value="[% report_name %]" />
149                                                         </li>
150                                                 </ol>
151                                         </fieldset>
152                                         <fieldset class="action">
153                                                 <input type="submit" value="Submit" />
154                                                 <input type="hidden" name="do_it" value="1" />
155                                         </fieldset>
156                         </form>
157                 [% END %]
158                 [% IF ( do_it ) %]
159                     [% IF ( total ) %]
160                         <h4>[% total %] lines found.</h4>
161                         <table>
162                             <thead>
163                                 <tr>
164                                     <th>Date</th>
165                                     <th>Librarian</th>
166                                     <th>Module</th>
167                                     <th>Action</th>
168                                     <th>Object</th>
169                                     <th>Info</th>
170                                 </tr>
171                             </thead>
172                             <tbody>
173                             [% FOREACH loopro IN looprow %]
174                                 <tr>
175                                     <td>[% loopro.timestamp %]</td>
176                                     <td>
177                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.user %]" title="display detail for this librarian."> [% IF ( loopro.userfirstname ) || ( loopro.usersurname ) %][% loopro.userfirstname %] [% loopro.usersurname %] ([% loopro.user %]) [% ELSE %][% loopro.user %][% END %]</a>
178                                     </td>
179                                     <td>[% PROCESS translate_log_module module=loopro.module %]</td>
180                                     <td>[% PROCESS translate_log_action action=loopro.action %]</td>
181                                     <td>
182                                         [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %]
183                                              <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> [% IF ( loopro.object ) %][% IF ( loopro.borrowerfirstname ) || ( loopro.borrowersurname ) %][% loopro.borrowerfirstname %] [% loopro.borrowersurname %] ([% loopro.object %]) [% ELSE %]Member [% loopro.object %][% END %][% END %] </a>
184                                         [% ELSE %]
185                                                 [% IF ( loopro.module == 'CATALOGUING' ) %]
186                                                     [% IF ( loopro.info.substr(0, 4) == 'item' ) %]
187                                                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.object %]&amp;biblionumber=[% loopro.biblionumber %]&amp;bi=[% loopro.biblioitemnumber %]#item[% loopro.object %]">Item [% loopro.object %]</a>
188                                                     [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %]
189                                                         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object %]" title="Display detail for this biblio">Biblio [% loopro.object %]</a>
190                                                     [% ELSE %]
191                                                         [% loopro.object %]
192                                                     [% END %]
193                                                 [% ELSE %]
194                                                     [% IF ( loopro.module == 'SERIAL' ) %]
195                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]">Subscription [% loopro.object %] </a>
196                                                     [% ELSE %]
197                                                         [% IF ( loopro.module == 'AUTHORITIES' ) %]
198                                                             <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="Display detail for this authority">Authority [% loopro.object %]</a>
199                                                         [% ELSE %]
200                                                             [% loopro.object %]
201                                                         [% END %]
202                                                     [% END %]
203                                                 [% END %]
204                                         [% END %]
205                                     </td>
206                                     <td>
207                                         [% IF ( loopro.module == 'CIRCULATION' ) %]
208                                             <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% loopro.info %]&amp;biblionumber=[% loopro.biblionumber %]&amp;bi=[% loopro.biblioitemnumber %]#item[% loopro.info %]" title="Display detail for this item">Item [% loopro.barcode |html %]</a>
209                                         [% ELSE %]
210                                             [% loopro.info |html %]
211                                         [% END %]
212                                     </td>
213                                 </tr>
214                             [% END %]
215                             </tbody>
216                         </table>
217                     [% ELSE %]
218                         <div class="dialog alert">
219                             No log found
220                             [% IF ( CATALOGUING ) %]
221                                 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object %]">Bibliographic record [% object %]</a>
222                             [% END %]
223                             [% IF ( MEMBERS ) %]
224                                 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object %]">[% INCLUDE 'patron-title.inc' %]</a>
225                             [% END %]
226                             .
227                         </div>
228                     [% END %]
229                 [% END %]
230                         </div>
231                 </div>
232                 <div class="yui-b noprint">
233                         [% IF ( menu ) %]
234                                 [% INCLUDE 'circ-menu.inc' %]
235                         [% ELSE %]
236                                 [% IF ( CATALOGUING ) %]
237                                         [% INCLUDE 'biblio-view-menu.inc' %]
238                                 [% ELSE %]
239                                         [% INCLUDE 'tools-menu.inc' %]
240                                 [% END %]
241                         [% END %]
242                 </div>
243         </div>
244 [% INCLUDE 'intranet-bottom.inc' %]