Lines 17-27
Link Here
|
17 |
|
17 |
|
18 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › [% IF ( searching ) %]<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Search results[% ELSE %]Patrons[% END %]</div> |
18 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › [% IF ( searching ) %]<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Search results[% ELSE %]Patrons[% END %]</div> |
19 |
|
19 |
|
20 |
<div id="doc3" class="yui-t2"> |
20 |
<div class="main container-fluid"> |
21 |
<div id="bd"> |
21 |
<div class="row"> |
22 |
<div id="yui-main"> |
22 |
<div class="col-sm-10 col-sm-push-2"> |
23 |
<div class="yui-b"> |
23 |
<main> |
24 |
<div class="yui-g"> |
24 |
|
25 |
[% IF CAN_user_tools_manage_patron_lists %] |
25 |
[% IF CAN_user_tools_manage_patron_lists %] |
26 |
<div id="patron_list_dialog" class="dialog alert"> |
26 |
<div id="patron_list_dialog" class="dialog alert"> |
27 |
Added <span class="patrons-length"></span> patrons to <a></a>. |
27 |
Added <span class="patrons-length"></span> patrons to <a></a>. |
Lines 110-236
Link Here
|
110 |
<tbody></tbody> |
110 |
<tbody></tbody> |
111 |
</table> |
111 |
</table> |
112 |
</div> |
112 |
</div> |
113 |
</div> |
113 |
|
114 |
</div> |
114 |
</main> |
115 |
</div> |
115 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
116 |
<div class="yui-b"> |
116 |
|
117 |
<form method="get" id="searchform"> |
117 |
<div class="col-sm-2 col-sm-pull-10"> |
118 |
<input type="hidden" id="firstletter_filter" value="" /> |
118 |
<aside> |
119 |
<fieldset class="brief"> |
119 |
<form method="get" id="searchform"> |
120 |
<h3>Filters</h3> |
120 |
<input type="hidden" id="firstletter_filter" value="" /> |
121 |
<ol> |
121 |
<fieldset class="brief"> |
122 |
<li> |
122 |
<h3>Filters</h3> |
123 |
<label for="searchmember_filter">Search:</label> |
123 |
<ol> |
124 |
<input type="text" id="searchmember_filter" value="[% searchmember | html %]"/> |
124 |
<li> |
125 |
</li> |
125 |
<label for="searchmember_filter">Search:</label> |
126 |
<li> |
126 |
<input type="text" id="searchmember_filter" value="[% searchmember | html %]"/> |
127 |
<label for="searchfieldstype_filter">Search fields:</label> |
127 |
</li> |
128 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
128 |
<li> |
129 |
[% IF searchfieldstype == "standard" %] |
129 |
<label for="searchfieldstype_filter">Search fields:</label> |
130 |
<option selected="selected" value='standard'>Standard</option> |
130 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
131 |
[% ELSE %] |
131 |
[% IF searchfieldstype == "standard" %] |
132 |
<option value='standard'>Standard</option> |
132 |
<option selected="selected" value='standard'>Standard</option> |
133 |
[% END %] |
133 |
[% ELSE %] |
134 |
[% IF searchfieldstype == "surname" %] |
134 |
<option value='standard'>Standard</option> |
135 |
<option selected="selected" value='surname'>Surname</option> |
135 |
[% END %] |
136 |
[% ELSE %] |
136 |
[% IF searchfieldstype == "surname" %] |
137 |
<option value='surname'>Surname</option> |
137 |
<option selected="selected" value='surname'>Surname</option> |
138 |
[% END %] |
138 |
[% ELSE %] |
139 |
[% IF searchfieldstype == "email" %] |
139 |
<option value='surname'>Surname</option> |
140 |
<option selected="selected" value='email'>Email</option> |
140 |
[% END %] |
141 |
[% ELSE %] |
141 |
[% IF searchfieldstype == "email" %] |
142 |
<option value='email'>Email</option> |
142 |
<option selected="selected" value='email'>Email</option> |
143 |
[% END %] |
143 |
[% ELSE %] |
144 |
[% IF searchfieldstype == "borrowernumber" %] |
144 |
<option value='email'>Email</option> |
145 |
<option selected="selected" value='borrowernumber'>Borrower number</option> |
145 |
[% END %] |
146 |
[% ELSE %] |
146 |
[% IF searchfieldstype == "borrowernumber" %] |
147 |
<option value='borrowernumber'>Borrower number</option> |
147 |
<option selected="selected" value='borrowernumber'>Borrower number</option> |
148 |
[% END %] |
148 |
[% ELSE %] |
149 |
[% IF searchfieldstype == "userid" %] |
149 |
<option value='borrowernumber'>Borrower number</option> |
150 |
<option selected="selected" value='userid'>Username</option> |
150 |
[% END %] |
151 |
[% ELSE %] |
151 |
[% IF searchfieldstype == "userid" %] |
152 |
<option value='userid'>Username</option> |
152 |
<option selected="selected" value='userid'>Username</option> |
153 |
[% END %] |
153 |
[% ELSE %] |
154 |
[% IF searchfieldstype == "phone" %] |
154 |
<option value='userid'>Username</option> |
155 |
<option selected="selected" value='phone'>Phone number</option> |
155 |
[% END %] |
156 |
[% ELSE %] |
156 |
[% IF searchfieldstype == "phone" %] |
157 |
<option value='phone'>Phone number</option> |
157 |
<option selected="selected" value='phone'>Phone number</option> |
158 |
[% END %] |
158 |
[% ELSE %] |
159 |
[% IF searchfieldstype == "address" %] |
159 |
<option value='phone'>Phone number</option> |
160 |
<option selected="selected" value='address'>Street address</option> |
160 |
[% END %] |
161 |
[% ELSE %] |
161 |
[% IF searchfieldstype == "address" %] |
162 |
<option value='address'>Street address</option> |
162 |
<option selected="selected" value='address'>Street address</option> |
163 |
[% END %] |
163 |
[% ELSE %] |
164 |
[% IF searchfieldstype == "dateofbirth" %] |
164 |
<option value='address'>Street address</option> |
165 |
<option selected="selected" value='dateofbirth'>Date of birth</option> |
165 |
[% END %] |
166 |
[% ELSE %] |
166 |
[% IF searchfieldstype == "dateofbirth" %] |
167 |
<option value='dateofbirth'>Date of birth</option> |
167 |
<option selected="selected" value='dateofbirth'>Date of birth</option> |
168 |
[% END %] |
168 |
[% ELSE %] |
169 |
[% IF searchfieldstype == "sort1" %] |
169 |
<option value='dateofbirth'>Date of birth</option> |
170 |
<option selected="selected" value='sort1'>Sort field 1</option> |
170 |
[% END %] |
171 |
[% ELSE %] |
171 |
[% IF searchfieldstype == "sort1" %] |
172 |
<option value='sort1'>Sort field 1</option> |
172 |
<option selected="selected" value='sort1'>Sort field 1</option> |
173 |
[% END %] |
173 |
[% ELSE %] |
174 |
[% IF searchfieldstype == "sort2" %] |
174 |
<option value='sort1'>Sort field 1</option> |
175 |
<option selected="selected" value='sort2'>Sort field 2</option> |
175 |
[% END %] |
176 |
[% ELSE %] |
176 |
[% IF searchfieldstype == "sort2" %] |
177 |
<option value='sort2'>Sort field 2</option> |
177 |
<option selected="selected" value='sort2'>Sort field 2</option> |
178 |
[% END %] |
178 |
[% ELSE %] |
179 |
</select> |
179 |
<option value='sort2'>Sort field 2</option> |
180 |
</li> |
180 |
[% END %] |
181 |
<li> |
181 |
</select> |
182 |
<label for="searchtype_filter">Search type:</label> |
182 |
</li> |
183 |
<select name="searchtype" id="searchtype_filter"> |
183 |
<li> |
184 |
[% IF searchtype == "start_with" %] |
184 |
<label for="searchtype_filter">Search type:</label> |
185 |
<option value='start_with' selected="selected">Starts with</option> |
185 |
<select name="searchtype" id="searchtype_filter"> |
186 |
<option value="contain">Contains</option> |
186 |
[% IF searchtype == "start_with" %] |
187 |
[% ELSE %] |
187 |
<option value='start_with' selected="selected">Starts with</option> |
188 |
<option value='start_with'>Starts with</option> |
188 |
<option value="contain">Contains</option> |
189 |
<option value="contain" selected="selected">Contains</option> |
189 |
[% ELSE %] |
190 |
[% END %] |
190 |
<option value='start_with'>Starts with</option> |
191 |
</select> |
191 |
<option value="contain" selected="selected">Contains</option> |
192 |
</li> |
192 |
[% END %] |
193 |
<li> |
193 |
</select> |
194 |
<label for="categorycode_filter">Category:</label> |
194 |
</li> |
195 |
[% SET categories = Categories.all() %] |
195 |
<li> |
196 |
<select id="categorycode_filter"> |
196 |
<label for="categorycode_filter">Category:</label> |
197 |
<option value="">Any</option> |
197 |
[% SET categories = Categories.all() %] |
198 |
[% FOREACH cat IN categories %] |
198 |
<select id="categorycode_filter"> |
199 |
[% IF cat.categorycode == categorycode_filter %] |
199 |
<option value="">Any</option> |
|
|
200 |
[% FOREACH cat IN categories %] |
201 |
[% IF cat.categorycode == categorycode_filter %] |
200 |
<option selected="selected" value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
202 |
<option selected="selected" value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
201 |
[% ELSE %] |
203 |
[% ELSE %] |
202 |
<option value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
204 |
<option value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
203 |
[% END %] |
205 |
|
204 |
[% END %] |
206 |
[% END %] |
205 |
</select> |
207 |
[% END %] |
206 |
</li> |
208 |
</select> |
207 |
<li> |
209 |
</li> |
208 |
<label for="branchcode_filter">Library:</label> |
210 |
<li> |
209 |
[% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %] |
211 |
<label for="branchcode_filter">Library:</label> |
210 |
<select id="branchcode_filter"> |
212 |
[% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %] |
211 |
[% IF branches.size != 1 %] |
213 |
<select id="branchcode_filter"> |
212 |
<option value="">Any</option> |
214 |
[% IF branches.size != 1 %] |
213 |
[% END %] |
215 |
<option value="">Any</option> |
214 |
[% PROCESS options_for_libraries libraries => branches %] |
216 |
[% END %] |
215 |
</select> |
217 |
[% PROCESS options_for_libraries libraries => branches %] |
216 |
</li> |
218 |
</select> |
217 |
</ol> |
219 |
</li> |
218 |
<fieldset class="action"> |
220 |
</ol> |
219 |
<input type="submit" value="Search" /> |
221 |
<fieldset class="action"> |
220 |
<input type="button" value="Clear" id="clear_search" /> |
222 |
<input type="submit" value="Search" /> |
221 |
</fieldset> |
223 |
<input type="button" value="Clear" id="clear_search" /> |
222 |
</fieldset> |
224 |
</fieldset> |
223 |
</form> |
225 |
</fieldset> |
224 |
</div> |
226 |
</form> |
225 |
</div> |
227 |
</aside> |
226 |
</div> |
228 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
|
|
229 |
</div> <!-- /.row --> |
227 |
|
230 |
|
228 |
[% MACRO jsinclude BLOCK %] |
231 |
[% MACRO jsinclude BLOCK %] |
229 |
[% INCLUDE 'datatables.inc' %] |
232 |
[% INCLUDE 'datatables.inc' %] |
230 |
[% INCLUDE 'columns_settings.inc' %] |
233 |
[% INCLUDE 'columns_settings.inc' %] |
231 |
[% INCLUDE 'str/members-menu.inc' %] |
234 |
[% INCLUDE 'str/members-menu.inc' %] |
232 |
[% Asset.js("js/members-menu.js") | $raw %] |
235 |
[% Asset.js("js/members-menu.js") | $raw %] |
233 |
<script type="text/javascript"> |
236 |
<script> |
234 |
$(document).ready(function() { |
237 |
$(document).ready(function() { |
235 |
$('#merge-patrons').prop('disabled', true); |
238 |
$('#merge-patrons').prop('disabled', true); |
236 |
$('#memberresultst').on('change', 'input.selection', function() { |
239 |
$('#memberresultst').on('change', 'input.selection', function() { |