Lines 5-10
Link Here
|
5 |
[% USE Branches %] |
5 |
[% USE Branches %] |
6 |
[% USE Categories %] |
6 |
[% USE Categories %] |
7 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
|
|
8 |
[% formulaire = BLOCK %] |
9 |
[% INCLUDE 'patron-search-header.inc.inc' %] |
10 |
[% END %] |
8 |
[% PROCESS 'patronfields.inc' %] |
11 |
[% PROCESS 'patronfields.inc' %] |
9 |
[% SET libraries = Branches.all %] |
12 |
[% SET libraries = Branches.all %] |
10 |
[% SET categories = Categories.all.unblessed %] |
13 |
[% SET categories = Categories.all.unblessed %] |
Lines 15-23
Link Here
|
15 |
[% INCLUDE 'doc-head-close.inc' %] |
18 |
[% INCLUDE 'doc-head-close.inc' %] |
16 |
</head> |
19 |
</head> |
17 |
|
20 |
|
18 |
<body id="pat_member" class="pat"> |
21 |
<body id="pat_member"> |
19 |
[% INCLUDE 'header.inc' %] |
22 |
[% INCLUDE 'header.inc' form= formulaire %] |
20 |
[% INCLUDE 'patron-search-header.inc' %] |
|
|
21 |
|
23 |
|
22 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
24 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
23 |
<ol> |
25 |
<ol> |
Lines 41-46
Link Here
|
41 |
</li> |
43 |
</li> |
42 |
[% END %] |
44 |
[% END %] |
43 |
</ol> |
45 |
</ol> |
|
|
46 |
|
47 |
<ol> |
48 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
49 |
</ol> |
50 |
|
51 |
<ol> |
52 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
53 |
</ol> |
44 |
</nav> |
54 |
</nav> |
45 |
|
55 |
|
46 |
<div class="main container-fluid"> |
56 |
<div class="main container-fluid"> |
Lines 65-99
Link Here
|
65 |
[% END %] |
75 |
[% END %] |
66 |
|
76 |
|
67 |
<div id="searchresults"> |
77 |
<div id="searchresults"> |
|
|
78 |
<<<<<<< HEAD |
79 |
======= |
80 |
<h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember | html %]'[% END %]</span></h3> |
81 |
|
82 |
|
83 |
>>>>>>> Bug 30952: Patrons Module |
68 |
[% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %] |
84 |
[% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %] |
69 |
<div class="searchheader fh-fixedHeader" id="searchheader" style="display:none;"> |
85 |
<div class="searchheader fh-fixedHeader" id="searchheader" style="display:none;"> |
70 |
<div> |
86 |
<div> |
71 |
<a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a> |
87 |
<a href="#" class="btn btn-link" id="select_all"><i class="fa fa-check"></i> Select all</a> |
72 |
| |
|
|
73 |
<a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-remove"></i> Clear all</a> |
88 |
<a href="#" class="btn btn-link" id="clear_all"><i class="fa fa-remove"></i> Clear all</a> |
74 |
[% IF CAN_user_tools_manage_patron_lists %] |
89 |
[% IF CAN_user_tools_manage_patron_lists %] |
75 |
|
90 |
|
76 |
[% END %] |
91 |
[% END %] |
77 |
|
92 |
|
78 |
[% IF CAN_user_tools_manage_patron_lists %] |
93 |
[% IF CAN_user_tools_manage_patron_lists %] |
79 |
<div id="patronlist-dropdown" class="btn-group"> |
94 |
Add selected patrons to: |
80 |
<button id="patronlist-menu" type="button" class="btn btn-sm btn-default dropdown-toggle patron-edits disabled" disabled="disabled" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
95 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
81 |
Add to patron list <span class="caret"></span> |
96 |
<option selected="selected" value=""> [New list] </option> |
82 |
</button> |
97 |
[% IF patron_lists %] |
83 |
<ul class="dropdown-menu"> |
98 |
[% FOREACH pl IN patron_lists %] |
84 |
[% IF patron_lists %] |
99 |
<option>[% pl.name | html %]</option> |
85 |
[% FOREACH pl IN patron_lists %] |
|
|
86 |
<li><a href="#" class="patron-list-add" data-listid="[% pl.patron_list_id | html %]">[% pl.name | html %]</a></li> |
87 |
[% END %] |
88 |
[% END %] |
100 |
[% END %] |
89 |
<li role="separator" class="divider"></li> |
101 |
[% END %] |
90 |
<li><a href="#" class="patron-list-add" data-listid="new">New list</a></li> |
102 |
</select> |
91 |
</ul> |
103 |
|
92 |
</div> |
104 |
<input type="text" name="new_list_name" id="mini_inp"/> |
|
|
105 |
|
106 |
<button type="submit" id="add_to_patron_list_submit" class="btn btn-link">Save</button> |
107 |
|
108 |
|
93 |
[% END %] |
109 |
[% END %] |
94 |
|
110 |
|
95 |
[% IF CAN_user_borrowers_edit_borrowers %] |
111 |
[% IF CAN_user_borrowers_edit_borrowers %] |
96 |
<button id="merge-patrons" class="btn btn-sm btn-default disabled" disabled="disabled" type="submit"><i class="fa fa-compress" aria-hidden="true"></i> Merge selected patrons</button> |
112 |
| <button id="merge-patrons" class="btn btn-sm btn-default disabled" disabled="disabled" type="submit"><i class="fa fa-compress" aria-hidden="true"></i> Merge selected patrons</button> |
97 |
[% END %] |
113 |
[% END %] |
98 |
</div> |
114 |
</div> |
99 |
</div> |
115 |
</div> |
Lines 110-145
Link Here
|
110 |
|
126 |
|
111 |
<div class="col-sm-2 col-sm-pull-10"> |
127 |
<div class="col-sm-2 col-sm-pull-10"> |
112 |
<aside> |
128 |
<aside> |
|
|
129 |
<<<<<<< HEAD |
113 |
[% PROCESS patron_search_filters categories => categories, libraries => libraries, filters => ['search_field', 'search_type', 'category', 'branch'], search_filter => searchmember %] |
130 |
[% PROCESS patron_search_filters categories => categories, libraries => libraries, filters => ['search_field', 'search_type', 'category', 'branch'], search_filter => searchmember %] |
|
|
131 |
======= |
132 |
<div id="filters"> |
133 |
<form method="get" id="searchform"> |
134 |
<input type="hidden" id="firstletter_filter" value="" /> |
135 |
<fieldset class="brief"> |
136 |
<h4>Search patrons</h4> |
137 |
|
138 |
<fieldset> |
139 |
<ol> |
140 |
<li> |
141 |
<p>Search: |
142 |
<input type="text" id="searchmember_filter" value="[% searchmember | html %]"/></p> |
143 |
</li> |
144 |
<li> |
145 |
<p>Search field: |
146 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
147 |
[% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %] |
148 |
[% default_fields = [ 'standard', 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %] |
149 |
[% search_options = default_fields.merge(pref_fields).unique %] |
150 |
[% FOREACH s_o IN search_options %] |
151 |
[% display_name = PROCESS patron_fields name=s_o %] |
152 |
[% NEXT IF !display_name %] |
153 |
[% IF searchfieldstype == s_o %] |
154 |
<option selected="selected" value=[% s_o | html %]>[% display_name | $raw %]</option> |
155 |
[% ELSE %] |
156 |
<option value=[% s_o | html %]>[% display_name | $raw %]</option> |
157 |
[% END %] |
158 |
[% END %] |
159 |
</select></p> |
160 |
</li> |
161 |
<li> |
162 |
<p>Search type: |
163 |
<select name="searchtype" id="searchtype_filter"> |
164 |
[% IF searchtype == "start_with" %] |
165 |
<option value='start_with' selected="selected">Starts with</option> |
166 |
<option value="contain">Contains</option> |
167 |
[% ELSE %] |
168 |
<option value='start_with'>Starts with</option> |
169 |
<option value="contain" selected="selected">Contains</option> |
170 |
[% END %] |
171 |
</select></p> |
172 |
</li> |
173 |
<li> |
174 |
<p>Patron category: |
175 |
[% SET categories = Categories.all() %] |
176 |
<select id="categorycode_filter"> |
177 |
<option value="">Any</option> |
178 |
[% FOREACH cat IN categories %] |
179 |
[% IF cat.categorycode == categorycode_filter %] |
180 |
<option selected="selected" value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
181 |
[% ELSE %] |
182 |
<option value="[% cat.categorycode | html %]">[% cat.description | html %]</option> |
183 |
|
184 |
[% END %] |
185 |
[% END %] |
186 |
</select></p> |
187 |
</li> |
188 |
<li> |
189 |
<p>Library: |
190 |
[% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %] |
191 |
<select id="branchcode_filter"> |
192 |
[% IF branches.size != 1 %] |
193 |
<option value="">Any</option> |
194 |
[% END %] |
195 |
[% PROCESS options_for_libraries libraries => branches %] |
196 |
</select></p> |
197 |
</li> |
198 |
</ol> |
199 |
<ol> |
200 |
<button class="submit" id="principal" type="submit">Search</button> |
201 |
<a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a> |
202 |
</ol> |
203 |
</fieldset> |
204 |
</fieldset> |
205 |
</form> |
206 |
</div> |
207 |
>>>>>>> Bug 30952: Patrons Module |
114 |
</aside> |
208 |
</aside> |
115 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
209 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
116 |
</div> <!-- /.row --> |
210 |
</div> <!-- /.row --> |
117 |
|
211 |
|
118 |
<!-- New Patron List Modal --> |
|
|
119 |
<div class="modal" id="new-patron-list" tabindex="-1" role="dialog" aria-labelledby="new-patron-listLabel"> |
120 |
<div class="modal-dialog" role="document"> |
121 |
<div class="modal-content"> |
122 |
<div class="modal-header"> |
123 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
124 |
<h4 class="modal-title" id="new-patron-listLabel">Add patrons to a new patron list</h4> |
125 |
</div> |
126 |
<form id="new-patron-list_form"> |
127 |
<div class="modal-body"> |
128 |
<div class="form-group"> |
129 |
<label for="new_patron_list" class="required">Patron list name: </label> |
130 |
<input class="form-control required" type="text" name="new_patron_list" id="new_patron_list" required="required" /> |
131 |
<input type="hidden" name="add_to_patron_list" id="add_to_patron_list" /> |
132 |
<span class="required">Required</span> |
133 |
</div> |
134 |
</div> <!-- /.modal-body --> |
135 |
<div class="modal-footer"> |
136 |
<button type="submit" id="add_to_patron_list_submit" class="btn btn-default approve">Submit</button> |
137 |
<button type="button" class="btn btn-default deny" data-dismiss="modal">Cancel</button> |
138 |
</div> <!-- /.modal-footer --> |
139 |
</form> <!-- /#new-patron-list_form --> |
140 |
</div> <!-- /.modal-content --> |
141 |
</div> <!-- /.modal-dialog --> |
142 |
</div> <!-- /#new-patron-list --> |
143 |
|
212 |
|
144 |
[% MACRO jsinclude BLOCK %] |
213 |
[% MACRO jsinclude BLOCK %] |
145 |
[% INCLUDE 'datatables.inc' %] |
214 |
[% INCLUDE 'datatables.inc' %] |