5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Reports › Patrons with the most checkouts</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="rep_bor_issues_top" class="rep">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
14 <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/bor_issues_top.pl">Patrons with the most checkouts</a> › Results[% ELSE %]› Patrons with the most checkouts[% END %]</div>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
22 [% FOREACH mainloo IN mainloop %]
23 <h1>Patrons with the most checkouts</h1>
24 [% IF ( mainloo.loopfilter ) %]
25 [% IF mainloo.loopfilter.size %]
28 [% FOREACH loopfilte IN mainloo.loopfilter %]
30 [% SWITCH loopfilte.crit -%]
31 [% CASE "Issue From" -%]
32 Checked out after [% loopfilte.filter | $KohaDates %]
33 [% CASE "Issue To" -%]
34 Checked out before [% loopfilte.filter | $KohaDates %]
35 [% CASE "Return From" -%]
36 Checked in after [% loopfilte.filter | $KohaDates %]
37 [% CASE "Return To" -%]
38 Checked in before [% loopfilte.filter | $KohaDates %]
40 Library is [% Branches.GetName( loopfilte.filter ) | html %]
41 [% CASE "Doc Type" -%]
42 Item type is [% ItemTypes.GetDescription( loopfilte.filter ) | html %]
44 Patron category code is [% loopfilte.filter | html %]
46 Day is [% loopfilte.filter | html %]
48 Month is [% loopfilte.filter | html %]
50 Year is [% loopfilte.filter | html %]
51 [% CASE # default case -%]
52 [% loopfilte.crit | html %] = [% loopfilte.filter | html %]
62 <th rowspan="2">Rank</th>
63 [% FOREACH loopco IN mainloo.loopcol %]
64 <th colspan="2">[% loopco.coltitle | html %]</th>
68 [% FOREACH loopco IN mainloo.loopcol %]
70 <th>Checkout count</th>
73 [% FOREACH loopro IN mainloo.looprow %]
75 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
76 [% loopro.rowtitle | html %]</td>
77 [% FOREACH loopcel IN loopro.loopcell %]
78 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
79 [% IF ( loopcel.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopcel.reference | uri %]">[% END %]
80 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
81 [% IF ( loopcel.reference ) %]</a>[% END %]
83 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
84 [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %]
92 <h1>Patrons with the most checkouts</h1>
93 <form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
94 <fieldset class="rows">
95 <ol><li><label for="from">Checkout date from:</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
96 <label class="inline" for="to">To: </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
97 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
98 <li> <label for="fromRO">Check-in date from:</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
99 <label class="inline" for="toRO">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
100 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
102 <label for="branch">Library: </label>
103 <select name="Filter" id="branch"><option value="" > Any library</option>
104 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
105 <option value="[% l.branchcode | html %]" >[% l.branchname | html %] </option>
109 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
110 [% FOREACH itemtype IN itemtypes %]
111 <option value="[% itemtype.itemtype | html %]" >[% itemtype.translated_description | html %] </option>
116 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
117 [% FOREACH patron_category IN patron_categories%]
118 <option value="[% patron_category.categorycode | html %]" >[% patron_category.description | html %] </option>
125 <fieldset class="rows">
127 <li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
128 <option value ="5" selected="selected"> 5</option>
129 <option value ="10">10</option>
130 <option value ="15">15</option>
131 <option value ="20">20</option>
132 <option value ="">No limit</option>
133 <!-- <option value ="25">25</option>
134 <option value ="40">40</option>
135 <option value ="50">50</option>
136 <option value ="100">100</option>-->
138 <li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
139 <option value ="" selected="selected">None</option>
140 <option value ="branchcode">Library</option>
141 <option value ="categorycode">Category code</option>
142 <option value ="itemtype">Item type</option>
143 <option value ="Day">Day</option>
144 <option value ="Week">Week</option>
145 <option value ="Month">Month</option>
146 <option value ="Year">Year</option>
151 <fieldset class="rows">
152 <legend>Output</legend>
153 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
154 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
155 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
156 <label class="inline" for="MIME">Into an application: </label>
157 <select name="MIME" id="MIME">
158 [% FOREACH mimeloo IN mimeloop %]
159 <option value="[% mimeloo.type | html %]">[% mimeloo.type | html %]</option>
162 <label class="inline" for="sep">Delimiter: </label>
163 <select name="sep" id="sep" size="1">
164 [% FOREACH value IN CGIseplist.values.sort() %]
165 [% IF ( value == CGIseplist.default ) %]
166 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
168 <option value="[% value | html %]">[% value | html %]</option>
176 <fieldset class="action">
177 <input type="submit" value="Submit" />
178 <input type="hidden" name="report_name" value="[% report_name | html %]" />
179 <input type="hidden" name="do_it" value="1" />
185 </div> <!-- /.col-sm-10.col-sm-push-2 -->
187 <div class="col-sm-2 col-sm-pull-10">
189 [% INCLUDE 'reports-menu.inc' %]
191 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
192 </div> <!-- /.row -->
194 [% MACRO jsinclude BLOCK %]
195 [% INCLUDE 'calendar.inc' %]
197 $(document).ready(function() {
198 // http://jqueryui.com/demos/datepicker/#date-range
199 var dates = $( "#from, #to" ).datepicker({
202 onSelect: function( selectedDate ) {
203 var option = this.id == "from" ? "minDate" : "maxDate",
204 instance = $( this ).data( "datepicker" );
205 date = $.datepicker.parseDate(
206 instance.settings.dateFormat ||
207 $.datepicker._defaults.dateFormat,
208 selectedDate, instance.settings );
209 dates.not( this ).datepicker( "option", option, date );
212 var datesRO = $( "#fromRO, #toRO" ).datepicker({
215 onSelect: function( selectedDate ) {
216 var option = this.id == "fromRO" ? "minDate" : "maxDate",
217 instance = $( this ).data( "datepicker" );
218 date = $.datepicker.parseDate(
219 instance.settings.dateFormat ||
220 $.datepicker._defaults.dateFormat,
221 selectedDate, instance.settings );
222 datesRO.not( this ).datepicker( "option", option, date );
229 [% INCLUDE 'intranet-bottom.inc' %]