5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( do_it ) %]Patrons statistics › Results[% ELSE %]Patrons statistics[% END %] › Reports › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
11 .debug {display:none;}
15 <body id="rep_borrowers_stats" class="rep">
16 [% WRAPPER 'header.inc' %]
17 [% INCLUDE 'cat-search.inc' %]
20 [% WRAPPER 'sub-header.inc' %]
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
31 <a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons statistics</a>
34 <a href="#" aria-current="page">
40 <a href="#" aria-current="page">
49 <div class="main container-fluid">
51 <div class="col-sm-10 col-sm-push-2">
54 <h1>Patrons statistics</h1>
56 [% FOREACH mainloo IN mainloop %]
57 [% IF ( mainloo.loopfilter.size>0 ) %]
59 [% FOREACH loopfilte IN mainloo.loopfilter %]
61 [% loopfilte.crit | html %] = [% loopfilte.filter | html %]
67 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
68 [% FOREACH loopco IN mainloo.loopcol %]
69 <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %]
74 [% FOREACH loopro IN mainloo.looprow %]
76 <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %]
78 [% FOREACH loopcel IN loopro.loopcell %]
79 <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %] [% END %]
82 <td>[% loopro.totalrow | html %]</td>
87 [% FOREACH loopfoote IN mainloo.loopfooter %]
88 <th>[% loopfoote.totalcol | html %]</th>
90 <th>[% mainloo.total | html %]</th>
96 <form method="post" action="/cgi-bin/koha/reports/borrowers_stats.pl">
97 <fieldset class="rows"><legend>Patrons statistics</legend>
109 <td>Patron category</td>
110 <td><input type="radio" name="Line" value="categorycode" /></td>
111 <td><input type="radio" checked="checked" name="Column" value="categorycode" /></td>
113 <select name="Filter" id="catcode">
114 <option value=""></option>
115 [% FOREACH patron_category IN patron_categories %]
116 <option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option>
122 <td>Patron status</td>
123 <td colspan="2"></td>
124 <td ><select name="status"><option value=""> </option><option value="debarred">restricted</option><option value="gonenoadress">gone no address</option><option value="lost">lost</option></select></td>
127 <td>Patron activity</td>
128 <td colspan="2"><select name="period" id="period">
129 <option value="1">1</option>
130 <option value="2">2</option>
131 <option value="3">3</option>
133 <label for="period">years of activity</label>
135 <td><select name="activity"><option value=""> </option><option value="active">active</option><option value="nonactive">no active</option></select></td>
139 <td rowspan="2">ZIP/Postal code</td>
140 <td><input type="radio" name="Line" value="zipcode" /></td>
141 <td><input type="radio" name="Column" value="zipcode" /></td>
142 <td><select name="Filter" id="zipcode">
143 <option value=""> </option>
144 [% FOREACH ZIP_LOO IN ZIP_LOOP %]
145 <option value="[% ZIP_LOO.zipcode | html %]">[% ZIP_LOO.zipcode | html %]</option>
151 <td colspan="2"><select name="digits" id="digits">
152 <option value=""> </option>
153 <option value ="1">1</option>
154 <option value ="2">2</option>
155 <option value ="3">3</option>
156 <option value ="4">4</option>
157 <option value ="5">5</option>
158 <option value ="6">6</option>
159 <option value ="7">7</option>
160 <option value ="8">8</option>
161 <option value ="9">9</option>
162 <option value ="10">10</option>
164 <label for="digits">digits</label>
171 <td><input type="radio" checked="checked" name="Line" value="branchcode" /></td>
172 <td><input type="radio" name="Column" value="branchcode" /></td>
174 <select name="Filter" id="branch">
175 <option value=""></option>
176 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
177 <option value="[% l.branchcode | html %]">[% l.branchcode | html %] - [% l.branchname || 'UNKNOWN' | html %]</option>
183 <td>Date of birth</td>
184 <td colspan="2"></td>
186 <label for="from">From</label>
187 <input type="text" size="10" id="from" name="Filter" class="flatpickr"data-date_to="to" />
188 <label for="to">To</label>
189 <input size="10" id="to" name="Filter" value="" type="text" class="flatpickr" />
190 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
195 <td><input type="radio" name="Line" value="sex" /></td>
196 <td><input type="radio" name="Column" value="sex" /></td>
198 <select id="sex" name="Filter">
200 <option value="M">Men</option>
201 <option value="F">Women</option>
205 [% IF ( SORT1_LOOP ) %]
208 <td><input type="radio" name="Line" value="sort1" /></td>
209 <td><input type="radio" name="Column" value="sort1" /></td>
211 <select id="sort1" name="Filter">
213 [% FOREACH SORT1_LOO IN SORT1_LOOP %]
214 <option value="[% SORT1_LOO.authorized_value | html %]">[% SORT1_LOO.lib | html %]</option>
220 <input type="hidden" name="Filter" />
222 [% IF ( SORT2_LOOP ) %]
225 <td><input type="radio" name="Line" value="sort2" /></td>
226 <td><input type="radio" name="Column" value="sort2" /></td>
228 <select id="sort2" name="Filter">
230 [% FOREACH SORT2_LOO IN SORT2_LOOP %]
231 <option value="[% SORT2_LOO.value | html %]">[% SORT2_LOO.value | html %]</option>
237 <input type="hidden" name="Filter" />
239 [% IF Koha.Preference('ExtendedPatronAttributes') %]
241 <th colspan="4">Patron attributes</th>
243 [% FOREACH pa_loo IN patron_attributes %]
244 [% IF (pa_loo.class) %]
246 <th>[% pa_loo.class | html %] ([% pa_loo.lib | html %])</th>
247 <th colspan="3"></th>
250 [% FOREACH patron_attribute IN pa_loo.items %]
251 <tr data-category_code="[% patron_attribute.category_code | html %]">
253 [% patron_attribute.code | html %]
254 ([% patron_attribute.description | html %])
257 <input type="radio" name="Line"
258 value="patron_attr.[% patron_attribute.code | html %]" />
261 <input type="radio" name="Column"
262 value="patron_attr.[% patron_attribute.code | html %]" />
265 [% IF ( patron_attribute.use_dropdown ) %]
266 <select name="Filter_patron_attr.[% patron_attribute.code | html %]" >
268 [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
269 <option value="[% auth_val_loo.authorised_value | html %]" >
270 [% auth_val_loo.lib | html %]
275 <input type="text" maxlength="64"
276 name="Filter_patron_attr.[% patron_attribute.code | html %]" />
288 <fieldset class="rows">
289 <legend>Output</legend>
292 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
295 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
296 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
297 <label class="inline" for="MIME">Into an application:</label>
298 <select name="MIME" id="MIME">
299 [% FOREACH value IN CGIextChoice %]
300 <option value="[% value | html %]">[% value | html %]</option>
303 <select name="sep" id="sep">
304 [% FOREACH value IN CGIsepChoice.values.sort() %]
305 [% IF ( value == CGIsepChoice.default ) %]
306 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
308 <option value="[% value | html %]">[% value | html %]</option>
316 <fieldset class="action">
317 <input type="submit" class="btn btn-primary" value="Submit" />
318 <input type="hidden" name="report_name" value="[% report_name | html %]" />
319 <input type="hidden" name="do_it" value="1" />
325 </div> <!-- /.col-sm-10.col-sm-push-2 -->
327 <div class="col-sm-2 col-sm-pull-10">
329 [% INCLUDE 'reports-menu.inc' %]
331 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
332 </div> <!-- /.row -->
334 [% MACRO jsinclude BLOCK %]
335 [% INCLUDE 'calendar.inc' %]
338 [% INCLUDE 'intranet-bottom.inc' %]