Bug 15492

Summary: Stand alone self check-in tool
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: Self checkoutAssignee: Tomás Cohen Arazi <tomascohen>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: new feature    
Priority: P5 - low CC: mshafer, oleonard, tomascohen, veron
Version: master   
Hardware: All   
OS: All   
URL: http://devs.bywatersolutions.com/projects/self-check-module-stand-alone-check-in/
Whiteboard:
Change sponsored?: Sponsored Patch complexity: ---
Bot Control: --- When did the bot last check this:
Who signed the patch off: Text to go in the release notes:
Attachments: Bug 15492: Add the SelfCheckInModule syspref
Bug 15492: Add SCI module
Bug 15492: Add SCI module
Bug 15492: Add SCI module
Bug 15492: Add SCI module

Description Nicole C. Engard 2016-01-06 16:17:29 UTC
This would work very similarly to the current check-in module on the staff client, except that patron information won’t be displayed. Once all books are scanned in for check-in, a “Finish” button can be clicked in order to return to the main shelf-checkout screen to login with ID and checkout books as normal.

Work to be done:
1) Create new sco-checkin.pl script
2) Create new sco-checkin.tt template
3) Make sco-checkin.pl accept barcodes and mark items as returned
4) If item cannot be returned ( i.e. AddReturn returns 0 ) request that the item be taken to a library for returning.




Seeking Co-sponsors: http://devs.bywatersolutions.com/projects/self-check-module-stand-alone-check-in/
Comment 1 mshafer@ckls.org 2016-10-13 16:24:36 UTC
This development would be great for schools. With severe budget cuts, many school libraries are only staffed a few hours a week. So much of the library circulation is done with self-checkout. In elementary schools the checkout process is simple and easy to use. However, using the self checkout as it is now for CHECKINs it too complicated for grade schoolers. self checkin: Log Into SelfCheckout with patron number, scan card, select Return this Item; Renew this Item or Cancel. A stand alone checking would be just what this situation needs!
Comment 2 Tomás Cohen Arazi 2017-11-15 17:47:23 UTC
Created attachment 69165 [details] [review]
Bug 15492: Add the SelfCheckInModule syspref
Comment 3 Tomás Cohen Arazi 2017-11-15 17:47:30 UTC Comment hidden (obsolete)
Comment 4 Owen Leonard 2017-11-15 18:54:55 UTC
This is missing from sci-main.tt:

<script type="text/javascript">
    function _(s) { return s } // dummy function for gettext
</script>

(see sco-main.tt for comparison)
Comment 5 Tomás Cohen Arazi 2017-11-15 19:39:34 UTC Comment hidden (obsolete)
Comment 6 Tomás Cohen Arazi 2017-11-15 19:53:00 UTC Comment hidden (obsolete)
Comment 7 Tomás Cohen Arazi 2017-11-16 12:20:02 UTC
Created attachment 69179 [details] [review]
Bug 15492: Add SCI module

This patch adds the SCI module, and adapts C4::Auth to know about it.

The current behaviour is:
- Requires admin user initialization/login
- Uses the logged users' library
- A form allows to scan multiple barcodes
- A button sends the barcode list to the controller
  to batch perform the checkins
- Successful and failed checkins are sent to the template
- Results are displayed
- Logout link

To test:
- Apply this patches
- Make sure you upgrade:
  $ kshell
 k$ perl installer/data/mysql/updatedatabase.pl
- Have 'SelfCheckInModule' disabled
- Go to http://kohadev.myDNSname.org:8080/cgi-bin/koha/sci/sci-main.pl [1]
=> SUCCESS: You are rejected because the feature is disabled
- Enable 'SelfCheckInModule'
- Go to the previous URL
=> SUCCESS: You are required to login
- Login with a user WITHOUT self_checkout permissions
=> SUCCESS: You are not allowed to log into the Self check-in module.
- Login with a user WITH self_checkour permissions
=> SUCCESS: You gain access, and are presented the UI
- Go through the several options
=> SUCCESS: All works as it should
- Click the 'Help' link
=> SUCCESS: A help text is displayed on a modal
- Sign off :-D

- Bonus points:
  $ kshell
 k$ qa -c 2 -v 2
=> SUCCESS: All tests green

[1] Adjust to your dev's OPAC setup
Comment 8 Tomás Cohen Arazi 2017-11-16 12:21:45 UTC
(In reply to Owen Leonard from comment #4)
> This is missing from sci-main.tt:
> 
> <script type="text/javascript">
>     function _(s) { return s } // dummy function for gettext
> </script>
> 
> (see sco-main.tt for comparison)

I've re-introduced it, along with several other tiny fixes/changes, including the help modal.