5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9 [% t("Patrons with the most checkouts") | html %] ›
10 [% t("Reports") | html %] ›
11 [% t("Koha") | html %]
13 [% INCLUDE 'doc-head-close.inc' %]
16 <body id="rep_bor_issues_top" class="rep">
17 [% WRAPPER 'header.inc' %]
18 [% INCLUDE 'cat-search.inc' %]
21 [% WRAPPER 'sub-header.inc' %]
22 [% WRAPPER breadcrumbs %]
23 [% WRAPPER breadcrumb_item %]
24 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/reports/bor_issues_top.pl">Patrons with the most checkouts</a>
30 [% WRAPPER breadcrumb_item bc_active= 1 %]
34 [% WRAPPER breadcrumb_item bc_active= 1 %]
35 <span>Patrons with the most checkouts</span>
38 [% END #/ WRAPPER breadcrumbs %]
39 [% END #/ WRAPPER sub-header.inc %]
41 <div class="main container-fluid">
43 <div class="col-sm-10 col-sm-push-2">
47 [% FOREACH mainloo IN mainloop %]
48 <h1>Patrons with the most checkouts</h1>
49 [% IF ( mainloo.loopfilter ) %]
50 [% IF mainloo.loopfilter.size %]
53 [% FOREACH loopfilte IN mainloo.loopfilter %]
55 [% SWITCH loopfilte.crit -%]
56 [% CASE "Issue From" -%]
57 <span>Checked out after [% loopfilte.filter | $KohaDates %]</span>
58 [% CASE "Issue To" -%]
59 <span>Checked out before [% loopfilte.filter | $KohaDates %]</span>
60 [% CASE "Return From" -%]
61 <span>Checked in after [% loopfilte.filter | $KohaDates %]</span>
62 [% CASE "Return To" -%]
63 <span>Checked in before [% loopfilte.filter | $KohaDates %]</span>
65 <span>Library is [% Branches.GetName( loopfilte.filter ) | html %]</span>
66 [% CASE "Doc Type" -%]
67 <span>Item type is [% ItemTypes.GetDescription( loopfilte.filter ) | html %]</span>
69 <span>Patron category code is [% loopfilte.filter | html %]</span>
71 <span>Day is [% loopfilte.filter | html %]</span>
73 <span>Month is [% loopfilte.filter | html %]</span>
75 <span>Year is [% loopfilte.filter | html %]</span>
76 [% CASE # default case -%]
77 <span>[% loopfilte.crit | html %] = [% loopfilte.filter | html %]</span>
87 <th rowspan="2">Rank</th>
88 [% FOREACH loopco IN mainloo.loopcol %]
89 <th colspan="2">[% loopco.coltitle | html %]</th>
93 [% FOREACH loopco IN mainloo.loopcol %]
95 <th>Checkout count</th>
98 [% FOREACH loopro IN mainloo.looprow %]
100 [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %]
101 [% loopro.rowtitle | html %]</td>
102 [% FOREACH loopcel IN loopro.loopcell %]
103 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
104 [% IF ( loopcel.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopcel.reference | uri %]">[% END %]
105 [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %]
106 [% IF ( loopcel.reference ) %]</a>[% END %]
108 [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %]
109 [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %]
117 <h1>Patrons with the most checkouts</h1>
118 <form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
119 <fieldset class="rows">
122 <label for="checkoutfrom">Checkout date from:</label>
123 <input type="text" size="10" id="checkoutfrom" name="Filter" class="flatpickr" data-date_to="checkoutto" />
125 <label class="inline" for="checkoutto">To: </label>
126 <input size="10" id="checkoutto" name="Filter" value="" type="text" class="flatpickr" />
127 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
130 <label for="checkinfrom">Check-in date from:</label>
131 <input type="text" size="10" id="checkinfrom" name="Filter" class="flatpickr" data-date_to="checkinto" />
133 <label class="inline" for="checkinto">To: </label>
134 <input type="text" size="10" id="checkinto" name="Filter" value="" class="flatpickr" />
135 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
138 <label for="branch">Library: </label>
139 <select name="Filter" id="branch"><option value="" > Any library</option>
140 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
141 <option value="[% l.branchcode | html %]" >[% l.branchname | html %] </option>
145 <label for="documenttype">Item type: </label><select name="Filter" id="documenttype"><option value="" > Any item type</option>
146 [% FOREACH itemtype IN itemtypes %]
147 <option value="[% itemtype.itemtype | html %]" >[% itemtype.translated_description | html %] </option>
152 <label for="patroncategory">Patron category: </label><select name="Filter" id="patroncategory"><option value="" > Any category code</option>
153 [% FOREACH patron_category IN patron_categories%]
154 <option value="[% patron_category.categorycode | html %]" >[% patron_category.description | html %] </option>
161 <fieldset class="rows">
163 <li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
164 <option value ="5" selected="selected"> 5</option>
165 <option value ="10">10</option>
166 <option value ="15">15</option>
167 <option value ="20">20</option>
168 <option value ="">No limit</option>
169 <!-- <option value ="25">25</option>
170 <option value ="40">40</option>
171 <option value ="50">50</option>
172 <option value ="100">100</option>-->
174 <li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
175 <option value ="" selected="selected">None</option>
176 <option value ="branchcode">Library</option>
177 <option value ="categorycode">Category code</option>
178 <option value ="itemtype">Item type</option>
179 <option value ="Day">Day</option>
180 <option value ="Week">Week</option>
181 <option value ="Month">Month</option>
182 <option value ="Year">Year</option>
187 <fieldset class="rows">
188 <legend>Output</legend>
189 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /></li>
190 <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" />
191 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
192 <label class="inline" for="MIME">Into an application: </label>
193 <select name="MIME" id="MIME">
194 [% FOREACH mimeloo IN mimeloop %]
195 <option value="[% mimeloo.type | html %]">[% mimeloo.type | html %]</option>
198 <label class="inline" for="sep">Delimiter: </label>
199 <select name="sep" id="sep">
200 [% FOREACH value IN CGIseplist.values.sort() %]
201 [% IF ( value == CGIseplist.default ) %]
202 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
204 <option value="[% value | html %]">[% value | html %]</option>
212 <fieldset class="action">
213 <input type="submit" class="btn btn-primary" value="Submit" />
214 <input type="hidden" name="report_name" value="[% report_name | html %]" />
215 <input type="hidden" name="do_it" value="1" />
221 </div> <!-- /.col-sm-10.col-sm-push-2 -->
223 <div class="col-sm-2 col-sm-pull-10">
225 [% INCLUDE 'reports-menu.inc' %]
227 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
228 </div> <!-- /.row -->
230 [% MACRO jsinclude BLOCK %]
231 [% INCLUDE 'calendar.inc' %]
234 [% INCLUDE 'intranet-bottom.inc' %]