[Koha-bugs] [Bug 21284] ILS-DI: Allow GetPatronInfo to tell if a loaned item is on hold by someone else.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 6 01:47:28 CEST 2020


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

--- Comment #13 from David Nind <david at davidnind.com> ---
Here is an updated test plan that I used:

This patch adds two new entries to the loans section of an ILS-DI GetPatronInfo
response:

- itemonhold: number of holds on a specific item.
- recordonhold: number of holds on the record.

It allows an ILS-DI client to know if a loaned item is already on hold by
someone else, and how many holds there are.

Test plan:
1. Apply the patch.
2. Enable the ILS-DI system preference.
3. Check out an item for a patron and make sure there no other holds at either
an item or record level.
4. Check that the new itemonhold and recordonhold entries displayed are equal
to zero (example:
http://127.0.0.1:8080/cgi-bin/koha/ilsdi.pl?service=GetPatronInfo&patron_id=19&show_contact=0&show_loans=1).
5. Add either a record or item level hold for the record used in step 2.
6. Check that itemonhold and recordonhold values are incremented accordingly.
   Note: a hold at an item level counts as a hold at a record level, but not
vice-versa.
7. Run the tests and make sure they pass: prove t/db_dependent/ILSDI_Services.t
8. Sign-off!

Also, does any text need to be updated for the description information in
ILS-DI
(http://127.0.0.1:8080/cgi-bin/koha/ilsdi.pl?service=Describe&verb=GetPatronInfo)?
For example, add entries for itemonhold and recordonhold to the item response
example.

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


More information about the Koha-bugs mailing list