3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Reports › Average loan time</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="rep_issues_avg_stats" class="rep">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 <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_avg_stats.pl">Average loan time</a> › Results [% ELSE %]› Average loan time[% END %]</div>
14 <div class="main container-fluid">
16 <div class="col-sm-10 col-sm-push-2">
20 [% FOREACH mainloo IN mainloop %]
21 <h1>Average checkout period</h1>
22 [% IF ( mainloo.loopfilter ) %]
24 [% FOREACH loopfilte IN mainloo.loopfilter %]
25 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p>
31 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
32 [% FOREACH loopco IN mainloo.loopcol %]
33 <th>[% loopco.coltitle | html %]</th>
37 [% FOREACH loopro IN mainloo.looprow %]
39 [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
40 [% loopro.rowtitle | html %]</td>
41 [% FOREACH loopcel IN loopro.loopcell %]
42 [% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %]
43 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
46 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
47 [% loopro.totalrow | html %]
53 [% FOREACH loopfoote IN mainloo.loopfooter %]
55 [% loopfoote.totalcol | html %]
58 <th>[% mainloo.total | html %]</th>
64 <form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl">
65 <fieldset class="rows">
66 <legend>Average checkout period statistics</legend>
77 <tr class="hilighted">
78 <td>Checkout date</td>
79 <td><input type="radio" name="Line" value="timestamp" /></td>
80 <td><input type="radio" checked="checked" name="Column" value="timestamp" /></td>
81 <td > <label for="from">From</label> <input type="text" size="10" id="from" name="Filter" />
82 <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" />
83 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
86 <tr class="hilighted">
88 <td colspan="2">by <select name="IssueDisplay">
89 <option value=""> </option>
90 <option value ="1">Day</option>
91 <option value ="2">Month</option>
92 <option value ="3">Year</option>
96 <td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
100 <td><input type="radio" name="Line" value="returndate" /></td>
101 <td><input type="radio" name="Column" value="returndate" /></td>
102 <td > <label for="fromRO">From</label> <input type="text" size="10" id="fromRO" name="Filter" />
103 <label for="toRO">To</label> <input type="text" size="10" id="toRO" name="Filter" value="" />
104 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
109 <td colspan="2">by <select name="ReturnDisplay">
110 <option value=""> </option>
111 <option value ="1">Day</option>
112 <option value ="2">Month</option>
113 <option value ="3">Year</option>
117 <td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td>
119 <tr class="hilighted">
120 <td>Patron category</td>
121 <td><input type="radio" checked="checked" name="Line" value="borrowers.categorycode" /></td>
122 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
124 <select name="Filter" size="1" id="borcat">
125 <option value=""></option>
126 [% FOREACH patron_category IN patron_categories %]
127 <option value="[%- patron_category.categorycode | html -%]">[%- patron_category.description | html -%]</option>
134 <td><input type="radio" name="Line" value="itemtype" /></td>
135 <td><input type="radio" name="Column" value="itemtype" /></td>
137 <select name="Filter" size="1" id="itemtypes">
138 <option value=""></option>
139 [% FOREACH itemtype IN itemtypes %]
140 <option value="[%- itemtype.itemtype | html -%]">[%- itemtype.translated_description | html -%]</option>
145 <tr class="hilighted">
147 <td><input type="radio" name="Line" value="branchcode" /></td>
148 <td><input type="radio" name="Column" value="branchcode" /></td>
150 <select name="Filter" size="1" id="branch">
151 <option value=""></option>
152 [% PROCESS options_for_libraries libraries => Branches.all() %]
156 [% IF ( hassort1 ) %]
157 <tr class="hilighted">
159 <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
160 <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
162 <select name="Filter" size="1" id="sort1">
163 <option value=""></option>
164 [%- FOREACH value IN Sort1.values %]
165 <option value="[%- value | html -%]">[%- value | html -%]</option>
171 [% IF ( hassort2 ) %]
172 [% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %]
174 <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
175 <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
177 <select name="Filter" size="1" id="sort2">
178 <option value=""></option>
179 [%- FOREACH value IN Sort2.values %]
180 <option value="[%- value | html -%]">[%- value | html -%]</option>
187 </table><br /></fieldset>
190 <fieldset class="rows">
191 <legend>Output</legend>
194 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
197 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
198 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
199 <label class="inline" for="MIME">Into an application: </label>
200 <select name="MIME" size="1" id="MIME">
201 <option value="CSV">CSV</option>
203 <select name="sep" id="sep" size="1">
204 [% FOREACH value IN CGIsepChoice.values.sort() %]
205 [% IF ( value == CGIsepChoice.default ) %]
206 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
208 <option value="[% value | html %]">[% value | html %]</option>
216 <fieldset class="action">
217 <input type="hidden" name="Filter" value="" />
218 <input type="hidden" name="report_name" value="[% report_name | html %]" />
219 <input type="hidden" name="do_it" value="1" />
220 <input type="submit" value="Submit" />
226 </div> <!-- /.col-sm-10.col-sm-push-2 -->
228 <div class="col-sm-2 col-sm-pull-10">
230 [% INCLUDE 'reports-menu.inc' %]
232 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
233 </div> <!-- /.row -->
236 [% MACRO jsinclude BLOCK %]
237 [% INCLUDE 'calendar.inc' %]
239 $(document).ready(function() {
240 // http://jqueryui.com/demos/datepicker/#date-range
241 var dates = $( "#from, #to" ).datepicker({
244 onSelect: function( selectedDate ) {
245 var option = this.id == "from" ? "minDate" : "maxDate",
246 instance = $( this ).data( "datepicker" );
247 date = $.datepicker.parseDate(
248 instance.settings.dateFormat ||
249 $.datepicker._defaults.dateFormat,
250 selectedDate, instance.settings );
251 dates.not( this ).datepicker( "option", option, date );
254 var datesRO = $( "#fromRO, #toRO" ).datepicker({
257 onSelect: function( selectedDate ) {
258 var option = this.id == "fromRO" ? "minDate" : "maxDate",
259 instance = $( this ).data( "datepicker" );
260 date = $.datepicker.parseDate(
261 instance.settings.dateFormat ||
262 $.datepicker._defaults.dateFormat,
263 selectedDate, instance.settings );
264 datesRO.not( this ).datepicker( "option", option, date );
271 [% INCLUDE 'intranet-bottom.inc' %]