The KU Academic Search widget adds a highly configurable academic search box and results container to any KU webpage. This search widget is identical to the main academic search page (in fact, the main search was built using this widget), but can also be customized using CSS and predefined SSI settings to fit the look and feel of your site. The content is maintained by the Office of University Relations and should always be up-to-date.
Here's a basic example of the widget, with no additional SSI settings and only some minimal CSS added:
These settings must be placed on your page above the include statement. You will likely want to define all these in your header file.
Adds a title of your choosing, wrapped in an <h2> tag, above your search box. Using the word "off" as your value disables it completely.
Default Value: Search fields of study
Example
<!--#set var="as_title" value="Search Engineering" -->
Prepopulates the search field with any keywords you choose. This may be useful when used in conjunction with the as_getresults and as_showform settings below.
Default Value: none
Example
<!--#set var="as_setkeywords" value="special+education" -->
If the value is set to 1, the page will automatically execute the search on page load. This may be useful when used in conjunction with the as_setkeywords setting above.
Default Value: 0
Example
<!--#set var="as_getresults" value="1" -->
If the value is set to 0, the search form will not be shown on the page. This may be useful when used in conjunction with the as_getresults setting above.
Default Value: 1
Example
<!--#set var="as_showform" value="0" -->
If the value is set to 0, the school-selection dropdown menu will not be shown in the search form. If the as_setschool setting below is set, the search will only return that school's results, even if the school dropdown is hidden.
Default Value: 1
Example
<!--#set var="as_showschool" value="0" -->
Prepopulates the school-selection dropdown menu. The value of this setting must correspond with the HTML value of the item in the dropdown menu. If set, the search will only return that school's results, even if the school dropdown is hidden via the as_showschool setting above.
Possible Values:
- Any
- School of Allied Health
- School of Architecture, Design & Planning
- School of Business
- College of Liberal Arts & Sciences
- School of Education
- School of Engineering
- School of Journalism and Mass Communications
- School of Law
- School of Medicine
- School of Music
- School of Nursing
- School of Pharmacy
- School of the Arts
- School of Social Welfare
Default Value: none
Example
<!--#set var="as_setschool" value="School of Engineering" -->
If the value is set to 0, the "Undergrad" checkbox is not shown in the search form. However, Undergrad results will still be shown unless the as_setundergrad setting below is also set to "off".
Default Value: 1
Example
<!--#set var="as_showundergrad" value="0" -->
If the value is set to "off", the search will not display Undergrad search results. This setting only works if the as_showundergrad setting above is also set to 0.
Default Value: on
Example
<!--#set var="as_setundergrad" value="off" -->
If the value is set to 0, the "Minor" checkbox is not shown in the search form. However, Minor results will still be shown unless the as_setminor setting below is also set to "off".
Default Value: 1
Example
<!--#set var="as_showminor" value="0" -->
If the value is set to "off", the search will not display Minor search results. This setting only works if the as_showminor setting above is also set to 0.
Default Value: on
Example
<!--#set var="as_setminor" value="off" -->
If the value is set to 0, the "Certificate" checkbox is not shown in the search form. However, Certificate results will still be shown unless the as_setcertificate setting below is also set to "off".
Default Value: 1
Example
<!--#set var="as_showcertificate" value="0" -->
If the value is set to "off", the search will not display Certificate search results. This setting only works if the as_showcertificate setting above is also set to 0.
Default Value: on
Example
<!--#set var="as_setcertificate" value="off" -->
If the value is set to 0, the "Master's" checkbox is not shown in the search form. However, Master's results will still be shown unless the as_setmasters setting below is also set to "off".
Default Value: 1
Example
<!--#set var="as_showmasters" value="0" -->
If the value is set to "off", the search will not display Master's search results. This setting only works if the as_showmasters setting above is also set to 0.
Default Value: on
Example
<!--#set var="as_setmasters" value="off" -->
If the value is set to 0, the "Doctoral" checkbox is not shown in the search form. However, Doctoral results will still be shown unless the as_setdoctoral setting below is also set to "off".
Default Value: 1
Example
<!--#set var="as_showdoctoral" value="0" -->
If the value is set to "off", the search will not display Doctoral search results. This setting only works if the as_showdoctoral setting above is also set to 0.
Default Value: on
Example
<!--#set var="as_setdoctoral" value="off" -->
If the value is set to 0, the "Help" link is not shown in the search form.
Default Value: 1
Example
<!--#set var="as_showhelp" value="0" -->