[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
Thu Oct 6 00:10:36 CEST 2022


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

--- Comment #19 from David Nind <david at davidnind.com> ---
I tested again using KTD and updated message changes for the test plan. I also
added a test for when the patron account has outstanding charges.

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 (note: currently this appears to do nothing - stays on the
same screen - it does renew the item though (see your summary))
7. Checkout an item to another patron using the staff interface
   . Example: checked out 39999000011418 to Mary Burton
9. 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
   Message code 'issued_borrowernumber' with data '49'
   Message code 'issued_cardnumber' with data '23529000651225'
   Message code 'issued_firstname' with data 'Mary'
   Message code 'issued_surname' with data 'Burton'"
   . Click confirm (note that nothing appears to change, however: item is
returned, then checked out - no longer checked out to Mary)
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
    Message code 'resborrowernumber' with data '49'
    Message code 'resbranchcode' with data 'MPL'
    Message code 'rescardnumber' with data '23529000651225'
    Message code 'reserve_id' with data '1'
    Message code 'resfirstname' with data 'Mary'
    Message code 'resreservedate' with data '2022-10-05'
    Message code 'ressurname' with data 'Burton'"
   Has Confirm and Close buttons
   . Click confirm (checks item out to you, hold is still in place for the
other patron)
11. Use the self checkout to try and checkout an item on hold for your OPAC
patron:
   . 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. 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
      Message code 'item_notforloan' with data '1'"
    Has Submit and Close buttons
   ==> Item does not check out, as expected. 
13. 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"
14. 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: "Message code 'DEBT' with data '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