https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16826
Bug ID: 16826
Summary: Add API routes for getting item availability and
holdability
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Web services
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Add API routes for getting item availability and holdability. Holdability check
requires a target borrower (either user himself or borrowernumber).
I'm thinking of following endpoints:
GET /api/v1/items/{itemnumber}/availability
GET /api/v1/items/{itemnumber}/holdability For myself
GET /api/v1/items/{itemnumber}/holdability?borrowernumber=X For X
Terms:
- availability: Does not require login or permissions. Makes a simple check if
item is in a valid state for holdings. In other words, check "notforloan",
"onloan", "itemlost", "withdrawn", "damaged".
- holdability: Requires login and also catalogue permission if the request is
made for another borrowernumber than myself. Item is holdable if it is
available and if it satisfies IsAvailableForItemLevelRequest and
CanItemBeReserved in C4::Reserves + (also debarments and fines?)
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/