[Koha-bugs] [Bug 16826] New: Add API routes for getting item availability and holdability
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 28 16:58:47 CEST 2016
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: koha-bugs at lists.koha-community.org
Reporter: larit at student.uef.fi
QA Contact: testopia at bugs.koha-community.org
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.
More information about the Koha-bugs
mailing list