Lines 27-37
Link Here
|
27 |
[% END %]</title |
27 |
[% END %]</title |
28 |
> |
28 |
> |
29 |
[% INCLUDE 'doc-head-close.inc' %] |
29 |
[% INCLUDE 'doc-head-close.inc' %] |
30 |
<style> |
30 |
[% FILTER collapse %] |
31 |
textarea { |
31 |
<style> |
32 |
width: 100%; |
32 |
textarea { |
33 |
} |
33 |
width: 100%; |
34 |
</style> |
34 |
} |
|
|
35 |
</style> |
36 |
[% END %] |
35 |
|
37 |
|
36 |
[% BLOCK list_permissions %] |
38 |
[% BLOCK list_permissions %] |
37 |
<li> |
39 |
<li> |
Lines 211-238
Link Here
|
211 |
|
213 |
|
212 |
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="transferform" method="post"> |
214 |
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="transferform" method="post"> |
213 |
[% INCLUDE 'csrf-token.inc' %] |
215 |
[% INCLUDE 'csrf-token.inc' %] |
214 |
<fieldset> |
216 |
<fieldset class="rows"> |
|
|
217 |
<legend class="visually-hidden">Transfer ownership</legend> |
215 |
<input type="hidden" name="op" value="cud-transfer" /> |
218 |
<input type="hidden" name="op" value="cud-transfer" /> |
216 |
<input type="hidden" name="public" value="1" /> |
219 |
<input type="hidden" name="public" value="1" /> |
217 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
220 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
218 |
|
221 |
<ol> |
219 |
<div> |
222 |
<li> |
220 |
<label for="find_patron">Search for new owner: </label> |
223 |
<label for="find_patron">Search for new owner: </label> |
221 |
<input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" /> |
224 |
<input autocomplete="off" id="find_patron" type="text" size="40" class="patron_autocomplete noEnterSubmit" placeholder="Enter patron card number or partial name" /> |
222 |
</div> |
225 |
</li> |
223 |
|
226 |
<li style="display:none"> |
224 |
<br /> |
227 |
<label for="find_patron">New owner: </label> |
225 |
<div> |
228 |
<span id="new_owner_name"></span> |
226 |
<label for="find_patron">New owner: </label> |
229 |
<input type="hidden" id="new_owner" name="new_owner" value="" /> |
227 |
<span id="new_owner_name"></span> |
230 |
</li> |
228 |
<input type="hidden" id="new_owner" name="new_owner" value="" /> |
231 |
</ol> |
229 |
</div> |
232 |
</fieldset> |
230 |
|
233 |
<fieldset class="action"> |
231 |
<br /> |
234 |
<input type="submit" class="btn btn-primary" value="Transfer" /> |
232 |
<fieldset class="action"> |
235 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&public=1" class="cancel">Cancel</a> |
233 |
<input type="submit" class="btn btn-primary" value="Transfer" /> |
|
|
234 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&public=1" class="cancel">Cancel</a> |
235 |
</fieldset> |
236 |
</fieldset> |
236 |
</fieldset> |
237 |
</form> |
237 |
</form> |
238 |
[% END # /IF op == transfer %] |
238 |
[% END # /IF op == transfer %] |
Lines 969-975
Link Here
|
969 |
$(document).ready(function() { |
969 |
$(document).ready(function() { |
970 |
patron_autocomplete( $("#find_patron"), { 'on-select-callback': function( event, ui ) { |
970 |
patron_autocomplete( $("#find_patron"), { 'on-select-callback': function( event, ui ) { |
971 |
$('#new_owner_name').html( ui.item.firstname + " " + ui.item.surname ); |
971 |
$('#new_owner_name').html( ui.item.firstname + " " + ui.item.surname ); |
972 |
$('#new_owner').val( ui.item.patron_id ); |
972 |
$('#new_owner').val( ui.item.patron_id ).parent().show(); |
973 |
$('#find_patron').val('').focus(); |
973 |
$('#find_patron').val('').focus(); |
974 |
return false; |
974 |
return false; |
975 |
}}); |
975 |
}}); |
976 |
- |
|
|