1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports › Circulation statistics [% IF ( do_it ) %]› Results[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <style type="text/css">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> [% IF ( do_it ) %]› <a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation statistics</a> › Results [% ELSE %]› Circulation statistics[% END %]</div>
15 <div id="doc3" class="yui-t2">
22 [% FOREACH mainloo IN mainloop %]
23 <h1>Circulation statistics</h1>
24 [% IF ( mainloo.loopfilter ) %]
27 [% FOREACH loopfilte IN mainloo.loopfilter %]
28 [% IF ( loopfilte.err ) %]<li class="error">Error:
29 [% ELSIF ( loopfilte.sql ) %]<li class="sql">
32 [% loopfilte.crit %] [% loopfilte.filter %]
40 <th>[% mainloo.line %] / [% mainloo.column %]</th>
41 [% FOREACH loopco IN mainloo.loopcol %]
42 <th>[% loopco.coltitle_display |html %]</th>
46 [% FOREACH loopro IN mainloo.looprow %]
47 <tr[% UNLESS ( loop.odd ) %] class="highlight"[% END %]>
48 <td>[% DEFAULT loopro.rowtitle_display="UNKNOWN VALUE" |html %]</td>
49 [% FOREACH loopcel IN loopro.loopcell %]
50 <td>[% DEFAULT loopcel.value=" " %]</td>
52 <td>[% loopro.totalrow %]</td>
57 [% FOREACH loopfoote IN mainloo.loopfooter %]
58 <th>[% loopfoote.totalcol %]</th>
60 <th>[% mainloo.total %]</th>
66 <form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
67 <fieldset class="rows">
68 <legend>Circulation statistics</legend><table>
80 <td><input type="radio" name="Line" value="datetime" /></td>
81 <td><input type="radio" name="Column" value="datetime" /></td>
82 <td><label for="from">From</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
83 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
84 <script type="text/javascript">
86 function validate1(date) {
87 var day = date.getDate();
88 var month = date.getMonth() + 1;
89 var year = date.getFullYear();
90 var weekDay = date.getDay();
91 var dayMonth = month + '-' + day;
92 var dateString = year + '-' + month + '-' + day;
93 var dateTo = document.getElementById('to').value.split("-");
94 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
95 if (date > limitDate) {
103 ifFormat : "[% DHTMLcalendar_dateformat %]",
104 button : "openCalendarFrom",
105 disableFunc : validate1,
106 dateStatusFunc : validate1
110 <label for="to">To</label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
111 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
112 <script type="text/javascript">
114 function validate2(date) {
115 var day = date.getDate();
116 var month = date.getMonth() + 1;
117 var year = date.getFullYear();
118 var weekDay = date.getDay();
119 var dayMonth = month + '-' + day;
120 var dateString = year + '-' + month + '-' + day;
121 var dateFrom = document.getElementById('from').value.split("-");
122 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
123 if (limitDate > date) {
131 ifFormat : "[% DHTMLcalendar_dateformat %]",
132 button : "openCalendarTo",
133 disableFunc : validate2,
134 dateStatusFunc : validate2
137 </script> <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
140 <tr class="highlight">
141 <td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
142 <option value ="issue">Checkout</option>
143 <option value ="renew">Renewal</option>
144 <option value ="return">Checkin</option>
145 <option value ="localuse">Local Use</option>
147 <td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
148 <option value="">None</option>
149 <option value ="1">Day of week</option>
150 <option value ="2">Month</option>
151 <option value ="3">Year</option>
155 <label for="PeriodDaySel">Select Day: </label><select name="PeriodDaySel" id="PeriodDaySel">
156 <option value =""></option>
157 <option value ="Monday">Monday</option>
158 <option value ="Tuesday">Tuesday</option>
159 <option value ="Wednesday">Wednesday</option>
160 <option value ="Thursday">Thursday</option>
161 <option value ="Friday">Friday</option>
162 <option value ="Saturday">Saturday</option>
163 <option value ="Sunday">Sunday</option>
165 <label for="PeriodMonthSel">Select Month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
166 <option value =""></option>
167 <option value ="January">January</option>
168 <option value ="February">February</option>
169 <option value ="March">March</option>
170 <option value ="April">April</option>
171 <option value ="May">May</option>
172 <option value ="June">June</option>
173 <option value ="July">July</option>
174 <option value ="August">August</option>
175 <option value ="September">September</option>
176 <option value ="October">October</option>
177 <option value ="November">November</option>
178 <option value ="December">December</option>
183 <td>Patron Category</td>
184 <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
185 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
186 <td><select name="Filter" id="borcat">
187 <option value=""> </option>
188 [% FOREACH categoryloo IN categoryloop %]
189 [% IF ( categoryloo.selected ) %]<option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.description %]</option>[% ELSE %]<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>[% END %]
194 <tr class="highlight">
196 <td><input type="radio" name="Line" value="itemtype" /></td>
197 <td><input type="radio" name="Column" value="itemtype" /></td>
198 <td><select name="Filter" id="itemtype">
199 <option value=""> </option>
200 [% FOREACH itemtypeloo IN itemtypeloop %]
201 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.code %]" selected="selected">[% itemtypeloo.description %]</option>[% ELSE %]<option value="[% itemtypeloo.code %]">[% itemtypeloo.description %]</option>[% END %]
208 <td><input type="radio" name="Line" value="branch" /></td>
209 <td><input type="radio" name="Column" value="branch" /></td>
210 <td><select name="Filter" id="branch">
211 <option value=""> </option>
212 [% FOREACH branchloo IN branchloop %]
213 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
218 <tr class="highlight">
220 <td><input type="radio" name="Line" value="items.ccode" /></td>
221 <td><input type="radio" name="Column" value="items.ccode" /></td>
222 <td><select name="Filter" id="ccode">
223 <option value=""> </option>
224 [% FOREACH ccodeloo IN ccodeloop %]
225 [% IF ( ccodeloo.selected ) %] <option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
231 <td>Shelving Location</td>
232 <td><input type="radio" name="Line" value="items.location" /></td>
233 <td><input type="radio" name="Column" value="items.location" /></td>
234 <td><select name="Filter" id="location">
235 <option value=""> </option>
236 [% FOREACH locationloo IN locationloop %]
237 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
242 <tr class="highlight">
243 <td>Item Call Number</td>
246 <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
248 [% IF ( hassort1 ) %]
249 <tr><td>Patron sort1</td>
250 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
251 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
252 <td><select name="Filter" id="sort1">
253 <option value=""> </option>
254 [% FOREACH Bsort IN Bsort1 %]
255 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
261 [% IF ( hassort2 ) %]
262 <tr class="highlight"><td>Patron sort2</td>
263 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
264 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
265 <td><select name="Filter" id="sort2">
266 <option value=""> </option>
267 [% FOREACH Bsort IN Bsort2 %]
268 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
274 <tr><td>Home branch</td>
275 <td><input type="radio" name="Line" value="items.homebranch" /></td>
276 <td><input type="radio" name="Column" value="items.homebranch" /></td>
277 <td><select name="Filter" id="homebranch">
278 <option value=""> </option>
279 [% FOREACH branchloo IN branchloop %]
280 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
286 <tr><td>Holding branch</td>
287 <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
288 <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
289 <td><select name="Filter" id="holdingbranch">
290 <option value=""> </option>
291 [% FOREACH branchloo IN branchloop %]
292 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
299 </table><br /></fieldset>
301 <fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count total items</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
302 <li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
304 <fieldset class="rows">
305 <legend>Output</legend>
306 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
307 <li><label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" /> <label class="inline" for="MIME">Into an application
308 </label>[% CGIextChoice %]
309 [% CGIsepChoice %]</li></ol>
312 <fieldset class="action">
313 <input type="submit" value="Submit" />
314 <input type="hidden" name="report_name" value="[% report_name %]" />
315 <input type="hidden" name="do_it" value="1" />
323 [% INCLUDE 'reports-menu.inc' %]
326 [% INCLUDE 'intranet-bottom.inc' %]