From: Bill Erickson Date: Thu, 30 Mar 2017 18:41:34 +0000 (-0400) Subject: JBAS-1665 Self-reg kiosk mode additions (submit another, etc.) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=495d620707e4f3d4596900cb5bd2aefad3462ff0;p=working%2FEvergreen.git JBAS-1665 Self-reg kiosk mode additions (submit another, etc.) * Hide submit-another button in kiosk mode * Adds a black border around the verification requirements "wall of text" * Clicking on a card image now selects the image -- no longer necessary to click exactly on the radio input. Signed-off-by: Bill Erickson --- diff --git a/KCLS/openils/var/templates_kcls/opac/register.tt2 b/KCLS/openils/var/templates_kcls/opac/register.tt2 index 2b34da7cb3..7dd80b5dd0 100644 --- a/KCLS/openils/var/templates_kcls/opac/register.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/register.tt2 @@ -197,6 +197,10 @@ END; # input_field() text-decoration: none; font-weight: 600; } +#kiosk-verification-reqs { + padding: 8px; + border: 1px solid black; +} @@ -225,9 +229,11 @@ END; # input_field() [% IF ctx.register.success %]

[% l('Registration successful!') %]

+ [% IF !kiosk %]
+ [% END %]
[% IF kiosk %] @@ -243,6 +249,7 @@ END; # input_field() [% IF kiosk %]

Verification Requirements

+

1. Photo identification with birth date (one piece required for adults). Acceptable examples are as follows and may be current or expired: @@ -278,6 +285,7 @@ END; # input_field() You may get a library card today without address verification, but you will be limited to checking out 2 items. If you do not bring address verification, the card will expire after 90 days.

+
[% END %] [% ELSE %] @@ -309,7 +317,8 @@ END; # input_field()
[% FOR ctype IN wallet_cards %]
-
+
@@ -324,7 +333,8 @@ END; # input_field()
[% FOR ctype IN keychain_cards %]
-
+
diff --git a/Open-ILS/web/js/ui/default/opac/register.js b/Open-ILS/web/js/ui/default/opac/register.js index a7cdf1378c..99dbb15eee 100644 --- a/Open-ILS/web/js/ui/default/opac/register.js +++ b/Open-ILS/web/js/ui/default/opac/register.js @@ -38,6 +38,12 @@ function show_card_types(type) { document.getElementById('first-'+type+'-card').checked = 'checked'; } +function select_card(type) { + last_activity = new Date(); + console.log('selecting card: ' + type); + $("input[value='" + type + "']").prop('checked', true); +} + function check_juvenile(dobString) { var dobDate = Date.parse(dobString); var ageDate = new Date(); // minimum age for non-juvenile