[Koha-bugs] [Bug 17005] REST API: add routes to list checkouts history

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 20 16:43:20 CEST 2016


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

Lari Taskula <lari.taskula at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #56698|0                           |1
        is obsolete|                            |

--- Comment #12 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 56699
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56699&action=edit
Bug 17005: REST API: add routes to list checkouts history

GET /checkouts/history                                 (get all old_issues'
issue_id)
GET /checkouts/history?borrowernumber={borrowernumber} (get all borrower's
old_issues' issue_id)
GET /checkouts/history/{checkout_id}                   (get old_issue)

+ unit tests in t/db_dependent/api/v1/checkoutshistory.t

Test plan:
1. Open a browser tab on Koha staff and log in (to create CGISESSID
   cookie). You should have permission circulate_remaining_permissions.
2. Go to http://yourlibrary/api/v1/checkouts/history?borrowernumber=XXX
   (replace XXX with a borrowernumber that has some checkouts history)
   and check you receive all the issues from patron's history
3. Go to http://yourlibrary/api/v1/checkouts/history/YYY (replace YYY
   with an existing checkout id) and check you receive correct data
4. Run unit tests in t/db_dependent/api/v1/checkoutshistory.t

This patch on top of previous changes adds the condition that the old
issue included in any response must have itemnumber. Those which does
not have itemnumber does not count as such old issue is completely
useless.

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


More information about the Koha-bugs mailing list