Academic Search widget

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:

Search fields of study

 
Help 

close

+searchterm
Forces your search results to include this term. Example: "+health services" would include the word health in all search results with services being supplemental.
-searchterm
Forces your search results to exclude this term. Example: "+health -services" would show only results without the word services and that had the word health.

To include the widget on your site, you will need to use SSI, have KU's "contained" version of JQuery turned on (it's on by default), and be on a central KU webserver such as www2.ku.edu. From there, it's a three-step process:

  1. Add these two lines in your header file:

    <!--#set var="pagecss5" value="/~http/ssi/2009/widgets/academicsearch/acadsearch.css" -->
    <!--#set var="pagejs5" value="/~http/ssi/2009/widgets/academicsearch/acadsearch.js" -->

  2. Place this code in the body of your page, wherever you want the widget to appear:

    <!--#include virtual="/~http/ssi/2009/widgets/academicsearch.shtml" -->

  3. Add any of the SSI settings below to customize the widget's appearance and functionality.

Note: this widget works really well with the Brochure Link widget, which is the method recommended by University Relations for displaying your search results. Type "prelaw" in the search above and click the result (or just click here) to see an example.

Settings

These settings must be placed on your page above the include statement. You will likely want to define all these in your header file.

as_title

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" -->

as_setkeywords

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" -->

as_getresults

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" -->

as_showform

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" -->

as_showschool

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" -->

as_setschool

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" -->

as_showundergrad

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" -->

as_setundergrad

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" -->

as_showminor

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" -->

as_setminor

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" -->

as_showcertificate

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" -->

as_setcertificate

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" -->

as_showmasters

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" -->

as_setmasters

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" -->

as_showdoctoral

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" -->

as_setdoctoral

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" -->

as_showhelp

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" -->

If you have any questions about this process, please feel free to contact webcomms@ku.edu.


The University of Kansas prohibits discrimination on the basis of race, color, ethnicity, religion, sex, national origin, age, ancestry, disability, status as a veteran, sexual orientation, marital status, parental status, gender identity, gender expression and genetic information in the University’s programs and activities. The following person has been designated to handle inquiries regarding the non-discrimination policies: Director of the Office of Institutional Opportunity and Access, IOA@ku.edu, 1246 W. Campus Road, Room 153A, Lawrence, KS, 66045, (785)864-6414, 711 TTY.