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 %]
48 <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
49 [% FOREACH loopcel IN loopro.loopcell %]
50 <td>[% 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" size="10" id="from" name="Filter" class="datepickerfrom" />
83 <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
84 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
88 <td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
89 <option value ="issue">Checkout</option>
90 <option value ="renew">Renewal</option>
91 <option value ="return">Checkin</option>
92 <option value ="localuse">Local Use</option>
94 <td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
95 <option value="">None</option>
96 <option value ="1">Day of week</option>
97 <option value ="2">Month</option>
98 <option value ="3">Year</option>
102 <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
103 <option value =""></option>
104 <option value ="Monday">Monday</option>
105 <option value ="Tuesday">Tuesday</option>
106 <option value ="Wednesday">Wednesday</option>
107 <option value ="Thursday">Thursday</option>
108 <option value ="Friday">Friday</option>
109 <option value ="Saturday">Saturday</option>
110 <option value ="Sunday">Sunday</option>
112 <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
113 <option value =""></option>
114 <option value ="January">January</option>
115 <option value ="February">February</option>
116 <option value ="March">March</option>
117 <option value ="April">April</option>
118 <option value ="May">May</option>
119 <option value ="June">June</option>
120 <option value ="July">July</option>
121 <option value ="August">August</option>
122 <option value ="September">September</option>
123 <option value ="October">October</option>
124 <option value ="November">November</option>
125 <option value ="December">December</option>
130 <td>Patron category</td>
131 <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
132 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
133 <td><select name="Filter" id="borcat">
134 <option value=""> </option>
135 [% FOREACH categoryloo IN categoryloop %]
136 [% IF ( categoryloo.selected ) %]<option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.description %]</option>[% ELSE %]<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>[% END %]
143 <td><input type="radio" name="Line" value="itemtype" /></td>
144 <td><input type="radio" name="Column" value="itemtype" /></td>
145 <td><select name="Filter" id="itemtype">
146 <option value=""> </option>
147 [% FOREACH itemtypeloo IN itemtypeloop %]
148 [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.code %]" selected="selected">[% itemtypeloo.description %]</option>[% ELSE %]<option value="[% itemtypeloo.code %]">[% itemtypeloo.description %]</option>[% END %]
155 <td><input type="radio" name="Line" value="branch" /></td>
156 <td><input type="radio" name="Column" value="branch" /></td>
157 <td><select name="Filter" id="branch">
158 <option value=""> </option>
159 [% FOREACH branchloo IN branchloop %]
160 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
167 <td><input type="radio" name="Line" value="items.ccode" /></td>
168 <td><input type="radio" name="Column" value="items.ccode" /></td>
169 <td><select name="Filter" id="ccode">
170 <option value=""> </option>
171 [% FOREACH ccodeloo IN ccodeloop %]
172 [% IF ( ccodeloo.selected ) %] <option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
178 <td>Shelving location</td>
179 <td><input type="radio" name="Line" value="items.location" /></td>
180 <td><input type="radio" name="Column" value="items.location" /></td>
181 <td><select name="Filter" id="location">
182 <option value=""> </option>
183 [% FOREACH locationloo IN locationloop %]
184 [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
190 <td>Item call number</td>
193 <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
195 [% IF ( hassort1 ) %]
196 <tr><td>Patron sort 1</td>
197 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
198 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
199 <td><select name="Filter" id="sort1">
200 <option value=""> </option>
201 [% FOREACH Bsort IN Bsort1 %]
202 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
208 [% IF ( hassort2 ) %]
209 <tr><td>Patron sort 2</td>
210 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
211 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
212 <td><select name="Filter" id="sort2">
213 <option value=""> </option>
214 [% FOREACH Bsort IN Bsort2 %]
215 [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
221 <tr><td>Home library</td>
222 <td><input type="radio" name="Line" value="items.homebranch" /></td>
223 <td><input type="radio" name="Column" value="items.homebranch" /></td>
224 <td><select name="Filter" id="homebranch">
225 <option value=""> </option>
226 [% FOREACH branchloo IN branchloop %]
227 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
233 <tr><td>Holding library</td>
234 <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
235 <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
236 <td><select name="Filter" id="holdingbranch">
237 <option value=""> </option>
238 [% FOREACH branchloo IN branchloop %]
239 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
246 </table><br /></fieldset>
248 <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>
249 <li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
251 <fieldset class="rows">
252 <legend>Output</legend>
255 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
258 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
259 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
260 <label class="inline" for="MIME">Into an application</label>
261 <select name="MIME" id="MIME" size="1">
262 [% FOREACH value IN CGIextChoice %]
263 <option value="[% value %]">[% value %]</option>
266 <select name="sep" id="sep" size="1">
267 [% FOREACH value IN CGIsepChoice.values.sort() %]
268 [% IF ( value == CGIsepChoice.default ) %]
269 <option value="[% value %]" selected="selected">[% value %]</option>
271 <option value="[% value %]">[% value %]</option>
279 <fieldset class="action">
280 <input type="submit" value="Submit" />
281 <input type="hidden" name="report_name" value="[% report_name %]" />
282 <input type="hidden" name="do_it" value="1" />
290 [% INCLUDE 'reports-menu.inc' %]
293 [% INCLUDE 'intranet-bottom.inc' %]