3 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7 [% t("Average loan time") | html %] ›
8 [% t("Reports") | html %] ›
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="rep_issues_avg_stats" class="rep">
15 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 [% WRAPPER breadcrumbs %]
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a>
28 [% WRAPPER breadcrumb_item bc_active= 1 %]
32 [% WRAPPER breadcrumb_item bc_active= 1 %]
33 <span>Average loan time</span>
36 [% END #/ WRAPPER breadcrumbs %]
37 [% END #/ WRAPPER sub-header.inc %]
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 <h1>Average checkout period</h1>
46 [% FOREACH mainloo IN mainloop %]
47 [% IF ( mainloo.loopfilter ) %]
49 [% FOREACH loopfilte IN mainloo.loopfilter %]
50 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p>
56 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
57 [% FOREACH loopco IN mainloo.loopcol %]
58 <th>[% loopco.coltitle | html %]</th>
62 [% FOREACH loopro IN mainloo.looprow %]
64 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
65 [% loopro.rowtitle | html %]</td>
66 [% FOREACH loopcel IN loopro.loopcell %]
67 [% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
68 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
71 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
72 [% loopro.totalrow | html %]
78 [% FOREACH loopfoote IN mainloo.loopfooter %]
80 [% loopfoote.totalcol | html %]
83 <th>[% mainloo.total | html %]</th>
89 <form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
90 <fieldset class="rows">
91 <legend>Average checkout period statistics</legend>
102 <tr class="hilighted">
103 <td>Checkout date</td>
104 <td><input type="radio" name="Line" value="timestamp" /></td>
105 <td><input type="radio" checked="checked" name="Column" value="timestamp" /></td>
107 <label for="checkoutfrom">From</label>
108 <input type="text" size="10" id="checkoutfrom" name="Filter" data-date_to="checkouto" class="flatpickr" />
110 <label for="checkouto">To</label>
111 <input size="10" id="checkouto" name="Filter" value="" type="text" class="flatpickr" />
112 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
115 <tr class="hilighted">
117 <td colspan="2">by <select name="IssueDisplay">
118 <option value=""> </option>
119 <option value ="1">Day</option>
120 <option value ="2">Month</option>
121 <option value ="3">Year</option>
125 <td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
129 <td><input type="radio" name="Line" value="returndate" /></td>
130 <td><input type="radio" name="Column" value="returndate" /></td>
132 <label for="checkinfrom">From</label>
133 <input type="text" size="10" id="checkinfrom" name="Filter" data-date_to="checkinto" class="flatpickr" />
135 <label for="checkinto">To</label>
136 <input type="text" size="10" id="checkinto" name="Filter" value="" class="flatpickr" />
137 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
142 <td colspan="2">by <select name="ReturnDisplay">
143 <option value=""> </option>
144 <option value ="1">Day</option>
145 <option value ="2">Month</option>
146 <option value ="3">Year</option>
150 <td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
152 <tr class="hilighted">
153 <td>Patron category</td>
154 <td><input type="radio" checked="checked" name="Line" value="borrowers.categorycode" /></td>
155 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
157 <select name="Filter" id="borcat">
158 <option value=""></option>
159 [% FOREACH patron_category IN patron_categories %]
160 <option value="[%- patron_category.categorycode | html -%]">[%- patron_category.description | html -%]</option>
167 <td><input type="radio" name="Line" value="itemtype" /></td>
168 <td><input type="radio" name="Column" value="itemtype" /></td>
170 <select name="Filter" id="itemtypes">
171 <option value=""></option>
172 [% FOREACH itemtype IN itemtypes %]
173 <option value="[%- itemtype.itemtype | html -%]">[%- itemtype.translated_description | html -%]</option>
178 <tr class="hilighted">
180 <td><input type="radio" name="Line" value="branchcode" /></td>
181 <td><input type="radio" name="Column" value="branchcode" /></td>
183 <select name="Filter" id="branch">
184 <option value=""></option>
185 [% PROCESS options_for_libraries libraries => Branches.all() %]
189 [% IF ( hassort1 ) %]
190 <tr class="hilighted">
192 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
193 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
195 <select name="Filter" id="sort1">
196 <option value=""></option>
197 [%- FOREACH value IN Sort1.values %]
198 <option value="[%- value | html -%]">[%- value | html -%]</option>
204 [% IF ( hassort2 ) %]
205 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
207 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
208 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
210 <select name="Filter" id="sort2">
211 <option value=""></option>
212 [%- FOREACH value IN Sort2.values %]
213 <option value="[%- value | html -%]">[%- value | html -%]</option>
220 </table><br /></fieldset>
223 <fieldset class="rows">
224 <legend>Output</legend>
227 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
230 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
231 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
232 <label class="inline" for="MIME">Into an application: </label>
233 <select name="MIME" id="MIME">
234 <option value="CSV">CSV</option>
236 <select name="sep" id="sep">
237 [% FOREACH value IN CGIsepChoice.values.sort() %]
238 [% IF ( value == CGIsepChoice.default ) %]
239 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
241 <option value="[% value | html %]">[% value | html %]</option>
249 <fieldset class="action">
250 <input type="hidden" name="Filter" value="" />
251 <input type="hidden" name="report_name" value="[% report_name | html %]" />
252 <input type="hidden" name="do_it" value="1" />
253 <input type="submit" class="btn btn-primary" value="Submit" />
259 </div> <!-- /.col-sm-10.col-sm-push-2 -->
261 <div class="col-sm-2 col-sm-pull-10">
263 [% INCLUDE 'reports-menu.inc' %]
265 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
266 </div> <!-- /.row -->
269 [% MACRO jsinclude BLOCK %]
270 [% INCLUDE 'calendar.inc' %]
273 [% INCLUDE 'intranet-bottom.inc' %]