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">
9 <body id="rep_issues_stats" class="rep">
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 %]
50 <tr class="highlight">
52 <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
53 [% FOREACH loopcel IN loopro.loopcell %]
54 <td>[% loopcel.value %]</td>
56 <td>[% loopro.totalrow %]</td>
61 [% FOREACH loopfoote IN mainloo.loopfooter %]
62 <th>[% loopfoote.totalcol %]</th>
64 <th>[% mainloo.total %]</th>
70 <form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
71 <fieldset class="rows">
72 <legend>Circulation statistics</legend><table>
84 <td><input type="radio" name="Line" value="datetime" /></td>
85 <td><input type="radio" name="Column" value="datetime" /></td>
86 <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" />
87 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
88 <script type="text/javascript">
90 function validate1(date) {
91 var day = date.getDate();
92 var month = date.getMonth() + 1;
93 var year = date.getFullYear();
94 var weekDay = date.getDay();
95 var dayMonth = month + '-' + day;
96 var dateString = year + '-' + month + '-' + day;
97 var dateTo = document.getElementById('to').value.split("-");
98 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
99 if (date > limitDate) {
107 ifFormat : "[% DHTMLcalendar_dateformat %]",
108 button : "openCalendarFrom",
109 disableFunc : validate1,
110 dateStatusFunc : validate1
114 <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" />
115 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
116 <script type="text/javascript">
118 function validate2(date) {
119 var day = date.getDate();
120 var month = date.getMonth() + 1;
121 var year = date.getFullYear();
122 var weekDay = date.getDay();
123 var dayMonth = month + '-' + day;
124 var dateString = year + '-' + month + '-' + day;
125 var dateFrom = document.getElementById('from').value.split("-");
126 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
127 if (limitDate > date) {
135 ifFormat : "[% DHTMLcalendar_dateformat %]",
136 button : "openCalendarTo",
137 disableFunc : validate2,
138 dateStatusFunc : validate2
141 </script> <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
144 <tr class="highlight">
145 <td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
146 <option value ="issue">Checkout</option>
147 <option value ="renew">Renewal</option>
148 <option value ="return">Checkin</option>
149 <option value ="localuse">Local Use</option>
151 <td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
152 <option value="">None</option>
153 <option value ="1">Day of week</option>
154 <option value ="2">Month</option>
155 <option value ="3">Year</option>
159 <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
160 <option value =""></option>
161 <option value ="Monday">Monday</option>
162 <option value ="Tuesday">Tuesday</option>
163 <option value ="Wednesday">Wednesday</option>
164 <option value ="Thursday">Thursday</option>
165 <option value ="Friday">Friday</option>
166 <option value ="Saturday">Saturday</option>
167 <option value ="Sunday">Sunday</option>
169 <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
170 <option value =""></option>
171 <option value ="January">January</option>
172 <option value ="February">February</option>
173 <option value ="March">March</option>
174 <option value ="April">April</option>
175 <option value ="May">May</option>
176 <option value ="June">June</option>
177 <option value ="July">July</option>
178 <option value ="August">August</option>
179 <option value ="September">September</option>
180 <option value ="October">October</option>
181 <option value ="November">November</option>
182 <option value ="December">December</option>
187 <td>Patron category</td>
188 <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
189 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
190 <td><select name="Filter" id="borcat">
191 <option value=""> </option>
192 [% FOREACH categoryloo IN categoryloop %]
193 [% IF ( categoryloo.selected ) %]<option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.description %]</option>[% ELSE %]<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>[% END %]
198 <tr class="highlight">
200 <td><input type="radio" name="Line" value="itemtype" /></td>
201 <td><input type="radio" name="Column" value="itemtype" /></td>
202 <td><select name="Filter" id="itemtype">
203 <option value=""> </option>
204 [% FOREACH itemtypeloo IN itemtypeloop %]
205 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.code %]" selected="selected">[% itemtypeloo.description %]</option>[% ELSE %]<option value="[% itemtypeloo.code %]">[% itemtypeloo.description %]</option>[% END %]
212 <td><input type="radio" name="Line" value="branch" /></td>
213 <td><input type="radio" name="Column" value="branch" /></td>
214 <td><select name="Filter" id="branch">
215 <option value=""> </option>
216 [% FOREACH branchloo IN branchloop %]
217 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
222 <tr class="highlight">
224 <td><input type="radio" name="Line" value="items.ccode" /></td>
225 <td><input type="radio" name="Column" value="items.ccode" /></td>
226 <td><select name="Filter" id="ccode">
227 <option value=""> </option>
228 [% FOREACH ccodeloo IN ccodeloop %]
229 [% IF ( ccodeloo.selected ) %] <option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
235 <td>Shelving location</td>
236 <td><input type="radio" name="Line" value="items.location" /></td>
237 <td><input type="radio" name="Column" value="items.location" /></td>
238 <td><select name="Filter" id="location">
239 <option value=""> </option>
240 [% FOREACH locationloo IN locationloop %]
241 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
246 <tr class="highlight">
247 <td>Item call number</td>
250 <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
252 [% IF ( hassort1 ) %]
253 <tr><td>Patron sort 1</td>
254 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
255 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
256 <td><select name="Filter" id="sort1">
257 <option value=""> </option>
258 [% FOREACH Bsort IN Bsort1 %]
259 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
265 [% IF ( hassort2 ) %]
266 <tr class="highlight"><td>Patron sort 2</td>
267 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
268 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
269 <td><select name="Filter" id="sort2">
270 <option value=""> </option>
271 [% FOREACH Bsort IN Bsort2 %]
272 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
278 <tr><td>Home library</td>
279 <td><input type="radio" name="Line" value="items.homebranch" /></td>
280 <td><input type="radio" name="Column" value="items.homebranch" /></td>
281 <td><select name="Filter" id="homebranch">
282 <option value=""> </option>
283 [% FOREACH branchloo IN branchloop %]
284 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
290 <tr><td>Holding library</td>
291 <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
292 <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
293 <td><select name="Filter" id="holdingbranch">
294 <option value=""> </option>
295 [% FOREACH branchloo IN branchloop %]
296 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
303 </table><br /></fieldset>
305 <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>
306 <li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
308 <fieldset class="rows">
309 <legend>Output</legend>
310 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
311 <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
312 </label>[% CGIextChoice %]
313 [% CGIsepChoice %]</li></ol>
316 <fieldset class="action">
317 <input type="submit" value="Submit" />
318 <input type="hidden" name="report_name" value="[% report_name %]" />
319 <input type="hidden" name="do_it" value="1" />
327 [% INCLUDE 'reports-menu.inc' %]
330 [% INCLUDE 'intranet-bottom.inc' %]