Lines 1598-1604
Link Here
|
1598 |
'data': aoData, |
1598 |
'data': aoData, |
1599 |
'success': function(json){ |
1599 |
'success': function(json){ |
1600 |
// redirect if there is only 1 result. |
1600 |
// redirect if there is only 1 result. |
1601 |
if ( json.aaData.length == 1 ) { |
1601 |
if ( json.iTotalDisplayRecords == 1 ) { |
1602 |
var borrowernumber = json.aaData[0].borrowernumber; |
1602 |
var borrowernumber = json.aaData[0].borrowernumber; |
1603 |
document.location.href = '/cgi-bin/koha/reserve/request.pl?borrowernumber=' + borrowernumber + "[% url_biblio_params %]" |
1603 |
document.location.href = '/cgi-bin/koha/reserve/request.pl?borrowernumber=' + borrowernumber + "[% url_biblio_params %]" |
1604 |
return false; |
1604 |
return false; |
1605 |
- |
|
|