@@ -, +, @@ switch to the standard single hold url ( i.e. request.pl?biblionumber=234 ) --- .../intranet-tmpl/prog/en/modules/basket/basket.tt | 25 ++++++++++++------- 1 files changed, 16 insertions(+), 9 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -29,15 +29,22 @@ function placeHold () { alert(MSG_NO_RECORD_SELECTED); return false; } - var bibs = ""; - var badBibs = false; - $(checkedItems).each(function() { - var bib = $(this).val(); - bibs += bib + "/"; - }); - - var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs; - if ($(checkedItems).size() > 1) { newloc += "&multi_hold=1"; } + + var newloc; + + if ($(checkedItems).size() > 1) { + var bibs = ""; + $(checkedItems).each(function() { + var bib = $(this).val(); + bibs += bib + "/"; + }); + + newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs + "&multi_hold=1"; + } else { + var bib = checkedItems[0].value; + newloc = "/cgi-bin/koha/reserve/request.pl?biblionumber=" + bib; + } + window.opener.location = newloc; window.close(); } --