Merge remote-tracking branch 'origin/new/bug_6720'
[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                                        [% IF ( module == 'CIRCULATION' ) %]
131                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.user %]" title="display detail for this user."> [% loopro.user %] </a>
132                                         [% ELSE %]
133                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.user %]" title="display detail for this librarian."> [% loopro.user %] </a>
134                                         [% END %]
135                                     </td>
136                                     <td>[% loopro.module %]</td>
137                                     <td>[% loopro.action %]</td>
138                                     <td>
139                                         [% IF ( module == 'MEMBERS' ) %]
140                                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> member [% loopro.object %] </a>
141                                         [% ELSE %]
142                                             [% IF ( module == 'CIRCULATION' ) %]
143                                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details.">
144                                                 [% IF ( loopro.object ) %]
145                                                     member [% loopro.object %]
146                                                 [% END %]
147                                             </a>
148                                             [% ELSE %]
149                                                 [% IF ( module == 'CATALOGUING' ) %]
150                                                     [% IF ( info == 'item' ) %]
151                                                         <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>
152                                                     [% ELSE %]
153                                                         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object %]" title="Display detail for this biblio">biblio [% loopro.object %]</a>
154                                                     [% END %]
155                                                 [% ELSE %]
156                                                     [% IF ( module == 'SERIAL' ) %]
157                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]"> [% loopro.object %] </a>
158                                                     [% ELSE %]
159                                                         [% IF ( module == 'AUTHORITIES' ) %]
160                                                             <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="Display detail for this authority">auth [% loopro.object %]</a>
161                                                         [% ELSE %]
162                                                             [% loopro.object %]
163                                                         [% END %]
164                                                     [% END %]
165                                                 [% END %]
166                                             [% END %]
167                                         [% END %]
168                                     </td>
169                                     <td>
170                                         [% IF ( loopro.CIRCULATION ) %]
171                                             <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=[% loopro.info %]&amp;biblionumber=[% loopro.biblionumber %]&amp;bi=[% loopro.biblioitemnumber %]#item[% loopro.object %]" title="Display detail for this biblio">Item [% loopro.barcode |html %]</a>
172                                         [% ELSE %]
173                                             [% loopro.info |html %]
174                                         [% END %]
175                                     </td>
176                                 </tr>
177                             [% END %]
178                         </table>
179                     [% ELSE %]
180                         <div class="dialog alert">
181                             No log found
182                             [% IF ( CATALOGUING ) %]
183                                 for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object %]">Bibliographic record [% object %]</a>
184                             [% END %]
185                             [% IF ( MEMBERS ) %]
186                                 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object %]">[% INCLUDE 'patron-title.inc' %]</a>
187                             [% END %]
188                             .
189                         </div>
190                     [% END %]
191                 [% END %]
192                         </div>
193                 </div>
194                 <div class="yui-b noprint">
195                         [% IF ( menu ) %]
196                                 [% INCLUDE 'circ-menu.inc' %]
197                         [% ELSE %]
198                                 [% IF ( CATALOGUING ) %]
199                                         [% INCLUDE 'biblio-view-menu.inc' %]
200                                 [% ELSE %]
201                                         [% INCLUDE 'tools-menu.inc' %]
202                                 [% END %]
203                         [% END %]
204                 </div>
205         </div>
206 [% INCLUDE 'intranet-bottom.inc' %]