Lines 1145-1150
Link Here
|
1145 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
1145 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
1146 |
[% INCLUDE 'select2.inc' %] |
1146 |
[% INCLUDE 'select2.inc' %] |
1147 |
[% Asset.js("js/holds.js") | $raw%] |
1147 |
[% Asset.js("js/holds.js") | $raw%] |
|
|
1148 |
|
1149 |
[% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %] |
1150 |
[% IF multi_hold %] |
1151 |
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %] |
1152 |
[% END %] |
1153 |
|
1148 |
<script> |
1154 |
<script> |
1149 |
var Sticky; |
1155 |
var Sticky; |
1150 |
var biblionumbers = [[% biblionumbers.join(', ') | $raw %]]; |
1156 |
var biblionumbers = [[% biblionumbers.join(', ') | $raw %]]; |
Lines 1503-1508
Link Here
|
1503 |
return false; |
1509 |
return false; |
1504 |
}); |
1510 |
}); |
1505 |
|
1511 |
|
|
|
1512 |
[% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %] |
1513 |
[% IF ( PatronAutoComplete ) %] |
1514 |
$( "#search_patron_filter" ).autocomplete({ |
1515 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
1516 |
minLength: 3, |
1517 |
select: function( event, ui ) { |
1518 |
document.location.href = '/cgi-bin/koha/reserve/request.pl?[% url_biblio_params | url %]&borrowernumber=' + ui.item.borrowernumber; |
1519 |
} |
1520 |
}) |
1521 |
.data( "ui-autocomplete" )._renderItem = function( ul, item ) { |
1522 |
return $( "<li></li>" ) |
1523 |
.data( "ui-autocomplete-item", item ) |
1524 |
.append( |
1525 |
"<a>" |
1526 |
+ ( item.surname ? item.surname.escapeHtml() : "" ) |
1527 |
+ ", " |
1528 |
+ ( item.firstname ? item.firstname.escapeHtml() : "" ) |
1529 |
+ " (" + ( item.cardnumber ? item.cardnumber.escapeHtml() : "" ) + ")" |
1530 |
+ " " |
1531 |
+ "<small>" |
1532 |
+ ( item.address ? item.address.escapeHtml() : "" ) |
1533 |
+ " " |
1534 |
+ ( item.city ? item.city.escapeHtml() : "" ) |
1535 |
+ " " |
1536 |
+ ( item.zipcode ? item.zipcode.escapeHtml() : "" ) |
1537 |
+ " " |
1538 |
+ ( item.country ? item.country.escapeHtml() : "" ) |
1539 |
+ "</small>" |
1540 |
+ "</a>" ) |
1541 |
.appendTo( ul ); |
1542 |
}; |
1543 |
[% END %] |
1544 |
[% END %] |
1545 |
|
1506 |
Sticky = $("#toolbar"); |
1546 |
Sticky = $("#toolbar"); |
1507 |
Sticky.hcSticky({ |
1547 |
Sticky.hcSticky({ |
1508 |
stickTo: "#existing_holds", |
1548 |
stickTo: "#existing_holds", |
Lines 1560-1570
Link Here
|
1560 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
1600 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
1561 |
</script> |
1601 |
</script> |
1562 |
|
1602 |
|
1563 |
[% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %] |
|
|
1564 |
[% IF multi_hold %] |
1565 |
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %] |
1566 |
[% END %] |
1567 |
|
1568 |
[% PROCESS patron_search_js |
1603 |
[% PROCESS patron_search_js |
1569 |
table_id => 'table_borrowers', |
1604 |
table_id => 'table_borrowers', |
1570 |
categories => categories, |
1605 |
categories => categories, |
1571 |
- |
|
|