Limit/Sort Display Form

Command link:     none
HTML document:  srchmod.html

This form controls the display of the limit/sort interface in the WebPAC. If this file exists, the system uses it rather than the system-generated default display. This form uses the following tokens:

Token Description
<!--{toplogo}--> Inserts the <html> and <body> tags that begin an HTML page and displays HTML defined in the TOPLOGO Web option. Inserts a link to the stylesheet defined in the STYLESHEET Web option. This must be the first line in the form.
<--{body}--> The system replaces this token with a specially-formatted <body> tag. If the FORM_FOCUS Web option is set to "true" or not defined, the <body> tag formatting directs the browser to place the cursor in the first field text box on the form.
<!--{prevpage}--> The system replaces this token with the value of the BUT_PREVSCRN Web option. Clicking this link returns to the previous display.
<!--{startover}--> Offers a Start Over button that points to the URL in the PSTARTOVER Web option. The button image is defined in the BUT_STARTOVER Web option.
<!--{logout}--> If the user is logged in to My Account, The system replaces this token with the value of the BUT_PLOGOUT Web option. If the user is not logged in to My Account, no button displays.
<!--{patron}--> If the user is logged in to My Account, this token is replaced with the value of the LOGGEDIN_MSG Web option. If the user is not logged in to My Account, no banner displays.
<!--{return}--> If the user is logged in to My Account, this token is replaced with the value of the BUT_RET2PREC Web option. If the user is not logged in to My Account, no button displays.
<!--{partner}--> This token is replaced with the value of the PARTNER Web option.
<!--{innreach}--> This token is replaced with the value of the INNREACH Web option.
<!--{limitsortform}--> This token is replaced with the system-generated values of the following tokens:

<!--{formbegin}-->
<!--{searchtypetext}-->
<!--{searchtypeindex}-->
<!--{searchterm}-->
<!--{entriesfoundnum}-->
<!--{entriesfoundtext}-->
<!--{pleaseselect}-->
<!--{[menu word]_label}-->
<!--{[menu word]_select}-->
<!--{sort}-->
<!--{iferr}-->
<!--{errmsg}-->
<!--{xif}-->
<!--{submit}-->
<!--{cancel}-->
<!--{formend}-->
Customizing Values

If you want to customize any of the values of these tokens, you must replace the <!--{limitsortform}--> with the appropriate tokens.

<!--{formbegin}--> The system replaces this token with a formatted opening <form> tag. If the <!--{limitsortform}--> token is not used, this token is required and must be placed in the custom form before any of the subsequent form-related tokens.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{searchtypetext}--> The system replaces this token with the "You searched " text label.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{searchtypeindex}--> The system replaces this token with the name of the searched index.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{searchterm}--> The system replaces this token with the search term.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{entriesfoundnum}--> The system replaces this token with the number of search entries found.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{entriesfoundtext}--> The system replaces this token with the "entries found" text label.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{pleaseselect}--> The system replaces this token with the "Please select criteria to limit by:" text label.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{[menu word]_label}--> The system replaces this token with the menu label entry. The [menu word] must match the all-caps name of a menu entry in the Limit dialog that appears when you limit a search in Sierra. For example:
<!--{YEAR_label}-->for YEAR of Publication
<!--{VOLUME_label}-->for VOLUME
<!--{MATERIAL_label}-->for MATERIAL type


Note that menu entries may differ on your system. Contact the Help Desk if you require assistance in determining your menu entries.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
Grouped Menu Entries

Grouped menu entries, such as Words in the TITLE, Words in the AUTHOR, and Words in the SUBJECT receive special treatment from the WebPAC. When defining the <!--{[menu word]_label}--> token, use only the first listed menu entry in the Limit dialog that appears when you limit a search in Sierra. The WebPAC automatically populates the drop-down list with the subsequent Words in the... entries.

For example, if your system offers:

Words in the TITLE
Words in the SUBJECT
Words in the AUTHOR

Define the token as <!--{TITLE_label}-->. The WebPAC displays all Words in the... entries listed after the Words in the TITLE entry.

<!--{[menu word]_select}--> The system replaces this token with the appropriate form selection element matching the [menu word]. The [menu word] must match the all-caps name of a menu entry in the Limit dialog that appears when you limit a search in Sierra. For example:
<!--{YEAR_select}-->for YEAR of Publication
<!--{VOLUME_select}-->for VOLUME
<!--{MATERIAL_select}-->for MATERIAL type


Note that menu entries may differ on your system. Contact the Help Desk if you require assistance in determining your menu entries.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
Grouped Menu Entries

This token treats grouped menu entries the same as the <!--{[menu word]_label}--> token. When you are defining the <!--{[menu word]_select}--> token, the [menu word] portion should match the <!--{[menu word]_label}--> token (e.g., TITLE_label}-->). The WebPAC correctly matches the form element with the selected Words in the... entry from the drop-down list defined in the <!--{[menu word]_label}--> token.

<!--{sort}--> The system replaces this token with the sorting drop-down list. The Browse list: maximum number of entries that can be sorted by year option in Admin Corner must be set to a value other than 0 or 1 for the system to show the sorting drop-down list.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<--{currentscope}--> The system replaces this token with a label displaying the current scope name.
<--{resetscope}--> The system replaces this token with a dropdown list of scopes with the current scope selected. Users can change scope by selecting a different scope from the dropdown list.
<--{resetscope:[#]}--> The system replaces this token with an image based on the value of the ICON_RESETSCOPE[#] Web option, where [#] is the number assigned to the scope.
<!--{iferr}--> If the limit/sorting process results in an error, display any text between this token and the closing <!--{xif}--> token.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{errmsg}--> If the limit/sorting process results in an error, this token is replaced with the error message (if any).
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{xif}--> Closes the <!--{iferr}--> block.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{submit}--> The system replaces this token with the value of the ICON_SUBMIT Web option.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{cancel}--> The system replaces this token with the value of the ICON_CANCEL Web option. Clicking this link takes the user to the previous display.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{clearform}--> The system replaces this token with the value of the ICON_CLEAR_FORM Web option.
<!--{formend}--> The system replaces this token with a closing </form> tag. If the <!--{limitsortform}--> token is not used, this token is required and must be placed in the custom form after all of the previously-noted form-related tokens.
Do not use this token in conjunction with the <!--{limitsortform}--> token.
<!--{botlogo}--> The system replaces this token with the value of the BOTLOGO Web option. This token 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:

srchmod_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.