From 2904dc5b0d1a9e1c1b1f2074a8279f423c6dde18 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 12 Jan 2017 12:34:13 -0500 Subject: [PATCH] JBAS-1665 Selfreg no-wrapper=>kiosk; inline docs WIP Signed-off-by: Bill Erickson --- KCLS/openils/var/templates_kcls/opac/register.tt2 | 59 +++++++++++++++++++--- .../lib/OpenILS/WWW/EGCatLoader/Register.pm | 4 +- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/KCLS/openils/var/templates_kcls/opac/register.tt2 b/KCLS/openils/var/templates_kcls/opac/register.tt2 index 2d0c06de57..fbd94ca621 100644 --- a/KCLS/openils/var/templates_kcls/opac/register.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/register.tt2 @@ -5,7 +5,7 @@ # for privacy, reload the page after (default) 5 minutes return_to = CGI.param('return-to'); -no_wrapper = CGI.param('no-wrapper'); +kiosk = CGI.param('kiosk'); refresh_time = ctx.register.settings.refresh_timeout || 300; complete_url = return_to || 'https://www.kcls.org' ctx.refresh = refresh_time _ '; ' _ complete_url; @@ -18,7 +18,7 @@ IF return_to; redo_url = redo_url _ '?return-to=' _ return_to; joiner = '&'; END; -SET redo_url = redo_url _ joiner _ 'no-wrapper=1' IF no_wrapper; +SET redo_url = redo_url _ joiner _ 'kiosk=1' IF kiosk; # some useful variables and MACROs for display, # field validation, and added info display @@ -133,6 +133,10 @@ END; # input_field() border: 0; } +#main-content-right li { + list-style-type: disc; +} + .grid { width: 95%; } .grid-cell { float: left; @@ -199,11 +203,13 @@ END; # input_field() To fully activate your card you will need to visit a KCLS library with proof of address and photo ID that shows your date of birth. Parents/guardians can assist with proof of address for full activation - for applicants under 18. Find a list of the documents you may use to - provide proof of address on our + for applicants under 18. + [% UNLESS kiosk %] + Find a list of the documents you may use to provide proof of address on our downloadable application. + [% END %]

[% IF ctx.register.success %] @@ -222,7 +228,7 @@ END; # input_field()
- +
  • @@ -556,8 +562,47 @@ END; # input_field()
  • [% END # IF ctx.success %] - [% UNLESS no_wrapper %]
    + [% 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: +

    +
      +
    • Driver’s License
    • +
    • Passport
    • +
    • Washington ID Card
    • +
    • U.S. Military ID
    • +
    • Matricula Consular (issued by Mexican government)
    • +
    +
    + +

    + 2. Address verification matching qualifying residential address and given name + (one piece required for adults and minors). + Acceptable examples–chosen document must be current: +

    + +
      +
    • Washington Driver’s License
    • +
    • Washington ID Card
    • +
    • Printed Checks
    • +
    • Utility Bill (printout of online bill acceptable)
    • +
    • Apartment Lease
    • +
    • Voter’s Registration
    • +
    • King County Tax Bill
    • +
    • Other (Must be of a legal or permanent nature)
    • +
    + +

    + If residence address differs from mailing address, the residence address determines patron eligibility. + 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. +

    + + [% ELSE %]

    Related FAQs @@ -646,8 +691,8 @@ END; # input_field() Privacy Policy.

- [% END %] +
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm index fcc4067bae..98b9172069 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm @@ -497,8 +497,8 @@ my $footer; sub collect_header_footer { my $self = shift; - # no-wrapper == no header/footer - return if $self->cgi->param('no-wrapper'); + # kiosk == no header/footer + return if $self->cgi->param('kiosk'); if ($header) { $self->ctx->{register_header} = $header; -- 2.11.0