]> git.koha-community.org Git - koha.git/commit
bug 10016: munge history in SCO to discourage resubmitting user login
authorGalen Charlton <gmc@esilibrary.com>
Sun, 20 Oct 2013 20:55:06 +0000 (20:55 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Nov 2013 13:58:36 +0000 (10:58 -0300)
commit0abefa6f760db048e2dce5eb8c6b20cc5a1ac4ab
treed406196e03a2f585d464a97eaea9033018022e31
parent52e0b599fd9497dcc228ee5e21a729b4ffdbafb3
bug 10016: munge history in SCO to discourage resubmitting user login

This patch uses history.replaceState (introduced in HTML5) to manipulate
the browser history to encourage returning to the SCO patron barcode
form if the back button is used.

Note that a side effect of this patch is that if the user uses
the help link, they will be prompted to enter their barcode
again.  It may be better to put the help inline with the rest
of the SCO forms.

To test:

[1] Start a web-based self-check session.
[2] Enter a patron barcode.
[3] Allow the self-check session to time out.
[4] Use the back button.  You should get the patron barcode
    entry form; you should not be prompted to resubmit form input.
[5] Enter a patron barcode, perform some transactions, then
    use the finish button.
[6] Next, use the back button.  You should get the patron barcode
    entry form.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ed Veal <ed.veal@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 58d469ed4d6891cddf6a5ef35d21caa553dfb8ae)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Deleted the sco-main.tt file for the bootstrap theme from the patch.
koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt