[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
Mon Aug 1 20:03:53 CEST 2016


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

Jiri Kozlovsky <mail at jkozlovsky.cz> changed:

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

--- Comment #5 from Jiri Kozlovsky <mail at jkozlovsky.cz> ---
Created attachment 53858
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53858&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 the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list