|
Lines 2-7
Link Here
|
| 2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
| 3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
| 4 |
[% USE Asset %] |
4 |
[% USE Asset %] |
|
|
5 |
[% USE Categories %] |
| 6 |
[% USE KohaDates %] |
| 7 |
[% USE AuthorisedValues %] |
| 8 |
[% USE ExtendedAttributeTypes %] |
| 5 |
[% PROCESS 'i18n.inc' %] |
9 |
[% PROCESS 'i18n.inc' %] |
| 6 |
[% SET footerjs = 1 %] |
10 |
[% SET footerjs = 1 %] |
| 7 |
[% INCLUDE 'doc-head-open.inc' %] |
11 |
[% INCLUDE 'doc-head-open.inc' %] |
|
Lines 56-66
Link Here
|
| 56 |
<h1>Patrons statistics</h1> |
60 |
<h1>Patrons statistics</h1> |
| 57 |
[% IF ( do_it ) %] |
61 |
[% IF ( do_it ) %] |
| 58 |
[% FOREACH mainloo IN mainloop %] |
62 |
[% FOREACH mainloo IN mainloop %] |
| 59 |
[% IF ( mainloo.loopfilter.size>0 ) %] |
63 |
[% IF ( mainloo.loopfilter.size > 0 ) %] |
| 60 |
<p>Filtered on:</p> |
64 |
<h2>Filtered on:</h2> |
| 61 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
65 |
<ul> |
| 62 |
<p> [% loopfilte.crit | html %] = [% loopfilte.filter | html %] </p> |
66 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
| 63 |
[% END %] |
67 |
<li> |
|
|
68 |
[% SWITCH loopfilte.crit %] |
| 69 |
[% CASE 'Cat code' %] |
| 70 |
<strong>Patron category:</strong> |
| 71 |
[% Categories.GetName( loopfilte.filter ) | html %] |
| 72 |
[% CASE 'ZIP/Postal code' %] |
| 73 |
<strong>ZIP/Postal code: </strong> |
| 74 |
[% loopfilte.filter | html %] |
| 75 |
[% CASE 'Branch code' %] |
| 76 |
<strong>Library: </strong> |
| 77 |
[% Branches.GetName( loopfilte.filter ) | html %] |
| 78 |
[% CASE 'Date of birth1' %] |
| 79 |
<strong>Date of birth > </strong> |
| 80 |
[% loopfilte.filter | html %] |
| 81 |
[% CASE 'Date of birth2' %] |
| 82 |
<strong>Date of birth < </strong> |
| 83 |
[% loopfilte.filter | html %] |
| 84 |
[% CASE 'Sex' %] |
| 85 |
<strong>Gender: </strong> |
| 86 |
[% SWITCH ( loopfilte.filter ) %] |
| 87 |
[% CASE 'F' %] |
| 88 |
<span>Female</span> |
| 89 |
[% CASE 'M' %] |
| 90 |
<span>Male</span> |
| 91 |
[% CASE 'O' %] |
| 92 |
<span>Other</span> |
| 93 |
[% CASE %] |
| 94 |
<span>None specified</span> |
| 95 |
[% END %] |
| 96 |
[% CASE 'Sort1' %] |
| 97 |
<strong>Patron sort1:</strong> [% AuthorisedValues.GetByCode('Bsort1', loopfilte.filter ) | html %] |
| 98 |
[% CASE 'Sort2' %] |
| 99 |
<strong>Patron sort2:</strong> [% AuthorisedValues.GetByCode('Bsort2', loopfilte.filter ) | html %] |
| 100 |
[% CASE 'Status' %] |
| 101 |
<strong>Status: </strong> |
| 102 |
[% SWITCH loopfilte.filter %] |
| 103 |
[% CASE 'debarred' %] |
| 104 |
<span>Restricted</span> |
| 105 |
[% CASE 'gonenoaddress' %] |
| 106 |
<span>Gone no address</span> |
| 107 |
[% CASE 'lost' %] |
| 108 |
<span>Lost card</span> |
| 109 |
[% CASE %] |
| 110 |
[% loopfilte.filter | html %] |
| 111 |
[% END %] |
| 112 |
[% CASE 'Activity' %] |
| 113 |
<strong>Activity: </strong> |
| 114 |
[% SWITCH loopfilte.filter %] |
| 115 |
[% CASE 'active' %] |
| 116 |
<span>Active</span> |
| 117 |
[% CASE 'nonactive' %] |
| 118 |
<span>Inactive</span> |
| 119 |
[% CASE %] |
| 120 |
[% loopfilte.filter | html %] |
| 121 |
[% END %] |
| 122 |
[% CASE "PA_CLASS" %] |
| 123 |
<strong>[% loopfilte.label | html %]:</strong> |
| 124 |
[% loopfilte.filter | html %] |
| 125 |
[% CASE %] |
| 126 |
<strong>[% loopfilte.crit | html %]: </strong> |
| 127 |
[% loopfilte.filter | html %] |
| 128 |
[% END %] |
| 129 |
</li> |
| 130 |
[% END %] |
| 131 |
</ul> |
| 64 |
[% END %] |
132 |
[% END %] |
| 65 |
<div class="page-section"> |
133 |
<div class="page-section"> |
| 66 |
<table> |
134 |
<table> |
|
Lines 227-233
Link Here
|
| 227 |
<select id="sort1" name="Filter"> |
295 |
<select id="sort1" name="Filter"> |
| 228 |
<option value="" /> |
296 |
<option value="" /> |
| 229 |
[% FOREACH SORT1_LOO IN SORT1_LOOP %] |
297 |
[% FOREACH SORT1_LOO IN SORT1_LOOP %] |
| 230 |
<option value="[% SORT1_LOO.authorized_value | html %]">[% SORT1_LOO.lib | html %]</option> |
298 |
<option value="[% SORT1_LOO.authorised_value | html %]">[% SORT1_LOO.lib | html %]</option> |
| 231 |
[% END %] |
299 |
[% END %] |
| 232 |
</select> |
300 |
</select> |
| 233 |
</td> |
301 |
</td> |
|
Lines 244-250
Link Here
|
| 244 |
<select id="sort2" name="Filter"> |
312 |
<select id="sort2" name="Filter"> |
| 245 |
<option value="" /> |
313 |
<option value="" /> |
| 246 |
[% FOREACH SORT2_LOO IN SORT2_LOOP %] |
314 |
[% FOREACH SORT2_LOO IN SORT2_LOOP %] |
| 247 |
<option value="[% SORT2_LOO.value | html %]">[% SORT2_LOO.value | html %]</option> |
315 |
<option value="[% SORT2_LOO.value | html %]">[% AuthorisedValues.GetByCode('Bsort2', SORT2_LOO.value ) | html %]</option> |
| 248 |
[% END %] |
316 |
[% END %] |
| 249 |
</select> |
317 |
</select> |
| 250 |
</td> |
318 |
</td> |