a902efb83b
This patch adds an endpoint in thi api in /api/v1/clubs/{club_id}/holds whith the verb POST that maps to Koha::REST::V1::Clubs::Holds#add controller. Classes for club_holds and club_holds_to_patron_holds new tables where also added. To test: 1) Reach SUCCESS.3 test point of previous patch with club that has no enrollments 2) Click on "Place Hold" SUCCESS => an alert should appear that you cannot place hold on a club without patrons 3) Reach SUCCESS.3 test point of previous patch with club that has enrollments 4) Click on "Place Hold" SUCCESS => holds priority list should appear with holds for every patron in club 5) Repeat steps 3 and 4. SUCCESS => new holds should appear in different order 6) Sign off Sponsored-by: Southeast Kansas Library - SEKLS Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
30 lines
804 B
JSON
30 lines
804 B
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"club_hold_patron_hold_id": {
|
|
"type": "integer",
|
|
"description": "Internal club hold to patron hold identifier"
|
|
},
|
|
"club_hold_id": {
|
|
"type": "integer",
|
|
"description": "Internal club hold identifier"
|
|
},
|
|
"hold_id": {
|
|
"type": ["integer", "null"],
|
|
"description": "Internal hold identifier"
|
|
},
|
|
"patron_id": {
|
|
"type": "integer",
|
|
"description": "Internal patron identifier"
|
|
},
|
|
"error_code": {
|
|
"type": ["string", "null"],
|
|
"format": "date",
|
|
"description": "Code returned by CanItemBeReserved"
|
|
},
|
|
"error_message": {
|
|
"type": ["string", "null"],
|
|
"description": "Generic error message"
|
|
}
|
|
}
|
|
}
|