The release of Aeon 5.2 included several new and updated web page files to support a new, significantly more accessible date picker calendar tool used for the Date fields in the Aeon web pages:
Updating Custom Date Fields on Web Forms to Use the New Calendar Tool
If you had previously implemented a custom Date field on your web forms using the Aeon 5.1 version of the date picker calendar tool, updating this field to use the new calendar tool will require performing several manual updates to your Aeon web pages following the steps below:
- Step 1: Perform Required Aeon 5.2 Web Page File Updates: Several new Aeon 5.2 web page files must first be added to your web directory and several existing web page files updated with the new version of those files available in the Aeon 5.2.11 (or later) default web pages package
- Step 2: Update Scripting on User Forms (If Necessary): If the field is located on a user web form such as ChangeUserInformation.html, two <script> tags must be added to the code for the web form on which the custom Date field has been configured
- Step 3: Update the Code Used for the Custom Date Field on Web Forms: Finally, the code used to implement the custom Date field on the web form must be updated with several required changes
Configuring Web Page Changes Across All Aeon Web Directories
To ensure that the web page changes described in this article are configured consistently across the Aeon web interface, the web page configuration steps below should be performed in each of the web directories configured on your Aeon server. Note that the names used below to refer to each directory may differ from the names used for those directories on your Aeon server based on your institution's specific web configuration:
- The Aeon/AeonAuth web directory containing the live, production web page files accessed by users authenticated through basic Aeon authentication
- The Aeon_TestWeb/AeonAuth_TestWeb web directory containing the TestWeb files used to test the web pages accessed by basic Aeon authentication users
- If remote authentication has been configured for Aeon, ensure that the web directories configured for these users are updated with the new files:
- The RemoteAuth web directory containing the live, production web page files accessed by users authenticated through remote authentication
- The RemoteAuth_TestWeb web directory containing the TestWeb files used to test the web pages accessed by remote authentication users
Step 1: Perform Required Aeon 5.2 Web Page File Updates
Implementing the new accessible calendar tool will require adding several new Aeon 5.2 web page files to your web directory and modifying existing files according to the instructions below.
Minimum Server Requirement
As the instructions in this article require the updated version of datepicker.min.js included with the Aeon 5.2.11 default web pages release, you must be on Aeon Server v5.2.4 or later to implement the web page changes listed below.
New Files to Add | Files to Overwrite | Files to Overwrite or Modify
New Files to Add
The following files are new in Aeon 5.2 and should be added to your web directory. Please download the Aeon 5.2.11 (or later) default web pages and add the following new files:
- CSS folder:
-
css\images\fa-calendar.svg
Note: This file should be added to the images subfolder inside the CSS folder - css\datepicker.min.css
-
- JS folder:
- Copy over the entire 'lang' subfolder containing:
- js\lang\en-US.js
- js\datepicker.min.js
- Copy over the entire 'lang' subfolder containing:
Files to Overwrite
The following files have been updated and should be overwritten to ensure the latest Aeon 5.2 version of each file is used. Please download the Aeon 5.2.11 (or later) default web pages and overwrite these files with the updated files:
- CSS folder:
- css\cookieconsent.min.css
- JS folder:
- js\atlasCookieConsent.js
- js\cookieconsent.min.js
Files to Overwrite or Modify
It is strongly recommended to also overwrite the following web page files with the new updated files released for Aeon 5.2. However, if any of these files have been extensively modified for your institution, then the required code changes for each file can be made manually to your existing files following the instructions in the expandable section below:
- include_head.html
- include_head_request.html
- CSS folder:
- css\aeon.css
css\aeon.css
Change this (default lines 321-330):
|
To this:
|
Then add this code to the end of the aeon.css file if not already present:
|
Then add this code to the end of the aeon.css file:
|
include_head_request.html
Add this code to the end of the file:
|
include_head.html
Change this (default lines 7-12):
|
To this:
|
Step 2: Update Scripting on User Forms (If Necessary)
If the custom Date field is to be used on a user web form (NewUserRegistration.html, NewAuthRegistration.html, ChangeUserInformation.html, or ExpiredUsers.html), then two <script> tags will first need to be added to those pages inside the <head> tags used at the top of the following in the following order:
<script type="text/javascript" src="js/lang/en-US.js"></script>
<script type="text/javascript" src="js/datepicker.min.js"></script>
Example (ChangeUserInformation.html):
This example shows how to implement the new <script> tags on ChangeUserInformation.html. Note that the <script> tags must be placed within the <head> and </head> tags at the top of the form:
<head>
<title>Aeon - Change User Information</title>
<#INCLUDE filename="include_head.html">
<script type="text/javascript" src="js/lang/en-US.js"></script>
<script type="text/javascript" src="js/datepicker.min.js"></script>
</head>
Step 3: Update the Code Used for the Custom Date Field on Web Forms
After the new Aeon 5.2.11 (or later) web page files have been added to your web directory following the steps above, you can now update the code used to implement the custom date field on your web forms to use the new calendar tool. Please adjust the code for the field on your web form according to the changes noted below, ensuring that you replace [ShortName] in the example code with the short name defined for your custom Date field in the Aeon Customization Manager:
Note: This code requires the updated version of the datepicker.min.js file first released in the Aeon 5.2.11 default web pages. Please ensure that your web directory has been updated with the most recent version of this file before implementing the code changes below.
Change this:
|
To this:
|