JBAS-1665 Selfreg no-wrapper=>kiosk; inline docs WIP
authorBill Erickson <berickxx@gmail.com>
Thu, 12 Jan 2017 17:34:13 +0000 (12:34 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/openils/var/templates_kcls/opac/register.tt2
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Register.pm

index 2d0c06d..fbd94ca 100644 (file)
@@ -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 
       <a class='blue-link'
         href='https://w3.kcls.org/PDF/applications/ENG%20KCLS%20600%20Library%20Card%20Application.pdf'>
         downloadable application</a>.
+      [% END %] <!-- KIOSK -->
     </p>
 
     [% IF ctx.register.success %]
@@ -222,7 +228,7 @@ END; # input_field()
 
     <form method='POST' onsubmit="return onsub()">
       <input type="hidden" name="return-to"  value="[% return_to %]"/>
-      <input type="hidden" name="no-wrapper" value="[% no_wrapper %]"/>
+      <input type="hidden" name="kiosk" value="[% kiosk %]"/>
       <ul>
         <li>
           <label>Choose a card size....</label>
@@ -556,8 +562,47 @@ END; # input_field()
     </form>
     [% END # IF ctx.success %]
     </div><!-- main-content-left -->
-    [% UNLESS no_wrapper %]
     <div id='main-content-right'>
+    [% IF kiosk %]
+      <h3>Verification Requirements</h3>
+
+      <p>
+      1. Photo identification with birth date (one piece required for adults).
+      Acceptable examples are as follows and may be current or expired:
+      </p>
+      <ul>
+        <li>Driver’s License</li>
+        <li>Passport</li>
+        <li>Washington ID Card</li>
+        <li>U.S. Military ID</li>
+        <li>Matricula Consular (issued by Mexican government)</li>
+      </ul>
+      <br/>
+
+      <p>
+      2. Address verification matching qualifying residential address and given name
+      (one piece required for adults and minors).
+      Acceptable examples–chosen document must be current:
+      </p>
+
+      <ul>
+        <li>Washington Driver’s License</li>
+        <li>Washington ID Card</li>
+        <li>Printed Checks</li>
+        <li>Utility Bill (printout of online bill acceptable)</li>
+        <li>Apartment Lease</li>
+        <li>Voter’s Registration</li>
+        <li>King County Tax Bill</li>
+        <li>Other (Must be of a legal or permanent nature)</li>
+      </ul>
+
+      <p>
+      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.
+      </p>
+
+    [% ELSE %] <!-- KIOSK -->
       <h3>
         <a class="blue-link"
           href='http://kcls.bibliocms.com/faq/library-cards/'>Related FAQs</a>
@@ -646,8 +691,8 @@ END; # input_field()
           <a href='https://kcls.bibliocommons.com/info/privacy'>Privacy Policy</a>.
         </li>
       </ul>
-    </div>
     [% END %]
+    </div>
     <div class="grid-clear"></div>
   </div>
 </div>
index fcc4067..98b9172 100644 (file)
@@ -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;