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 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'cat-search.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>
29 <a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons statistics</a>
32 <a href="#" aria-current="page">
38 <a href="#" aria-current="page">
46 <div class="main container-fluid">
48 <div class="col-sm-10 col-sm-push-2">
52 [% FOREACH mainloo IN mainloop %]
53 <h1>Patrons statistics</h1>
54 [% IF ( mainloo.loopfilter.size>0 ) %]
56 [% FOREACH loopfilte IN mainloo.loopfilter %]
58 [% loopfilte.crit | html %] = [% loopfilte.filter | html %]
64 <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th>
65 [% FOREACH loopco IN mainloo.loopcol %]
66 <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %]
71 [% FOREACH loopro IN mainloo.looprow %]
73 <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %]
75 [% FOREACH loopcel IN loopro.loopcell %]
76 <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %] [% END %]
79 <td>[% loopro.totalrow | html %]</td>
84 [% FOREACH loopfoote IN mainloo.loopfooter %]
85 <th>[% loopfoote.totalcol | html %]</th>
87 <th>[% mainloo.total | html %]</th>
93 <form method="post" action="/cgi-bin/koha/reports/borrowers_stats.pl">
94 <fieldset class="rows"><legend>Patrons statistics</legend>
106 <td>Patron category</td>
107 <td><input type="radio" name="Line" value="categorycode" /></td>
108 <td><input type="radio" checked="checked" name="Column" value="categorycode" /></td>
110 <select name="Filter" id="catcode">
111 <option value=""></option>
112 [% FOREACH patron_category IN patron_categories %]
113 <option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option>
119 <td>Patron status</td>
120 <td colspan="2"></td>
121 <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>
124 <td>Patron activity</td>
125 <td colspan="2"><select name="period" id="period">
126 <option value="1">1</option>
127 <option value="2">2</option>
128 <option value="3">3</option>
130 <label for="period">years of activity</label>
132 <td><select name="activity"><option value=""> </option><option value="active">active</option><option value="nonactive">no active</option></select></td>
136 <td rowspan="2">ZIP/Postal code</td>
137 <td><input type="radio" name="Line" value="zipcode" /></td>
138 <td><input type="radio" name="Column" value="zipcode" /></td>
139 <td><select name="Filter" id="zipcode">
140 <option value=""> </option>
141 [% FOREACH ZIP_LOO IN ZIP_LOOP %]
142 <option value="[% ZIP_LOO.zipcode | html %]">[% ZIP_LOO.zipcode | html %]</option>
148 <td colspan="2"><select name="digits" id="digits">
149 <option value=""> </option>
150 <option value ="1">1</option>
151 <option value ="2">2</option>
152 <option value ="3">3</option>
153 <option value ="4">4</option>
154 <option value ="5">5</option>
155 <option value ="6">6</option>
156 <option value ="7">7</option>
157 <option value ="8">8</option>
158 <option value ="9">9</option>
159 <option value ="10">10</option>
161 <label for="digits">digits</label>
168 <td><input type="radio" checked="checked" name="Line" value="branchcode" /></td>
169 <td><input type="radio" name="Column" value="branchcode" /></td>
171 <select name="Filter" id="branch">
172 <option value=""></option>
173 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
174 <option value="[% l.branchcode | html %]">[% l.branchcode | html %] - [% l.branchname || 'UNKNOWN' | html %]</option>
180 <td>Date of birth</td>
181 <td colspan="2"></td>
183 <label for="from">From</label>
184 <input type="text" size="10" id="from" name="Filter" class="flatpickr"data-start_for="to" />
185 <label for="to">To</label>
186 <input size="10" id="to" name="Filter" value="" type="text" class="flatpickr" />
187 <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
192 <td><input type="radio" name="Line" value="sex" /></td>
193 <td><input type="radio" name="Column" value="sex" /></td>
195 <select id="sex" name="Filter">
197 <option value="M">Men</option>
198 <option value="F">Women</option>
202 [% IF ( SORT1_LOOP ) %]
205 <td><input type="radio" name="Line" value="sort1" /></td>
206 <td><input type="radio" name="Column" value="sort1" /></td>
208 <select id="sort1" name="Filter">
210 [% FOREACH SORT1_LOO IN SORT1_LOOP %]
211 <option value="[% SORT1_LOO.authorized_value | html %]">[% SORT1_LOO.lib | html %]</option>
217 <input type="hidden" name="Filter" />
219 [% IF ( SORT2_LOOP ) %]
222 <td><input type="radio" name="Line" value="sort2" /></td>
223 <td><input type="radio" name="Column" value="sort2" /></td>
225 <select id="sort2" name="Filter">
227 [% FOREACH SORT2_LOO IN SORT2_LOOP %]
228 <option value="[% SORT2_LOO.value | html %]">[% SORT2_LOO.value | html %]</option>
234 <input type="hidden" name="Filter" />
236 [% IF Koha.Preference('ExtendedPatronAttributes') %]
238 <th colspan="4">Patron attributes</th>
240 [% FOREACH pa_loo IN patron_attributes %]
241 [% IF (pa_loo.class) %]
243 <th>[% pa_loo.class | html %] ([% pa_loo.lib | html %])</th>
244 <th colspan="3"></th>
247 [% FOREACH patron_attribute IN pa_loo.items %]
248 <tr data-category_code="[% patron_attribute.category_code | html %]">
250 [% patron_attribute.code | html %]
251 ([% patron_attribute.description | html %])
254 <input type="radio" name="Line"
255 value="patron_attr.[% patron_attribute.code | html %]" />
258 <input type="radio" name="Column"
259 value="patron_attr.[% patron_attribute.code | html %]" />
262 [% IF ( patron_attribute.use_dropdown ) %]
263 <select name="Filter_patron_attr.[% patron_attribute.code | html %]" >
265 [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
266 <option value="[% auth_val_loo.authorised_value | html %]" >
267 [% auth_val_loo.lib | html %]
272 <input type="text" maxlength="64"
273 name="Filter_patron_attr.[% patron_attribute.code | html %]" />
285 <fieldset class="rows">
286 <legend>Output</legend>
289 <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
292 <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
293 <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
294 <label class="inline" for="MIME">Into an application:</label>
295 <select name="MIME" id="MIME">
296 [% FOREACH value IN CGIextChoice %]
297 <option value="[% value | html %]">[% value | html %]</option>
300 <select name="sep" id="sep">
301 [% FOREACH value IN CGIsepChoice.values.sort() %]
302 [% IF ( value == CGIsepChoice.default ) %]
303 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
305 <option value="[% value | html %]">[% value | html %]</option>
313 <fieldset class="action">
314 <input type="submit" value="Submit" />
315 <input type="hidden" name="report_name" value="[% report_name | html %]" />
316 <input type="hidden" name="do_it" value="1" />
322 </div> <!-- /.col-sm-10.col-sm-push-2 -->
324 <div class="col-sm-2 col-sm-pull-10">
326 [% INCLUDE 'reports-menu.inc' %]
328 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
329 </div> <!-- /.row -->
331 [% MACRO jsinclude BLOCK %]
332 [% INCLUDE 'calendar.inc' %]
335 [% INCLUDE 'intranet-bottom.inc' %]