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