[Koha-bugs] [Bug 30979] Add ability for OPAC users to checkout to themselves

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 13 23:58:40 CET 2023


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

--- Comment #36 from David Nind <david at davidnind.com> ---
Updated test plan I used (using KTD).

Setup
1. Apply patches, updatedatabase, flush_memcached, restart_all
2. Enable OpacTrustedCheckout system preference

Testing the API
1. Get details of items for a record:
   - Visit http://127.0.0.1:8080/api/v1/public/items?external_id=39999000005097
     ==> should return details for the item

Test the self-checkout feature:
1. Go to the OPAC home page.
2. Login as a patron (in this case I used koha), and note that in the OPAC
header there is now a Self checkout option after Cart and Lists.
3. Click on Self checkout ==> window pops up asking you to enter a barcode.
4. Enter a barcode for an item that is available, for example: 39999000006094
   ==> Message should say: "Item '39999000006094' was checked out", and an
option to enter another barcode, as well as Submit and Close buttons.
5. Click close and check your account > your summary: item checked out should
be listed.
6. Repeat step 4 with the same barcode, this time the result should be:
   ==> Message says: "Item will be renewed" 
   . Click Confirm
   ==> Message says "Item '39999000006094' was checked out". There is also an
input box to enter another item barcode, and there may also be a list of
barcodes checked out and the due date.
7. Checkout an item to another patron using the staff interface.
   . Example: checked out 39999000011418 to Mary Burton
9. As the patron in step 2, use the self-checkout to try and checkout this
item:
   ==> Message says: "This item appears to be checked out to another patron,
please return it to the desk"
   . Has Submit and Close buttons
   . Click the Close button
10. Use the self-checkout to try and checkout an item on hold:
   . Place a hold for an item for another patron using the staff interface.
Example: Placed a record level hold for Programming the Perl DBI (biblionumber
= 13)
   ==> Message says: "This item appears to be reserved for another patron,
please return it to the desk"
   . Has Submit and Close buttons
   . Click the Close button
11. Use the self checkout to try and checkout an item on hold that is waiting
for pickup for a patron (I used koha):
   . Place a record-level hold for an item using the staff interface (used Perl
Better Practices, biblionumber = 19)
   . Check in an item for the record and confirm the hold (used
39999000008036), should show status as awaiting pickup
   . Use the self checkout to try and checkout this item to the patron the hold
was placed for (39999000008036 and patron koha in this instance)
   ==> Item should be successfully checked out with message "Item
'39999000008036' was checked out", with options to enter another barcode,
Submit and Close buttons
   ==> Click close and check your account > your summary: item checked out
should be listed
12. Repeat step 11, but use the self checkout to try and checkout an item that
is on hold and waiting for pickup by another patron (I used Mary Burton to
place the hold, and koha to check it out):
    ==> Message says: "Message code 'RESERVE_WAITING' with data '1' Message
code 'reswaitingdate' with data '2023-01-13'"
    . Has Confirm and Close buttons
    . Confirm button: 
      - checks out item to patron who didn't have the hold waiting (koha)
      - item shows (in the staff interface) as checked out to koha, and also
waiting for pickup (for Mary)
13. Try and checkout and item not for loan:
    . Update an item for a record so that is not for loan
    . Try and checkout using the self-checkout
    ==> message says: "This item is not normally for loan, please select
another or ask at the desk"
    . Has Submit and Close buttons
    ==> Item does not check out, as expected. 
14. Try and checkout an item recorded as Withdrawn:
    . Update an item for a record so that it is withdrawn
    . Try and checkout using the self-checkout
    ==> message says: "This item is marked withdrawn, please select another or
ask at the desk"
15. Add a manual charge for the koha patron then try and check out an item.
    . Add a manual invoice for the koha patron of $20.
    ==> message says: "Your account is currently in debt by '20'"
    ==> Does not checkout item.

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


More information about the Koha-bugs mailing list