LP1951642 Self-registration DOB autopopulating date
authorGarry Collum <gcollum@gmail.com>
Tue, 28 Jun 2022 11:59:21 +0000 (11:59 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 29 Jun 2022 20:11:32 +0000 (16:11 -0400)
This removes the autopopulation of the dob date in the OPAC's
self-registration page. Note that the issue applies only to
the Bootstrap OPAC, not TPAC.

To test:

1. In library settings turn on "Allow Patron Self-Registration" and "Show dob
field in patron registration". "Require dob field on patron registration"
can also be turned on to test that option.

2. Go to the "Request Library Card" page of the opac and notice that the
dob field is populated with today's date.

3. Apply the patch.

4. Check the dob field again and notice that it is no longer autopopulated.

5. Create a few registrations with dob dates and with no dob dates to confirm
that the field works.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/templates-bootstrap/opac/register.tt2

index 73cc273..c6dbec3 100755 (executable)
@@ -262,6 +262,6 @@ $(document).ready(function(){
         autoclose: true,
         todayHighlight: true,
     });
-    $('.datepicker').datepicker("setDate", new Date());
+    $('.datepicker').datepicker("setDate", "");
 });
 </script>