Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Jared Camins-Esakov 44d0ad451f Bug 10240: Offline circulation using HTML5 and IndexedDB
This patch adds an HTML5-based offline mode to Koha's existing
circulation module, allowing librarians to check out items using a
basically familiar interface. The feature will be implemented using
the Application Cache and IndexedDB features of the HTML5 specification,
both of which are fully supported on Firefox 10+ and Chrome 23+, with
limited support going back to Firefox 4 and Chrome 11. The basic
workflow enabled by this patch is as follows:

Part 1: While connected to the Internet
1. Enable offline functionality by turning on the
   "AllowOfflineCirculation" system preference.
2. Sync the offline circulation database on the computer that will be
   used for offline circulation by following the "Offline circulation
   interface" link on the Circulation home page, choosing "Synchronize (must be online)",
   and clicking the "Download records" button. This process may take a while.
3. Bookmark /cgi-bin/koha/circ/offline.pl (the page you are currently
   on) for easy access when offline.

Part 2: While disconnected from the Internet
4. Navigate to /cgi-bin/koha/circ/offline.pl using the bookmark you
   created while online.
5. Start checking books in by scanning the barcode of an item that has
   been returned into the box in the "Check in" tab.
6. Scan the barcodes of any additional items that have been returned.
7. Start checking out books to a patron by scanning the patron's barcode
   in the box in the "Check out" tab.
8. Set a due date (the "Remember for session" box will be checked by
   default, since circulation rules are not computed during offline
   transactions and therefore a due date must be specified by the
   librarian).
9. Scan an item barcode (if you did not set a due date, it will prompt
   you) to check the item out to the patron.
10. If a patron has a fine you can see the total amount (current to when
    the offline module was synced), and record a payment. Unlike when in
    online mode, there will be no breakdown of what item(s) fines are
    for, and you will only be able to record the payment amount and not
    associate it with a particular item.

Part 3: While connected to the Internet
11. Click the "Synchronize" link and choose "Upload transactions" to
    upload the transactions recorded during the offline circulation
    session.
12. Navigate to /cgi-bin/koha/offline_circ/list.pl (there will be a
    link from the Offline circulation page) and review the
    transactions, as described in the documentation for the Firefox
    Offline circulation plugin:
    http://wiki.koha-community.org/wiki/Offline_circulation_firefox_plugin

RM note: the IndexedDB jQuery plugin bundled with this patch is
copyright 2012 by Parashuram Narasimhan and other contributors and is
licensed under the MIT license.  The home page for the plugin is
http://nparashuram.com/jquery-indexeddb/.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Works very well, no koha-qa errors

Test with Firefox 24.0
1) did some checkouts pre sync
2) synchronize database (Download)
3) go offline
4) Proceed to checkin some items from patron
5) Proceed to checkout items to patrons, setting date
6) Proceed to checkout to expired patron, warning appears
7) go online
8) Upload records
9) go to review transacctions and proceed
10) verified on patrons that checkin/out are done

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-11 01:53:34 +00:00
..
preferences Bug 10240: Offline circulation using HTML5 and IndexedDB 2013-10-11 01:53:34 +00:00
searchengine/solr Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
admin-home.tt Bug 7440 - Remove NoZebra vestiges 2013-03-19 21:17:04 -04:00
aqbudget_user_search.tt Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
aqbudgetperiods.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
aqbudgets.tt Bug 10651 - (follow-up) add DataTables include to admin/aqbudgets.tt 2013-09-21 19:31:37 +00:00
aqcontract.tt Bug 2835 - Inconsistent use of colon at the end of sentences 2013-04-02 09:03:42 -04:00
aqplan.tt Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
auth_subfields_structure.tt Bug 10602: Set default value for authority fields via the framework 2013-10-10 23:25:47 +00:00
auth_tag_structure.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
authorised_values.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
authtypes.tt Bug 9623 - Replace YUI button on authority types administration page with Bootstrap 2013-02-18 08:07:13 -05:00
biblio_framework.tt Bug 9782: hide cancel button when importing MARC bibliographic frameworks 2013-08-28 15:42:30 +00:00
branch_transfer_limits.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
branches.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
categorie.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
checkmarc.tt Bug 10420 - Standardize spelling of "authorized" 2013-06-07 08:26:13 -07:00
cities.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
classsources.tt Bug 9631 - Replace YUI buttons on classification sources administration page with Bootstrap 2013-02-18 08:50:22 -05:00
clone-rules.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
currency.tt Bug 9632 - Replace YUI button on the currencies administration page with Bootstrap 2013-02-18 08:51:45 -05:00
didyoumean.tt Bug 8726: Followup FIX save didyoumean syspref 2012-09-28 17:14:17 +02:00
fieldmapping.tt Bug 6037 [Follow-up] Invalid markup, missing breadcrumbs on Keyword to MARC Mapping page 2012-10-08 17:11:12 +02:00
item_circulation_alerts.tt Bug 8942: Translation process breaks javascript 2013-01-31 11:00:24 -05:00
itemtypes.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
koha2marclinks.tt Bug 2780 - Capitalize strings consistently (Admin pages) 2012-04-10 10:03:21 +02:00
marc_subfields_structure.tt Bug 10010 - Use jQueryUI Accordion to display constraints in MARC subfield editor 2013-06-20 07:35:22 -07:00
marctagstructure.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
matching-rules.tt Bug 9640 - Replace YUI button on record matching rules page with Bootstrap 2013-02-18 09:04:46 -05:00
oai_set_mappings.tt Bug 9295: Introduce operator equal/ notequal to OAI set mapping instead of hardcoded 'equal' value. 2013-10-10 23:03:30 +00:00
oai_sets.tt Bug 9689 - Replace YUI buttons on the OAI sets administration page with Bootstrap 2013-03-07 10:16:36 -05:00
patron-attr-types.tt Bug 10420 - Standardize spelling of "authorized" 2013-06-07 08:26:13 -07:00
preferences.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
printers.tt Bug 9646 - Replace YUI button on the printers administration page with Bootstrap 2013-02-18 09:11:25 -05:00
roadtype.tt Bug 9643 - Replace YUI button on the road types administration page with Bootstrap 2013-02-18 09:07:33 -05:00
smart-rules.tt Bug 9818: Fixing capitalization and remove dollar sign 2013-04-25 21:53:40 -04:00
stopwords.tt Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
systempreferences.tt Bug 10651 - Use new DataTables include in administration templates 2013-09-21 19:31:16 +00:00
transport-cost-matrix.tt Bug 8935 - transport cost matrix could be prettier 2012-10-22 17:51:11 +02:00
z3950servers.tt Bug 10096 - Add a Z39.50 interface for authority searching 2013-10-04 14:26:29 +00:00