Add a Community Review Form
Command link: None
HTML document: patreview_add.html
This customized file controls the appearance of the popup window for entering a patron review. The system displays this window when a user clicks the ICON_PATREVIEW_ADD link. If this file exists, WebPAC Pro uses it rather than a default display.
For an example of this form display, see Adding, Viewing, or Deleting Community Reviews.
This form uses the following tokens:
Token | Description |
---|---|
<!--{toplogo}--> | The system replaces this token with the value of the TOPLOGO Web option. |
<!--{iferrmsg}--> | The system checks for an error condition. If there is an error, the system will display any content and interpret any tokens between this token and its closing <!--{xif}--> token. |
<!--{errmsg}--> | The system replaces this token with a system-generated error message. |
<!--{xif}--> | Ends the <!--{iferrmsg}--> logic. |
<!--{ifreviewed}--> | The system checks to see if the patron has already reviewed this material. If there is a review associated with the patron record, the system will display any HTML and interpret any tokens between this token and the <!--{else}--> token. If there is a review for this material associated with the patron record, the system will not display any content defined after the <!--{else}--> token. Your library should include some generic message on the form. For example: You have already reviewed this material. |
<!--{else}--> | If the patron has not already reviewed this material, use the rest of the display tokens on this page. |
<!--{formbegin}--> | The system replaces this token with the opening <form> HTML tag. |
<!--{headline}--> | The system replaces this token with the input box for the review headline. |
<!--{body}--> | The system replaces this token with the input box for the body of the review. |
<!--{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. |
<!--{formend}--> | The system replaces this token with the closing </form> HTML tag. |
<!--{xif}--> | Ends the <!--{ifreviewed}--> logic |
<!--{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:
patreview_add.html_LANG_s#_p#.html
LANG | The language code (spi for Spanish, frc for French, etc.). |
s# | The number of the scope (s1, s2, s3, etc.). |
p# | The patron type or PTYPE (p0 or p243, etc.). |
For a current example of this form, see the appropriate example set in WebPAC Example Sets and Photoshop Files on CSDirect.