@@ -, +, @@ some items can't be placed on hold record with no items. "Cannot place hold: this record has no items attached." --- .../prog/en/modules/reserve/request.tt | 20 ++++++++++--------- .../intranet-tmpl/prog/js/pages/results.js | 9 --------- 2 files changed, 11 insertions(+), 18 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -831,16 +831,18 @@ [% END %] - + + [% FOREACH pickup_location IN biblioloo.pickup_locations %] + + [% END %] + [% END %] - [% END # /FOREACH biblioloo %] --- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js +++ a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js @@ -338,19 +338,10 @@ function placeHold () { return false; } var bibs = ""; - var badBibs = false; $(checkedItems).each(function() { var bib = $(this).val(); - if ($("#reserve_" + bib).size() == 0) { - alert( __("One or more selected items cannot be placed on hold.") ); - badBibs = true; - return false; - } bibs += bib + "/"; }); - if (badBibs) { - return false; - } $("#hold_form_biblios").val(bibs); $("#hold_form").submit(); return false; --