[Koha-bugs] [Bug 16826] REST API: Add API routes for getting item availability and holdability

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 9 11:57:21 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16826

--- Comment #30 from Lari Taskula <lari.taskula at jns.fi> ---
I fixed some bugs that I found during testing, and also thought the old patch
should be split into two; first for introducing new classes and the second for
API. I hope this makes it a bit more understandable and easier to test. All
availability logic was moved from Koha::Item to Koha::Item::Availabilities. I
think this way is cleaner and we avoided previously added 170 lines of code
from Koha::Item that could (and should) as well be in its own module. I left a
simple link into Koha::Item, $item->availabilities that you can easily use for
accessing availability data. Another way is to create a new
Koha::Item::Availabilities object and passing $item for the constructor.

Also I added some useful item data in return JSON.

Since these updates changed a lot, I set this Bug back into Needs Signoff
status.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list