4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Reports › Patrons with the most checkouts</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'calendar.inc' %]
8 <script type="text/javascript">
10 $(document).ready(function() {
11 // http://jqueryui.com/demos/datepicker/#date-range
12 var dates = $( "#from, #to" ).datepicker({
15 onSelect: function( selectedDate ) {
16 var option = this.id == "from" ? "minDate" : "maxDate",
17 instance = $( this ).data( "datepicker" );
18 date = $.datepicker.parseDate(
19 instance.settings.dateFormat ||
20 $.datepicker._defaults.dateFormat,
21 selectedDate, instance.settings );
22 dates.not( this ).datepicker( "option", option, date );
25 var datesRO = $( "#fromRO, #toRO" ).datepicker({
28 onSelect: function( selectedDate ) {
29 var option = this.id == "fromRO" ? "minDate" : "maxDate",
30 instance = $( this ).data( "datepicker" );
31 date = $.datepicker.parseDate(
32 instance.settings.dateFormat ||
33 $.datepicker._defaults.dateFormat,
34 selectedDate, instance.settings );
35 datesRO.not( this ).datepicker( "option", option, date );
42 <body id="rep_bor_issues_top" class="rep">
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'cat-search.inc' %]
46 <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>
48 <div id="doc3" class="yui-t2">
55 <script language="JavaScript" type="text/javascript">
56 function Dopop(link) {
57 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
62 [% FOREACH mainloo IN mainloop %]
63 <h1>Patrons with the most checkouts</h1>
64 [% IF ( mainloo.loopfilter ) %]
65 [% IF mainloo.loopfilter.size %]
68 [% FOREACH loopfilte IN mainloo.loopfilter %]
70 [% SWITCH loopfilte.crit -%]
71 [% CASE "Issue From" -%]
72 Checked out after [% loopfilte.filter | $KohaDates %]
73 [% CASE "Issue To" -%]
74 Checked out before [% loopfilte.filter | $KohaDates %]
75 [% CASE "Return From" -%]
76 Checked in after [% loopfilte.filter | $KohaDates %]
77 [% CASE "Return To" -%]
78 Checked in before [% loopfilte.filter | $KohaDates %]
80 Library is [% Branches.GetName( loopfilte.filter ) %]
81 [% CASE "Doc Type" -%]
82 Item type is [% ItemTypes.GetDescription( loopfilte.filter ) %]
84 Patron category code is [% loopfilte.filter %]
86 Day is [% loopfilte.filter %]
88 Month is [% loopfilte.filter %]
90 Year is [% loopfilte.filter %]
91 [% CASE # default case -%]
92 [% loopfilte.crit %] = [% loopfilte.filter %]
102 <th rowspan="2">Rank</th>
103 [% FOREACH loopco IN mainloo.loopcol %]
104 <th colspan="2">[% loopco.coltitle %]</th>
108 [% FOREACH loopco IN mainloo.loopcol %]
110 <th>Checkout count</th>
113 [% FOREACH loopro IN mainloo.looprow %]
115 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
116 [% loopro.rowtitle %]</td>
117 [% FOREACH loopcel IN loopro.loopcell %]
118 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
119 [% IF ( loopcel.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopcel.reference %]">[% END %]
120 [% IF ( loopcel.value ) %][% loopcel.value %][% END %]
121 [% IF ( loopcel.reference ) %]</a>[% END %]
123 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
124 [% IF ( loopcel.count ) %][% loopcel.count %][% END %]
132 <h1>Patrons with the most checkouts</h1>
133 <form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
134 <fieldset class="rows">
135 <ol><li><label for="from">Checkout date from:</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
136 <label class="inline" for="to">To: </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
137 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
138 <li> <label for="fromRO">Check-in date from:</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
139 <label class="inline" for="toRO">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
140 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
142 <label for="branch">Library: </label>
143 <select name="Filter" id="branch"><option value="" > Any library</option>
144 [% FOREACH branchloo IN branchloop %]
145 <option value="[% branchloo.value %]" >[% branchloo.branchname %] </option>
149 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
150 [% FOREACH itemtypeloo IN itemtypeloop %]
151 <option value="[% itemtypeloo.value %]" >[% itemtypeloo.description %] </option>
156 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
157 [% FOREACH borcatloo IN borcatloop %]
158 <option value="[% borcatloo.value %]" >[% borcatloo.description %] </option>
165 <fieldset class="rows">
167 <li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
168 <option value ="5" selected="selected"> 5</option>
169 <option value ="10">10</option>
170 <option value ="15">15</option>
171 <option value ="20">20</option>
172 <option value ="">No limit</option>
173 <!-- <option value ="25">25</option>
174 <option value ="40">40</option>
175 <option value ="50">50</option>
176 <option value ="100">100</option>-->
178 <li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
179 <option value ="" selected="selected">None</option>
180 <option value ="branchcode">Library</option>
181 <option value ="categorycode">Category code</option>
182 <option value ="itemtype">Item type</option>
183 <option value ="Day">Day</option>
184 <option value ="Week">Week</option>
185 <option value ="Month">Month</option>
186 <option value ="Year">Year</option>
191 <fieldset class="rows">
192 <legend>Output</legend>
193 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
194 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
195 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
196 <label class="inline" for="MIME">Into an application: </label>
197 <select name="MIME" id="MIME">
198 [% FOREACH mimeloo IN mimeloop %]
199 <option value="[% mimeloo.type %]">[% mimeloo.type %]</option>
202 <label class="inline" for="sep">Delimiter: </label>
203 <select name="sep" id="sep" size="1">
204 [% FOREACH value IN CGIseplist.values.sort() %]
205 [% IF ( value == CGIseplist.default ) %]
206 <option value="[% value %]" selected="selected">[% value %]</option>
208 <option value="[% value %]">[% value %]</option>
216 <fieldset class="action">
217 <input type="submit" value="Submit" />
218 <input type="hidden" name="report_name" value="[% report_name %]" />
219 <input type="hidden" name="do_it" value="1" />
227 [% INCLUDE 'reports-menu.inc' %]
230 [% INCLUDE 'intranet-bottom.inc' %]