Skip to content
  • Tomas Cohen Arazi's avatar
    Bug 15492: Add SCI module · 9bf68c8c
    Tomas Cohen Arazi authored and joubu's avatar joubu committed
    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
    
    Signed-off-by: default avatarDavid Bourgault <david.bourgault@inlibro.com>
    
    Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
    
    Signed-off-by: default avatarJosef Moravec <josef.moravec@gmail.com>
    
    Signed-off-by: default avatarJonathan Druart <jonathan.druart@bugs.koha-community.org>
    9bf68c8c