UC Berkeley Online Schedule of Classes
home page   |  uc berkeley home page

Building Search Links into the
Online Schedule of Classes

Search Variables
Multiple Variable Searching
Department Name Searches
Term Variable
Value Searching
List of Variables
Examples of Query Strings



Search Variables

Use the search variables listed below to define your search by combining the variable name with an equal sign (=) and the value you want to search for.

Example: p_dept=biology

Multiple Variable Searching

For multiple variable searching, separate the variables with an ampersand (&).

Example: p_dept=biology&p_course=1a

Department Name Searches

When searching the department name, you must specify the department string exactly as it appears in the pull down list. For any string value that contains a space, the space should be converted to a plus sign (+).

Example: p_deptname=College+Writing+Program

You can also search by the department abbreviation.

Example: p_dept=colwrit

Term Variable

All Online Schedule of Classes searches MUST have the 'term' variable specified. The term can be SP for Spring, SU for Summer, or FL for Fall.

Example: p_term=FL

Value Searching

For multiple value searching, separate the values with a comma followed by a plus sign (,+).

Example: p_course=1a,+1b

List of Variables

For Online Schedule of Classes searches, you may specify any combination of the following variables:

term: REQUIRED FOR ALL SCHEDULE SEARCHES (values = SP, SU or FL)

p_deptname: Department Name
p_dept: Department Abbreviation
p_course: Course Number
p_title: Course Title Keyword
p_instr: Instructor Name
p_exam: Exam Group
p_ccn: Course Control Number
p_day: Day(s) of the Week
p_hour: Hour(s)
p_bldg: Building Name
p_units: Units
p_restr: Restrictions
p_info: Additional Information
p_updt: Update Information

Examples of Query Strings

All query strings must begin with: http://sis.berkeley.edu/OSOC/osoc?p_term=FL.

There must be a term, and it can be either FL, SP, or SU. There also must be at least one other variable. If any of these variables have spaces in them (like in the Course Title Keyword), the space must be replaced by a plus sign (+). Add extra variables with an ampersand (&). Separate multiple values with a comma followed by a plus sign (,+). Examples are as follows:

Fall Online Schedule of Classes search page
http://schedule.berkeley.edu/srchfall.html

All classes for a department in the Fall
http://sis.berkeley.edu/OSOC/osoc?p_term=FL
&p_deptname=College+Writing+Program

For a specific class in the Fall
http://sis.berkeley.edu/OSOC/osoc?p_term=FL
&p_dept=math&p_course=1a

For more than one class in the Fall
http://sis.berkeley.edu/OSOC/osoc?p_term=FL
&p_dept=math&p_course=1a,+1b



© 2005, The Regents of the University of California. All Rights Reserved.