Program Registration Form

Command link:     None
HTML document:  program_register.html

This form controls the appearance of the program registration page. If this form exists, the system uses this form rather than the default display. The valid tokens for this custom form are:

Token Function
<!--{startover}--> This token is replaced by the value defined by the BUT_PSTARTOVER Web option. This value serves as the link defined in the PSTARTOVER Web option.
<!--{patronrecord}--> This token is replaced by the value defined by the BUT_PLOGOUT Web option. Clicking this link takes the user to the user's patron record.
<!--{logout}--> This token is replaced by the value defined by the BUT_LOGOUT Web option. Clicking this link takes the user to the mainmenu.html page.
<!--{return}--> The system replaces this token with the value of the ICON_RET2PROG Web option. Clicking this link takes users back to the page from which they accessed the registration page.
<!--{patronname}--> This token is replaced by the value in the PATRN NAME variable-length field in the patron record.
<!--{formbegin}--> The system replaces this token with the opening <form> HTML tag. This token must be placed in the custom form before all form-related tokens.
<!--{iferrmsg}--> The system checks for error conditions. If one exists, the system uses any tokens and displays any HTML text specified between this token and its closing <!--{xif}--> token.
<!--{errmsg}--> The system replaces this token with any system-generated error messages.
<!--{ifregistrationerror}--> The system checks for an error condition. If there is an error, but it is not a system error (e.g., the patron is blocked or not eligible, or the section is not open for registration, etc.), the system uses any tokens and displays any HTML text between this token and the next <!--{xif}--> token. You can add an <!--{errmsg}--> token to display a system-generated error message after this token.
<!--{xif}--> Closes the <!--{ifregistrationerror}--> block.
<!--{ifblocked}--> The system checks whether there are any blocks in place to prevent the patron from registering for this program. If there are any blocks, the system uses any tokens and displays any HTML text specified between this token and its closing <!--{else}--> token. You can add an <!--{errmsg}--> token to display a system-generated error message after this token.
<!--{xif}--> Closes the <!--{ifblocked}--> block.
<!--{ifnoteligible}--> If the user is not eligible for this program, the system uses any tokens and displays any HTML text between this token and the next <!--{xif}--> token. You can add an <!--{errmsg}--> token to display a system-generated error message after this token.
<!--{xif}--> Closes the <!--{ifnoteligible}--> block.
<!--{ifrecordnotavail}--> This token is not valid for Sierra.
<!--{xif}--> Closes the <!--{ifrecordnotavail}--> block.
<!--{ifnotopen}--> If the section is no longer available for registration (e.g., registration is closed, the section is full, the section or program has been cancelled, etc.), the system uses any tokens and displays any HTML text between this token and the next <!--{xif}--> token. You can add an <!--{errmsg}--> token to display a system-generated error message after this token.
<!--{xif}--> Closes the <!--{ifnotopen}--> block.
<!--{ifsystemerror}--> The system checks for an error condition. If there is a system error, the system uses any tokens and displays any HTML text between this token and the next <!--{xif}--> token. You can add an <!--{errmsg}--> token to display a system-generated error message after this token.
<!--{xif}--> Closes the <!--{ifsystemerror}--> block.
<!--{xif}--> Closes the <!--{iferrmsg}--> block.
<!--{progname}--> The system replaces this token with the name of the program.
<!--{progdesc}--> The system replaces this optional token with the program description.
<!--{instructor}--> The system replaces this optional token with the name of the instructor.
<!--{iffee}--> The system checks to see if there is a fee associated with registering for the program. If so, the system will display the content and tokens between this token and its closing <!--{xif}--> token.
<!--{price}--> The system replaces this optional token with the price to register.
<!--{xif}--> Closes the <!--{iffee}--> block.
<!--{sessionsummary}--> The system replaces this token with the contents of the Session Summary variable-length field, which contains the series of session days and times as well as any manually added session summary information.
<!--{viewhidesessionlist}--> The system replaces this token with the day and time of the next session as well as a view additional sessions link. Clicking the view additional sessions link enables users to access detailed information for all sessions associated with the section.
<!--{location}--> The system replaces this token with the location for the section.
<!--{publicnote}--> The system replaces this token with the public notes for the program and for the section. The system displays only the first note from each record.
<!--{progthumbnail}--> The system replaces this token with HTML which displays the image specified by the URL in the THUMB URL field of the program record. Clicking on this image displays the full-sized image specified by the URL in the IMAGE URL field of the program record.
<!--{emailinrecord}--> The system replaces this token with the contents of the Email Address variable-length field in the user's patron record. (The variable-length field is determined by the setting in the fourth field of the Notices: E-mail notice information circulation option.)
<!--{newemail}--> The system replaces this token with a text box in which the user can enter a new email address. If the patron enters a valid email address, this new address is automatically inserted into the Email Address variable-length field in the patron record. Note that if an email address already exists in the Email Address field in the patron record, the address entered in this text box automatically overwrites the existing email address.
<!--{multiregselect}--> If your site supports multiple registrations (enabled via the REGPERPAT field), use this token along with the <!--{multiregnotes}--> token. The system replaces the <!--{multiregselect}--> token with a drop-down list with which patrons can choose the number of seats to register for (or to be put on the waitlist). The drop-down list displays numbers up to the maximum possible seats, which takes into account the following:
  • the number of multiple registrations allowed as specified in the REGPERPAT fixed-length field of the program record
  • how the multiple-registration maximum is allocated
  • the number in the Max Programs element of the Patron Blocks table for the patron's PTYPE
  • the number of current registrations and waitlists in the patron record
  • the maximum seats specified in the MAX SEATS and MAX WAITLIST fixed-length fields of the section record, as well as the number of current registrations in the section record
<!--{multiregnotes}--> If your site supports multiple registrations (enabled via the REGPERPAT field), use this token along with the <!--{multiregselect}--> token. The system replaces the <!--{multiregnotes}--> token with the number of text fields equal to the number of seats specified by the patron in the drop-down list that replaces the <!--{multiregselect}--> token. Patrons can enter a note (e.g., the registrants' names) for each seat. The text input can take a maximum of 100 characters and does not accept HTML formatting.
<!--{confirm}--> The system replaces this token with the value of the ICON_CONTINUE Web option.
<!--{cancel}--> The system replaces this token with the value of the ICON_CANCEL Web option.
<!--{formend}--> The system replaces this token with the closing </form> HTML tag. This token must be placed in the custom form after all form-related tokens.
<!--{botlogo}--> The system replaces this token with the value of the BOTLOGO Web option.


You can create separate custom forms for each combination of language, scope, and patron type by using the following naming convention:

program_register_LANG_s#.html
LANGThe language code (spi for Spanish, frc for Canadian French, etc.).
s#The number of the scope (s1, s2, s3, etc.).


After you make any changes to this page, you must use the refresh function to display the changes.

For a current example of this form, see the appropriate example set in WebPAC Example Sets and Photoshop Files on CSDirect.
See also:
Customizing the Program Registration Form Display
Refreshing Web Applications