Bookings Calendar Form
Command link: none
HTML document: bookings.html
This form controls the display of the Bookings Calendar in the WebPAC. Using this form, the patron specifies the items to book through the WebPAC. If this file exists, the WebPAC will use it rather than the default display. You can see an example of this form in the discussion for Self-booking in WebPAC.
This form uses the following tokens:
Token | Description |
---|---|
<!--{toplogo}--> | The system replaces this token with the <HTML> and <BODY> tags that begin an HTML page and displays the HTML defined in the TOPLOGO Web option. This must be the first line in the form. |
<!--{formbegin}--> | The system replaces this token with a formatted opening <form> tag. This token is required and must be placed in the custom form before any form-related tokens. |
<!--{record_info}--> | The system replaces this token with the brief record information for the item being booked. |
<!--{calendar_type}--> | The system replaces this token with the navigation tool that allows users to select between the hourly and daily booking calendars. |
<!--{calendar_legend}--> | The system replaces this token with the calendar legend. |
<!--{iferr}--> | If this token is present and an error is generated in the booking process, the system interprets tokens and markup between this token and its closing <--{xif}--> token. |
<!--{error_msg}--> | The system replaces this token with the system-generated error message. |
<!--{xif}--> | Closes the <!--{iferr}--> logic. |
<!--{iflocation}--> | If this token is present and the first element of the BOOKINGS Web option is set to "any" or "choose", the system interprets tokens and markup between this token and its closing <--{xif}--> token. |
<!--{location}--> | The system replaces this token with the drop-down menu containing the list of unique locations for all bookable items for that bibliographic record. |
<!--{xif}--> | Closes the <!--{iflocation}--> logic. |
<!--{ifrepeat}--> | If this token is present and the BOOKINGS_REPEAT Web option is set to "true", the system interprets tokens and markup between this token and its closing <!--{xif}--> token. |
<!--{repeat}--> | The system replaces this token with the repeat selection controls. |
<!--{duration}--> | The system replaces this token with the duration selection controls and inserts the Duration: Until label under the duration selection controls. |
<!--{xif}--> | Closes the <!--{ifrepeat}--> logic. |
<!--{timedayhour}--> | The system replaces this token with the navigation tool that allows users to select the starting date and time for the booking. If the booking is daily instead of hourly, any data entered in the time selection portion will be ignored when the booking is processed. If your organization does not allow hourly bookings, use the <!--{timeday}--> token instead of this token. The default Bookings Calendar Form uses this token. |
<!--{ifendtime}--> | If this token is present and the navigation tool allowing users to select the ending date or the navigation tool allowing users to select both the ending date and time is included on the display, the system interprets tokens and markup between this token and its closing <--{xif}--> token. |
<!--{endtimedayhour}--> | The system replaces this token with the navigation tool that allows users to select the ending date and time for the booking. If this token does not exist in this file, the system uses the loan period in the loan rule to determine the end date for the booking. If the booking is daily instead of hourly, any data entered in the time selection portion will be ignored when the booking is processed. If your organization does not allow hourly bookings, use the <!--{endtimeday}--> instead of this token. The default Bookings Calendar Form uses this token. |
<!--{timeday}--> | The system replaces this token with the navigation tool that allows users to choose only the starting date for the booking and does not allow users to choose a starting time. Use this token if your organization does not allow hourly bookings. |
<!--{endtimeday}--> | The system replaces this token with the navigation tool that allows users to choose only the ending date for the booking and does not allow users to choose an ending time. Use this token if your organization does not allow hourly bookings. |
<!--{xif}--> | Closes the <!--{ifendtime}--> logic. |
<!--{ifneednote}--> | If this token is present and the navigation tool allowing users to select the ending date or the navigation tool allowing users to select both the ending date and time is included on the display, the system interprets tokens and markup between this token and its closing <--{xif}--> token. |
<!--{note}--> | The system replaces this token with a form field for users to enter a note. |
<!--{xif}--> | Closes the <!--{ifneednote}--> logic. |
<!--{calendar}--> | The system replaces this token with the date selection navigation tool and the graphic calendar display. Users can toggle between the monthly and hourly availability views. |
<!--{submit}--> | The system replaces this token with the value of the ICON_SUBMIT Web option. |
<!--{cancel}--> | The system replaces this token with the value of the ICON_CANCEL Web option. Clicking this link returns the patron to the bibliographic display. |
<!--{formend}--> | The system replaces this token with a closing </form> 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. The system does not insert the </BODY> and </HTML> tags that finish an HTML page. |
You can create separate custom forms for each combination of language, scope, and patron type by using the following naming convention:
bookings_LANG_s#_p#.html
LANG | The language code (e.g., spi for Spanish, frc for French). |
s# | The number of the scope (e.g., s1, s2, s3). |
p# | The patron type or PTYPE (e.g., p0 or p243). |
For a current example of this form, see the appropriate example set in WebPAC Example Sets and Photoshop Files on CSDirect. Download the latest example set, then unzip the example in the file.