Lines 1571-1577
Link Here
|
1571 |
}); |
1571 |
}); |
1572 |
|
1572 |
|
1573 |
[% FOREACH biblionumber IN biblionumbers %] |
1573 |
[% FOREACH biblionumber IN biblionumbers %] |
1574 |
[% SET url_biblio_params = url_biblio_params _ "&biblionumber=" _ biblionumber %] |
1574 |
[% SET url_biblio_params = url_biblio_params _ "&biblionumber=" _ biblionumber | uri %] |
1575 |
[% END %] |
1575 |
[% END %] |
1576 |
[% IF multi_hold %] |
1576 |
[% IF multi_hold %] |
1577 |
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %] |
1577 |
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %] |
Lines 1600-1606
Link Here
|
1600 |
// redirect if there is only 1 result. |
1600 |
// redirect if there is only 1 result. |
1601 |
if ( json.iTotalDisplayRecords == 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 | $raw %]" |
1604 |
return false; |
1604 |
return false; |
1605 |
} |
1605 |
} |
1606 |
fnCallback(json); |
1606 |
fnCallback(json); |
Lines 1610-1616
Link Here
|
1610 |
'fnDrawCallback': function (oSettings) { |
1610 |
'fnDrawCallback': function (oSettings) { |
1611 |
var data = this.fnGetData(); |
1611 |
var data = this.fnGetData(); |
1612 |
$.each($(this).find("tbody tr"), function(index, tr) { |
1612 |
$.each($(this).find("tbody tr"), function(index, tr) { |
1613 |
let url = '/cgi-bin/koha/reserve/request.pl?borrowernumber=' + data[index].borrowernumber + "[% url_biblio_params %]" |
1613 |
let url = '/cgi-bin/koha/reserve/request.pl?borrowernumber=' + data[index].borrowernumber + "[% url_biblio_params | $raw %]" |
1614 |
$(tr).off('click').on('click', function() { |
1614 |
$(tr).off('click').on('click', function() { |
1615 |
document.location.href = url; |
1615 |
document.location.href = url; |
1616 |
}).addClass('clickable'); |
1616 |
}).addClass('clickable'); |
1617 |
- |
|
|