Bug 23710: Use API to place holds for patrons
authorAgustin Moyano <agustinmoyano@theke.io>
Tue, 1 Oct 2019 18:26:55 +0000 (15:26 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Oct 2019 12:00:16 +0000 (13:00 +0100)
commit3567f21ebb2aff72327b4c000df187dbb96275d3
tree4026a7f56d830cc051879d4fd2d94dc8d2fdb80c
parent7a80c94d96d5d0717d9a73a4d73fd1b7256bb181
Bug 23710: Use API to place holds for patrons

This patch effectively uses API to place holds for patrons. It adds a listener on submit event of the form in javascript, where it calls holds API.

To test:

1. Place a hold on any biblio for a patron
SUCCESS => hold is placed or rejected, but no blank page with JSON error is shown.
2. Place a multi hold for any patron
SUCCESS => holds are placed or rejected, but no blank page with JSON error is shown.
3. Sign off

Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt