Lines 130-135
function checkMultiHold() {
Link Here
|
130 |
}); |
130 |
}); |
131 |
|
131 |
|
132 |
$('#hold-request-form').preventDoubleFormSubmit(); |
132 |
$('#hold-request-form').preventDoubleFormSubmit(); |
|
|
133 |
|
134 |
[% UNLESS ( borrowernumber ) %] |
135 |
[% IF ( CircAutocompl ) %] |
136 |
$( "#patron" ).autocomplete({ |
137 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
138 |
minLength: 3, |
139 |
select: function( event, ui ) { |
140 |
$( "#patron" ).val( ui.item.cardnumber ); |
141 |
$( "#holds_patronsearch" ).submit(); |
142 |
return false; |
143 |
} |
144 |
}) |
145 |
.data( "autocomplete" )._renderItem = function( ul, item ) { |
146 |
return $( "<li></li>" ) |
147 |
.data( "item.autocomplete", item ) |
148 |
.append( "<a>" + item.surname + ", " + item.firstname + |
149 |
" (" + item.cardnumber + ") <small>" + item.address + |
150 |
" " + item.city + " " + item.zipcode + " " + |
151 |
item.country + "</small></a>" ) |
152 |
.appendTo( ul ); |
153 |
}; |
154 |
[% END %] |
155 |
[% END %] |
156 |
|
133 |
}); |
157 |
}); |
134 |
|
158 |
|
135 |
// ]]> |
159 |
// ]]> |
Lines 176-190
function checkMultiHold() {
Link Here
|
176 |
[% IF ( messageborrower ) %] |
200 |
[% IF ( messageborrower ) %] |
177 |
<div class="dialog alert"><h3>Patron Not Found</h3><p>No patron with this name, please, try another</p> </div> |
201 |
<div class="dialog alert"><h3>Patron Not Found</h3><p>No patron with this name, please, try another</p> </div> |
178 |
[% END %] |
202 |
[% END %] |
179 |
<form action="request.pl?biblionumber=[% biblionumber %]" method="post"> |
203 |
<form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post"> |
180 |
[% UNLESS borrower_list %] |
204 |
[% UNLESS borrower_list %] |
181 |
<fieldset class="brief"> |
205 |
<fieldset class="brief"> |
182 |
<label for="patron">Patron: </label> |
206 |
<label for="patron">Patron: </label> |
183 |
<div class="hint">Enter patron card number or partial name:</div> |
207 |
<div class="hint">Enter patron card number or partial name:</div> |
184 |
<input type="text" size="20" id="patron" class="focus" name="findborrower" /> |
208 |
<input type="text" size="40" id="patron" class="focus" name="findborrower" /> |
185 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
|
|
186 |
<input type="submit" value="Search" /> |
209 |
<input type="submit" value="Search" /> |
187 |
</fieldset> |
210 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
|
|
211 |
</fieldset> |
188 |
[% ELSE %] |
212 |
[% ELSE %] |
189 |
<fieldset> |
213 |
<fieldset> |
190 |
<select size="7" name="borrowernumber"> |
214 |
<select size="7" name="borrowernumber"> |
191 |
- |
|
|