Merge remote branch 'kc/master' into new/enh/bug_5917
[koha.git] / koha-tt / 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>
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                                 <h1>Browse system logs</h1>
31                                 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
32                                         [% IF ( do_it ) %]
33                                                 <input type="hidden" name="do_it" value="[% do_it %]" />
34                                         [% END %]
35                                         <input type="hidden" name="src" value="[% src %]" />
36                                         <fieldset class="rows">
37                                                 <ol>
38                                                         <li>
39                                                                 <label for="user">Librarian:</label>
40                                                                 <input type="text" name="user" id="user" value="[% user %]" />
41                                                         </li>
42                                                         <li>
43                                                                 <label for="modules">Module:</label>
44                                                                 <select name="modules" id="modules" multiple="multiple">
45                                                                         <option value="" selected="selected">All</option>
46                                                                         <option value ="CATALOGUING">Catalog</option>
47                                                                         <option value ="AUTHORITIES">Authorities</option>
48                                                                         <option value ="MEMBERS">Patrons</option>
49                                                                         <option value ="ACQUISITION">Acquisitions</option>
50                                                                         <option value ="SERIAL">Serials</option>
51                                                                         <option value="CIRCULATION">Circulation</option>
52                                                                         <option value="LETTER">Letter</option>
53                                                                         <option value="FINES">Fines</option>
54                                                                         <option value="SYSTEMPREFERENCE">System Prefs</option>
55                                                                 </select>
56                                                         </li>
57                                                         <li>
58                                                                 <label for="action">Action:</label>
59                                                                 <select name="action" id="action">
60                                                                         <option value ="">All</option>
61                                                                         <option value ="add">Add</option>
62                                                                         <option value ="del">Delete</option>
63                                                                         <option value ="mod">Modify</option>
64                                                                         <option value="issue">Checkout</option>
65                                                                         <option value="return">Return</option>
66                                                                 </select>
67                                                         </li>
68                                                         <li>
69                                                                 <label for="object">Object: </label>
70                                                                 <input type="text" id="object" name="object" value="[% object %]" />
71                                                         </li>
72                                                         <li>
73                                                                 <label for="info">Info:</label>
74                                                                 <input type="text" id="info" name="info" value="[% info %]" />
75                                                         </li>
76                                                         <li>
77                                                                 <label for="from"> Display from: </label> <input type="text" size="10" id="from" name="from" value="[% datefrom %]" />
78                                                                 <img src="[% themelang %]/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarFrom" style="cursor: pointer;" />
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 %]" />
83                                                                 <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" alt="Show Calendar" style="cursor: pointer;" border="0" />
84                                                                         <script type="text/javascript">
85                                                                         //<![CDATA[
86
87                                                                         // return true if the date is blocked.
88                                                                         function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}
89                                                                         function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}
90
91                                                                         Calendar.setup({
92                                                                                 inputField : "from",
93                                                                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
94                                                                                 button : "openCalendarFrom",
95                                                                                 disableFunc : disable_from,
96                                                                                 dateStatusFunc : disable_from
97                                                                         });
98                                                                         Calendar.setup({
99                                                                                 inputField : "to",
100                                                                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
101                                                                                 button : "openCalendarTo",
102                                                                                 disableFunc : disable_to,
103                                                                                 dateStatusFunc : disable_to
104                                                                         });
105                                                                         //]]>
106                                                                         </script>
107                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
108                                                         </li>
109                                                 </ol>
110                                         </fieldset>
111                                         <fieldset class="rows">
112                                                 <legend>Output</legend>
113                                                 <ol>
114                                                         <li>
115                                                                 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
116                                                         </li>
117                                                         <li>
118                                                                 <label for="file">To a file:</label>
119                                                                 <input id="file" type="radio" name="output" value="file" />
120                                                                 <label class="inline" for="basename">Named:</label>
121                                                                 <input type="text" name="basename" id="basename" value="Export" />
122                                                                 <!--
123                                                                         <label for="MIME" class="inline">Into an application:</label>
124                                                                         [% CGIextChoice %]
125                                                                         [% CGIsepChoice %]
126                                                                 -->
127                                                                 <input type="hidden" name="report_name" value="[% report_name %]" />
128                                                         </li>
129                                                 </ol>
130                                         </fieldset>
131                                         <fieldset class="action">
132                                                 <input type="submit" value="Submit" />
133                                                 <input type="hidden" name="do_it" value="1" />
134                                         </fieldset>
135                                         [% IF ( do_it ) %]
136                                                 [% IF ( total ) %]
137                                                         <h4>[% total %] lines found.</h4>
138                                                         <table>
139                                                                 <tr>
140                                                                         <th>Date</th>
141                                                                         <th>Librarian</th>
142                                                                         <th>Module</th>
143                                                                         <th>Action</th>
144                                                                         <th>Object</th>
145                                                                         <th>Info</th>
146                                                                 </tr>
147                                                                 [% FOREACH loopro IN looprow %]
148                                                                         [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
149                                                                                 <td>[% loopro.timestamp %]</td>
150                                                                                 <td>
151                                                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.user %]" title="display detail for this librarian."> [% loopro.user %] </a>
152                                                                                 </td>
153                                                                                 <td>[% loopro.module %]</td>
154                                                                                 <td>[% loopro.action %]</td>
155                                                                                 <td>
156                                                                                         [% IF ( module == 'MEMBERS' ) %]
157                                                                                                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> member [% loopro.object %] </a>
158                                                                                         [% ELSE %]
159                                                                                                 [% IF ( module == 'CIRCULATION' ) %]
160                                                                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details.">
161                                                                                                                 [% IF ( loopro.object ) %]
162                                                                                                                         member [% loopro.object %]
163                                                                                                                 [% END %]
164                                                                                                         </a>
165                                                                                                 [% ELSE %]
166                                                                                                         [% IF ( module == 'CATALOGUING' ) %]
167                                                                                                                 [% IF ( info == 'item' ) %]
168                                                                                                                         <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>
169                                                                                                                 [% ELSE %]
170                                                                                                                         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.object %]" title="Display detail for this biblio">biblio [% loopro.object %]</a>
171                                                                                                                 [% END %]
172                                                                                                         [% ELSE %]
173                                                                                                                 [% IF ( module == 'SERIAL' ) %]
174                                                                                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]"> [% loopro.object %] </a>
175                                                                                                                 [% ELSE %]
176                                                                                                                         [% IF ( module == 'AUTHORITIES' ) %]
177                                                                                                                                 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="Display detail for this authority">auth [% loopro.object %]</a>
178                                                                                                                         [% ELSE %]
179                                                                                                                                 [% loopro.object %]
180                                                                                                                         [% END %]
181                                                                                                                 [% END %]
182                                                                                                         [% END %]
183                                                                                                 [% END %]
184                                                                                         [% END %]
185                                                                                 </td>
186                                                                                 <td>
187                                                                                         [% IF ( loopro.CIRCULATION ) %]
188                                                                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.info %]" title="Display detail for this biblio">biblio [% loopro.info |html %]</a>
189                                                                                         [% ELSE %]
190                                                                                                 [% loopro.info |html %]
191                                                                                         [% END %]
192                                                                                 </td>
193                                                                         </tr>
194                                                                 [% END %]
195                                                         </table>
196                                                 [% ELSE %]
197                                                         <div class="dialog alert">
198                                                                 No log found
199                                                                 [% IF ( CATALOGUING ) %]
200                                                                         for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object %]">Bibliographic Record [% object %]</a>
201                                                                 [% END %]
202                                                                 [% IF ( MEMBERS ) %]
203                                                                         for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object %]">[% firstname %] [% surname %] ([% cardnumber %])</a>
204                                                                 [% END %]
205                                                                 .
206                                                         </div>
207                                                 [% END %]
208                                         [% END %]
209                                 </form>
210                         </div>
211                 </div>
212                 <div class="yui-b noprint">
213                         [% IF ( menu ) %]
214                                 [% INCLUDE 'circ-menu.inc' %]
215                         [% ELSE %]
216                                 [% IF ( CATALOGUING ) %]
217                                         [% INCLUDE 'biblio-view-menu.inc' %]
218                                 [% ELSE %]
219                                         [% INCLUDE 'tools-menu.inc' %]
220                                 [% END %]
221                         [% END %]
222                 </div>
223         </div>
224 [% INCLUDE 'intranet-bottom.inc' %]