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