1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Reports › Patrons with the most checkouts</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 // http://jqueryui.com/demos/datepicker/#date-range
9 var dates = $( "#from, #to" ).datepicker({
12 onSelect: function( selectedDate ) {
13 var option = this.id == "from" ? "minDate" : "maxDate",
14 instance = $( this ).data( "datepicker" );
15 date = $.datepicker.parseDate(
16 instance.settings.dateFormat ||
17 $.datepicker._defaults.dateFormat,
18 selectedDate, instance.settings );
19 dates.not( this ).datepicker( "option", option, date );
22 var datesRO = $( "#fromRO, #toRO" ).datepicker({
25 onSelect: function( selectedDate ) {
26 var option = this.id == "fromRO" ? "minDate" : "maxDate",
27 instance = $( this ).data( "datepicker" );
28 date = $.datepicker.parseDate(
29 instance.settings.dateFormat ||
30 $.datepicker._defaults.dateFormat,
31 selectedDate, instance.settings );
32 datesRO.not( this ).datepicker( "option", option, date );
39 <body id="rep_bor_issues_top" class="rep">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'cat-search.inc' %]
43 <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>
45 <div id="doc3" class="yui-t2">
52 <script language="JavaScript" type="text/javascript">
53 function Dopop(link) {
54 newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
59 [% FOREACH mainloo IN mainloop %]
60 <h1>Top [% mainloo.limit %] List patrons for checkouts</h1>
61 [% IF ( mainloo.loopfilter ) %]
63 [% FOREACH loopfilte IN mainloo.loopfilter %]
64 <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %] [% END %]</p>
70 <th rowspan="2">Rank</th>
71 [% FOREACH loopco IN mainloo.loopcol %]
72 <th colspan="2">[% loopco.coltitle %]</th>
76 [% FOREACH loopco IN mainloo.loopcol %]
78 <th>Checkout count</th>
81 [% FOREACH loopro IN mainloo.looprow %]
83 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
84 [% loopro.rowtitle %]</td>
85 [% FOREACH loopcel IN loopro.loopcell %]
86 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
87 [% IF ( loopcel.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopcel.reference %]">[% END %]
88 [% IF ( loopcel.value ) %][% loopcel.value %][% END %]
89 [% IF ( loopcel.reference ) %]</a>[% END %]
91 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
92 [% IF ( loopcel.count ) %][% loopcel.count %][% END %]
100 <h1>Patrons with the most checkouts</h1>
101 <form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
102 <fieldset class="rows">
103 <ol><li><label for="from">Checkout date from:</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
104 <label class="inline" for="to">To: </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
105 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
106 <li> <label for="fromRO">Check-in date from:</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
107 <label class="inline" for="toRO">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
108 <span class="hint">[% INCLUDE 'date-format.inc' %]</span></li>
110 <label for="branch">Library: </label>
111 <select name="Filter" id="branch"><option value="" > Any library</option>
112 [% FOREACH branchloo IN branchloop %]
113 <option value="[% branchloo.value %]" >[% branchloo.branchname %] </option>
117 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
118 [% FOREACH itemtypeloo IN itemtypeloop %]
119 <option value="[% itemtypeloo.value %]" >[% itemtypeloo.description %] </option>
124 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
125 [% FOREACH borcatloo IN borcatloop %]
126 <option value="[% borcatloo.value %]" >[% borcatloo.description %] </option>
133 <fieldset class="rows">
135 <li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
136 <option value ="5" selected="selected"> 5</option>
137 <option value ="10">10</option>
138 <option value ="15">15</option>
139 <option value ="20">20</option>
140 <option value ="">No limit</option>
141 <!-- <option value ="25">25</option>
142 <option value ="40">40</option>
143 <option value ="50">50</option>
144 <option value ="100">100</option>-->
146 <li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
147 <option value ="" selected="selected">None</option>
148 <option value ="branchcode">Library</option>
149 <option value ="categorycode">Category code</option>
150 <option value ="itemtype">Item type</option>
151 <option value ="Day">Day</option>
152 <option value ="Week">Week</option>
153 <option value ="Month">Month</option>
154 <option value ="Year">Year</option>
159 <fieldset class="rows">
160 <legend>Output</legend>
161 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
162 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
163 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
164 <label class="inline" for="MIME">Into an application: </label>
165 <select name="MIME" id="MIME">
166 [% FOREACH mimeloo IN mimeloop %]
167 <option value="[% mimeloo.type %]">[% mimeloo.type %]</option>
170 <label class="inline" for="sep">Delimiter: </label>
176 <fieldset class="action">
177 <input type="submit" value="Submit" />
178 <input type="hidden" name="report_name" value="[% report_name %]" />
179 <input type="hidden" name="do_it" value="1" />
187 [% INCLUDE 'reports-menu.inc' %]
190 [% INCLUDE 'intranet-bottom.inc' %]