Bug 24410: Fix multi holds

Bug 19618 replaces the call to placerequest.pl with a REST API /holds
That is wrong as it does not support multi holds.

Test plan:
Confirm that prior to this patch you are not able to place a hold on
several records at once, and that this patch fixes it

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Agustin Moyano <agustinmoyano@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2020-01-13 14:30:35 +01:00 committed by Joy Nelson
parent 724f090717
commit 5fbb0201dc
1 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@
<fieldset class="rows">
<legend>Hold details</legend>
<form action="/api/v1/holds" method="post" name="form" id="hold-request-form">
<form action="placerequest.pl" method="post" name="form" id="hold-request-form">
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
<input type="hidden" name="type" value="str8" />
@ -1018,7 +1018,7 @@
"margin-right":"0em"
});
$("#club-request-form, #hold-request-form").on("submit", function() {
$("#club-request-form").on("submit", function() {
let $t = $(this);
$('.clubalert, .holdalert').addClass('hide');
let biblionumbers = [biblionumber];