3 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
8 [% t("Results") | html %] ›
10 [% t("Circulation statistics") | html %] ›
11 [% t("Reports") | html %] ›
12 [% t("Koha") | html %]
14 [% INCLUDE 'doc-head-close.inc' %]
20 <body id="rep_issues_stats" class="rep">
21 [% WRAPPER 'header.inc' %]
22 [% INCLUDE 'cat-search.inc' %]
25 [% WRAPPER 'sub-header.inc' %]
26 [% WRAPPER breadcrumbs %]
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
31 [% WRAPPER breadcrumb_item %]
32 <a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation statistics</a>
34 [% WRAPPER breadcrumb_item bc_active= 1 %]
38 [% WRAPPER breadcrumb_item bc_active= 1 %]
39 <span>Circulation statistics</span>
42 [% END #/ WRAPPER breadcrumbs %]
43 [% END #/ WRAPPER sub-header.inc %]
45 <div class="main container-fluid">
47 <div class="col-sm-10 col-sm-push-2">
49 [% INCLUDE 'messages.inc' %]
51 <h1>Circulation statistics</h1>
53 [% FOREACH mainloo IN mainloop %]
54 [% IF ( mainloo.loopfilter ) %]
57 [% FOREACH loopfilte IN mainloo.loopfilter %]
58 [% IF ( loopfilte.err ) %]
59 <li class="error">Error:
60 [% ELSIF ( loopfilte.sql ) %]
65 [% SWITCH loopfilte.crit %]
66 [% CASE 0 %]<span>Period from [% loopfilte.filter | html %]</span>
67 [% CASE 1 %]<span>Period to [% loopfilte.filter | html %]</span>
68 [% CASE 2 %]<span>Patron category = [% loopfilte.filter | html %]</span>
69 [% CASE 3 %]<span>Item type = [% loopfilte.filter | html %]</span>
70 [% CASE 4 %]<span>Issuing library = [% loopfilte.filter | html %]</span>
71 [% CASE 5 %]<span>Collection = [% loopfilte.filter | html %]</span>
72 [% CASE 6 %]<span>Location = [% loopfilte.filter | html %]</span>
73 [% CASE 7 %]<span>Item call number >= [% loopfilte.filter | html %]</span>
74 [% CASE 8 %]<span>Item call number < [% loopfilte.filter | html %]</span>
75 [% CASE 9 %]<span>Patron sort1 = [% loopfilte.filter | html %]</span>
76 [% CASE 10 %]<span>Patron sort2 = [% loopfilte.filter | html %]</span>
77 [% CASE 11 %]<span>Home library = [% loopfilte.filter | html %]</span>
78 [% CASE 12 %]<span>Holding library = [% loopfilte.filter | html %]</span>
79 [% CASE 13 %]<span>Patron library = [% loopfilte.filter | html %]</span>
80 [% CASE 14 %]<span>Issuing library = [% loopfilte.filter | html %]</span>
81 [% CASE %]<span>[% loopfilte.crit | html %] = [% loopfilte.filter | html %]</span>
90 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
91 [% FOREACH loopco IN mainloo.loopcol %]
92 <th>[% loopco.coltitle_display | html %]</th>
96 [% FOREACH loopro IN mainloo.looprow %]
98 <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" | html %]</td>
99 [% FOREACH loopcel IN loopro.loopcell %]
100 <td>[% loopcel.value || 0 | html %]</td>
102 <td>[% loopro.totalrow | html %]</td>
107 [% FOREACH loopfoote IN mainloo.loopfooter %]
108 <th>[% loopfoote.totalcol | html %]</th>
110 <th>[% mainloo.total | html %]</th>
116 <form method="get" action="/cgi-bin/koha/reports/issues_stats.pl">
117 <fieldset class="rows">
118 <legend>Circulation statistics</legend><table>
130 <td><input type="radio" name="Line" value="datetime" /></td>
131 <td><input type="radio" name="Column" value="datetime" /></td>
133 <label for="from">From</label>
134 <input type="text" size="10" id="from" name="Filter" class="flatpickr" data-date_to="to" />
135 <label for="to">To</label>
136 <input size="10" id="to" name="Filter" value="" type="text" class="flatpickr" />
137 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
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 ="4">Hour</option>
150 <option value ="1">Day of week</option>
151 <option value ="2">Month</option>
152 <option value ="3">Year</option>
156 <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
157 <option value =""></option>
158 <option value ="Monday">Monday</option>
159 <option value ="Tuesday">Tuesday</option>
160 <option value ="Wednesday">Wednesday</option>
161 <option value ="Thursday">Thursday</option>
162 <option value ="Friday">Friday</option>
163 <option value ="Saturday">Saturday</option>
164 <option value ="Sunday">Sunday</option>
166 <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
167 <option value =""></option>
168 <option value ="January">January</option>
169 <option value ="February">February</option>
170 <option value ="March">March</option>
171 <option value ="April">April</option>
172 <option value ="May">May</option>
173 <option value ="June">June</option>
174 <option value ="July">July</option>
175 <option value ="August">August</option>
176 <option value ="September">September</option>
177 <option value ="October">October</option>
178 <option value ="November">November</option>
179 <option value ="December">December</option>
184 <td>Patron category</td>
185 <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
186 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
187 <td><select name="Filter" id="borcat">
188 <option value=""> </option>
189 [% FOREACH categoryloo IN categoryloop %]
190 <option value="[% categoryloo.categorycode | html %]">[% categoryloo.description | html %]</option>
197 <td><input type="radio" name="Line" value="itemtype" /></td>
198 <td><input type="radio" checked="checked" name="Column" value="itemtype" /></td>
199 <td><select name="Filter" id="itemtype">
200 <option value=""> </option>
201 [% FOREACH itemtype IN itemtypes %]
202 <option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option>
208 <td>Issuing library</td>
209 <td><input type="radio" checked="checked" name="Line" value="branch" /></td>
210 <td><input type="radio" name="Column" value="branch" /></td>
211 <td><select name="Filter" id="branch">
212 <option value=""> </option>
213 [% PROCESS options_for_libraries libraries => Branches.all() %]
219 <td><input type="radio" name="Line" value="items.ccode" /></td>
220 <td><input type="radio" name="Column" value="items.ccode" /></td>
221 <td><select name="Filter" id="ccode">
222 <option value=""> </option>
223 [% FOREACH ccodeloo IN ccodeloop %]
224 <option value="[% ccodeloo.code | html %]">[% ccodeloo.description | html %]</option>
230 <td>Shelving location</td>
231 <td><input type="radio" name="Line" value="items.location" /></td>
232 <td><input type="radio" name="Column" value="items.location" /></td>
233 <td><select name="Filter" id="location">
234 <option value=""> </option>
235 [% FOREACH locationloo IN locationloop %]
236 <option value="[% locationloo.code | html %]">[% locationloo.description | html %]</option>
242 <td>Item call number</td>
245 <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
247 [% IF ( hassort1 ) %]
248 <tr><td>Patron sort 1</td>
249 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
250 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
251 <td><select name="Filter" id="sort1">
252 <option value=""> </option>
253 [% FOREACH Bsort IN Bsort1 %]
254 <option value="[% Bsort.authorised_value | html %]" >[% Bsort.lib | html %]</option>
260 [% IF ( hassort2 ) %]
261 <tr><td>Patron sort 2</td>
262 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
263 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
264 <td><select name="Filter" id="sort2">
265 <option value=""> </option>
266 [% FOREACH Bsort IN Bsort2 %]
267 <option value="[% Bsort.authorised_value | html %]" >[% Bsort.lib | html %]</option>
273 <tr><td>Home library</td>
274 <td><input type="radio" name="Line" value="items.homebranch" /></td>
275 <td><input type="radio" name="Column" value="items.homebranch" /></td>
276 <td><select name="Filter" id="homebranch">
277 <option value=""> </option>
278 [% PROCESS options_for_libraries libraries => Branches.all() %]
283 <tr><td>Holding library</td>
284 <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
285 <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
286 <td><select name="Filter" id="holdingbranch">
287 <option value=""> </option>
288 [% PROCESS options_for_libraries libraries => Branches.all() %]
293 <td>Patron library</td>
294 <td><input type="radio" name="Line" value="borrowers.branchcode" /></td>
295 <td><input type="radio" name="Column" value="borrowers.branchcode" /></td>
297 <select name="Filter" id="patronbranch">
298 <option value=""> </option>
299 [% FOREACH branch IN branchloop %]
300 <option value="[% branch.value | html %]">
301 [% branch.branchname | html %]
307 [% IF (attribute_types_by_class.keys.size) %]
309 <th colspan="4">Patron attributes</th>
311 [% FOREACH class IN attribute_types_by_class.keys.sort %]
314 <th>[% class | html %]</th>
315 <th colspan="3"></th>
318 [% FOREACH attr_type IN attribute_types_by_class.$class %]
320 <td>[% attr_type.description | html %]</td>
321 <td><input type="radio" name="Line" value="borrower_attributes.[% attr_type.code | html %]" /> </td>
322 <td><input type="radio" name="Column" value="borrower_attributes.[% attr_type.code | html %]" /> </td>
324 [% IF attr_type.authorised_value_category %]
325 <select name="Filter_borrower_attributes.[% attr_type.code | html %]">
326 <option value=""> </option>
327 [% FOREACH av IN attr_type.authorised_values %]
328 <option value="[% av.authorised_value | html %]">
334 <input type="text" name="Filter_borrower_attributes.[% attr_type.code | html %]" />
343 </table><br /></fieldset>
345 <fieldset class="rows">
346 <legend>Cell value</legend>
349 <label for="cellvalue1">Count total items:</label>
350 <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" />
353 <label for="cellvalue3">Count unique items:</label>
354 <input type="radio" name="Cellvalue" id="cellvalue3" value="3" />
357 <label for="cellvalue5">Count unique bibliographic records:</label>
358 <input type="radio" name="Cellvalue" id="cellvalue5" value="5" />
363 <fieldset class="rows">
364 <legend>Output</legend>
367 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
370 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
371 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
372 <label class="inline" for="MIME">Into an application:</label>
373 <select name="MIME" id="MIME">
374 [% FOREACH value IN CGIextChoice %]
375 <option value="[% value | html %]">[% value | html %]</option>
378 <select name="sep" id="sep">
379 [% FOREACH value IN CGIsepChoice.values.sort() %]
380 [% IF ( value == CGIsepChoice.default ) %]
381 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
383 <option value="[% value | html %]">[% value | html %]</option>
391 <fieldset class="action">
392 <input type="submit" class="btn btn-primary" value="Submit" />
393 <input type="hidden" name="report_name" value="[% report_name | html %]" />
394 <input type="hidden" name="do_it" value="1" />
400 </div> <!-- /.col-sm-10.col-sm-push-2 -->
402 <div class="col-sm-2 col-sm-pull-10">
404 [% INCLUDE 'reports-menu.inc' %]
406 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
407 </div> <!-- /.row -->
409 [% MACRO jsinclude BLOCK %]
410 [% INCLUDE 'calendar.inc' %]
413 [% INCLUDE 'intranet-bottom.inc' %]