Bug 15516 will bring the ability to reserve the first available item from a group of titles. The API should allow that too.
Created attachment 48447 [details] [review] Bug 15566: API - allow to reserve first available from a group of titles Test plan: 0. Find 1 borrower and 2 biblios they can place a hold on. Let's call them $borrowernumber, $biblionumber1 and $biblionumber2 1. Make a POST request to http://your.library.org/api/v1/reserves with the following body: { "onlyfirst": true, "reserves": [ { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber1 }, { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber2 }, ] } 2. Check that you get a 201 response with the reserves informations 3. Check in staff interface that the reserves were correctly made
Created attachment 50097 [details] [review] Bug 15566: API - allow to reserve first available from a group of titles Test plan: 0. Find 1 borrower and 2 biblios they can place a hold on. Let's call them $borrowernumber, $biblionumber1 and $biblionumber2 1. Make a POST request to http://your.library.org/api/v1/reserves with the following body: { "onlyfirst": true, "reserves": [ { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber1 }, { "borrowernumber": $borrowernumber, "biblionumber": $biblionumber2 }, ] } 2. Check that you get a 201 response with the reserves informations 3. Check in staff interface that the reserves were correctly made Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Rebased against master. Any reason this is blocked? Tests pass and API seems fine, although its certainly gonna conflict with Bug 15567 - Update API to allow multiple holds for the same record, at least the code in Koha/REST/V1/Reserve.pm and the definition files
I don't remember why I changed the status to BLOCKED. All dependencies are Signed Off, so we can change it back to Needs Signoff
As I already signed off this one and tested it ok, I see no reason it shouldn't move on to QA
Depends on a PNA patch
If PNA is like DNA, I think I can unblocked it.
Blocked: this depends on a failed qa report.