CINXE.COM
UCSF Course Catalog
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>UCSF Course Catalog</title> <link href="/css/base.css?v=3" media="screen, projector, print" rel="stylesheet" type="text/css"/> <link href="/css/styles.css?v=3" media="screen, projector, print" rel="stylesheet" type="text/css"/> <link href="/css/print.css" media="print" rel="stylesheet" type="text/css"/> <script src="/js/vendor/custom.modernizr.js"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-71GBH8NMFM"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-71GBH8NMFM'); </script> </head> <body> <div id="ucsf-banner-nav" class="no-logo"> <div class="top-header-container row"> <ul class="menu"> <li class="first"><a href="http://www.ucsf.edu">University of California San Francisco</a></li> <li><a href="http://www.ucsfhealth.org/">UCSF Medical Center</a></li> <li><a href="http://www.ucsf.edu/search" title="">Search UCSF</a></li> <li><a href="http://www.ucsf.edu/about">About UCSF</a></li> </ul> </div> </div> <div class="row"> <div class="large-12 columns"> <h1 class="page-name-office noprint"><a href='http://registrar.ucsf.edu'><img src="/images/UCSF_Sublogo_Registrar_SAA_navy_RGB.png" width="237"></a></h1> <hr> <h1 class="page-name"><span class="noprint"><a href='/'>Course Catalog</a></span><small></small></h1> </div> </div> <div class="row"> <div class="large-10 large-centered columns"> <p class="header-info">Courses are listed numerically under alphabetically arranged subject (=field of study) headings. As these headings do not correspond to an academic department or graduate program in every case, the responsible unit is indicated in the full course details. Inquiries about individual courses should be addressed to the responsible department or instructional unit listed. <a href="/moreinformation">More information</a></p> </div> </div> <div class="row" id="form-container"> <div class="large-11 large-centered columns"> <form method="POST" action="https://coursecatalog.ucsf.edu/search" accept-charset="UTF-8" id="searchform"><input name="_token" type="hidden" value="sFq1APmAOEAwz51b2g7fWSlRS1DGq17e8VuiHOsc"> <div class="row noprint"> <div class="small-8 columns"> <input type="text" class="right inline" id="search" name="search" value=''> </div> <div class="small-4 columns"> <button type="submit" class="left inline small" style="margin-right: 20px;" id="searchButton" value=''>Search</button><button type="submit" class="left inline small" id="clearSearchButton">Clear</button> </div> </div> <div class="row noprint"> <div class="small-12 columns"> <label style="display:inline;" id="advanced_expand" class="collapsed">Advanced criteria</label> </div> </div> <div style="display:none;" id="advanced_contents" class="noprint"> <div class="row"> <div class="small-11 columns small-centered small-offset-1"> <div class="alsosearch"><label class="inline">Also search on:</label></div> <div class="alsosearch"> <input id="include_course_description" name="include_course_description" type="checkbox" value="1"> <label for="include_course_description">Course description</label> </div> <div class="alsosearch"> <input id="include_prerequisite" name="include_prerequisite" type="checkbox" value="1"> <label for="include_prerequisite">Prerequisites</label> </div> <div class="alsosearch"> <input id="include_restrictions" name="include_restrictions" type="checkbox" value="1"> <label for="include_restrictions">Restrictions</label> </div> </div> </div> <hr style="margin:8px;"> <div class="row"> <div class="small-12 columns"> <div style="float:left; margin-right: 10px;"> <div class="row"> <div class="small-12 columns" style="margin-left: 8px;"> <div class="inline-select-label"><label for="department_filter">Department</label></div> <div class="inline-select"><select name="department_filer" id="department_filter"> <option selected="selected" value=""> - all departments - </option> <optgroup label="School of Dentistry"> <option value="1">Cell And Tissue Biology</option> <option value="2">Oral And Maxillofacial Surgery</option> <option value="3">Orofacial Sciences</option> <option value="4">Preventive And Restorative Dental Sciences</option> </optgroup> <optgroup label="School of Global Health"> <option value="41">Global Health Sciences</option> </optgroup> <optgroup label="Graduate Division"> <option value="43">Biochemistry And Molecular Biology Program</option> <option value="44">Bioengineering Program</option> <option value="45">Biological And Medical Informatics Program</option> <option value="61">Biomedical Imaging Program</option> <option value="66">Biomedical Research Program</option> <option value="46">Biomedical Sciences Program</option> <option value="47">Biophysics Program</option> <option value="48">Cell Biology Program</option> <option value="49">Chemistry And Chemical Biology Program</option> <option value="50">Clinical Research Program</option> <option value="100">Computational Precision Health Program</option> <option value="62">Dental Hygiene Program</option> <option value="64">Dentistry Post-Baccalaureate</option> <option value="51">Developmental And Stem Cell Biology Program</option> <option value="52">Epidemiology And Translational Sciences Program</option> <option value="98">Equity in Brain Health Program</option> <option value="96">Genetic Counseling Program</option> <option value="53">Genetics Program</option> <option value="94">Graduate Studies</option> <option value="99">Health Data Science Program</option> <option value="92">Health Policy and Law Program</option> <option value="67">Healthcare Administration Program</option> <option value="55">History Of Health Sciences Program</option> <option value="56">Medical Anthropology Program</option> <option value="63">Medicine Post-Baccalaureate</option> <option value="57">Neuroscience Program</option> <option value="58">Oral And Craniofacial Sciences MS Program</option> <option value="95">Oral and Craniofacial Sciences PhD Program</option> <option value="59">Pharmaceutical Science And Pharmacogenomics Prog</option> <option value="65">Pharmacy Post-Baccalaureate</option> <option value="60">Physical Therapy Program</option> <option value="91">Rehabilitation Science Program</option> <option value="93">Translational Medicine Program</option> </optgroup> <optgroup label="School of Medicine"> <option value="5">Anatomy</option> <option value="6">Anesthesia And Perioperative Care</option> <option value="8">Biochemistry And Biophysics</option> <option value="9">Bioengineering And Therapeutic Sciences</option> <option value="10">Cellular And Molecular Pharmacology</option> <option value="11">Dermatology</option> <option value="12">Emergency Medicine</option> <option value="13">Epidemiology And Biostatistics</option> <option value="15">Family And Community Medicine</option> <option value="7">Humanities and Social Sciences</option> <option value="16">Laboratory Medicine</option> <option value="17">Medicine</option> <option value="18">Microbiology And Immunology</option> <option value="19">Neurological Surgery</option> <option value="20">Neurology</option> <option value="21">Obstetrics, Gynecology And Reproductive Science</option> <option value="22">Ophthalmology</option> <option value="23">Orthopaedic Surgery</option> <option value="24">Otolaryngology - Head And Neck Surgery</option> <option value="25">Pathology</option> <option value="26">Pediatrics</option> <option value="27">Physical Therapy And Rehabilitation Science</option> <option value="28">Physiology</option> <option value="29">Psychiatry</option> <option value="30">Radiation Oncology</option> <option value="31">Radiology And Biomedical Imaging</option> <option value="32">Surgery</option> <option value="33">Urology</option> </optgroup> <optgroup label="School of Nursing"> <option value="34">Community Health Care Systems</option> <option value="35">Family Health Care Nursing</option> <option value="36">Physiological Nursing</option> <option value="37">Social And Behavioral Sciences</option> </optgroup> <optgroup label="School of Pharmacy"> <option value="38">Bioengineering And Therapeutic Sciences</option> <option value="39">Clinical Pharmacy</option> <option value="40">Pharmaceutical Chemistry</option> </optgroup> </select></div> </div> </div> <div class="row"> <div class="small-12 columns" style="margin-left: 8px;"> <div class="inline-select-label"><label for="subject_filter">Subject</label></div> <div class="inline-select"><select id="subject_filter" name="subject_filter"><option value="" selected="selected"> - all subjects - </option><option value="145">AI Comp Drug Disc & Dev</option><option value="1">Anatomy</option><option value="2">Anesthesia & Perioperative Care</option><option value="3">Anthropology</option><option value="4">Biochemistry</option><option value="5">Bioengineering</option><option value="6">Biological & Medical Informatics</option><option value="74">Biomedical Imaging</option><option value="7">Biomedical Sciences</option><option value="8">Biopharmaceutical Sciences</option><option value="9">Biophysics</option><option value="10">Biostatistics</option><option value="11">Cell Biology</option><option value="12">Chemistry</option><option value="13">Clinical Pharmacy</option><option value="14">Comprehensive Dental Care</option><option value="143">Computational Precision Health</option><option value="15">Craniofacial Anomalies</option><option value="140">Data Science</option><option value="16">Dental Health Education</option><option value="17">Dental Hygiene</option><option value="18">Dental Public Health</option><option value="19">Dental Sciences</option><option value="20">Dermatology</option><option value="72">Developmental & Stem Cell Biology</option><option value="70">Emergency Medicine</option><option value="21">Endocrinology</option><option value="22">Endodontics</option><option value="23">Epidemiology</option><option value="92">Epidemiology Interdepartmental Health</option><option value="142">Equity in Brain Health</option><option value="24">Family & Community Medicine</option><option value="141">Genetic Counseling</option><option value="25">Genetics</option><option value="71">Global Health Sciences</option><option value="137">Graduate Studies</option><option value="73">Healthcare Administration</option><option value="26">History of Health Sciences</option><option value="138">Implementation Science</option><option value="27">Interdepartmental Studies</option><option value="29">Laboratory Medicine</option><option value="30">Medicine</option><option value="31">Microbiology</option><option value="32">Neurology</option><option value="33">Neurosciences</option><option value="34">Neurosurgery</option><option value="35">Nursing</option><option value="139">Nursing Skills Lab</option><option value="144">Nursing, Advanced Practice</option><option value="36">Nutrition</option><option value="37">Obstetrics, Gynecology & Reproductive Sciences</option><option value="38">Ophthalmology</option><option value="40">Oral & Craniofacial Sciences</option><option value="39">Oral & Maxillofacial Surgery</option><option value="41">Oral Medicine</option><option value="42">Oral Pathology</option><option value="43">Oral Radiology</option><option value="44">Orofacial Sciences</option><option value="45">Orthodontics</option><option value="46">Orthopaedic Surgery</option><option value="47">Otolaryngology</option><option value="69">Pain Management</option><option value="48">Pathology</option><option value="49">Patient - Centered Care</option><option value="50">Pediatric Dentistry</option><option value="51">Pediatrics</option><option value="52">Periodontology</option><option value="53">Pharmaceutical Chemistry</option><option value="54">Pharmacogenomics</option><option value="55">Pharmacology</option><option value="135">Pharmacy Integrated Sciences</option><option value="56">Physical Therapy</option><option value="57">Physiology</option><option value="133">Policy Law</option><option value="58">Preventive & Restorative Dental Sciences</option><option value="59">Psychiatry</option><option value="60">Psychology</option><option value="61">Radiation Oncology</option><option value="62">Radiology</option><option value="134">Rehabilitation Science</option><option value="63">Restorative Dental Sciences</option><option value="64">Scientific Methods</option><option value="65">Sociology</option><option value="66">Speech & Hearing Sciences</option><option value="67">Surgery</option><option value="68">Urology</option></select></div> </div> </div> </div> <div class="search-limits"> <div class="width: 10em;"> <div> <input id="limit_graduate_division" name="limit_graduate_division" type="checkbox" value="1"> <label for="limit_graduate_division">Graduate Division courses</label> </div> <div> <input id="limit_ipe" name="limit_ipe" type="checkbox" value="1"> <label for="limit_ipe">Interprofessional Education courses</label> </div> <div> <input id="limit_online" name="limit_online" type="checkbox" value="1"> <label for="limit_online">Web-based online courses</label> </div> <div> <input id="limit_repeat_for_credit" name="limit_repeat_for_credit" type="checkbox" value="1"> <label for="limit_repeat_for_credit">Repeat course for credit</label> </div> </div> </div> </div> </div> <div class="row"> <div class="small-4 columns small-offset-1" style=""> <label>Quarters Offered:</label> <div class="quarters-offered"> <div class="quarter-offered"> <input id="limit_winter" name="limit_winter" type="checkbox" value="1"> <label for="limit_winter">Winter</label> </div> <div class="quarter-offered"> <input id="limit_summer" name="limit_summer" type="checkbox" value="1"> <label for="limit_summer">Summer</label> </div> </div> <div class="quarters-offered"> <div class="quarter-offered"> <input id="limit_spring" name="limit_spring" type="checkbox" value="1"> <label for="limit_spring">Spring</label> </div> <div class="quarter-offered"> <input id="limit_fall" name="limit_fall" type="checkbox" value="1"> <label for="limit_fall">Fall</label> </div> </div> </div> <div class="small-7 columns"> <label>Grading:</label> <input id="limit_grading_letter_grade" name="limit_grading_letter_grade" type="checkbox" value="1"> <label for="limit_grading_letter_grade">Letter Grade</label><br> <input id="limit_grading_pnp_su" name="limit_grading_pnp_su" type="checkbox" value="1"> <label for="limit_grading_pnp_su">P/NP (Pass / Not Pass), S/U (Satisfactory / Unsatisfactory)</label><br> <input id="limit_grading_in_process" name="limit_grading_in_process" type="checkbox" value="1"> <label for="limit_grading_in_process">In Progress (IP, SP/UP) grading</label> </div> </div> </div> </form> </div> <div class="large-11 large-centered columns"> <div id="coursesTableContainer"></div> </div> </div> <div id="searchresults" style="display:none;margin-bottom:40px;"></div> <div class="row" style="margin-bottom:40px;" id="subjects"> <div class="large-6 columns small-12"> <div class="large-2 columns"> <div class="catalog_letter">A</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/aicompdrug'>AI Comp Drug Disc & Dev</a></div> <div class="catalog_subject"><a href='/anatomy'>Anatomy</a></div> <div class="catalog_subject"><a href='/ane_periop'>Anesthesia & Perioperative Care</a></div> <div class="catalog_subject"><a href='/anthropol'>Anthropology</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">B</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/biochem'>Biochemistry</a></div> <div class="catalog_subject"><a href='/bioengr'>Bioengineering</a></div> <div class="catalog_subject"><a href='/bio_md_inf'>Biological & Medical Informatics</a></div> <div class="catalog_subject"><a href='/biomed_img'>Biomedical Imaging</a></div> <div class="catalog_subject"><a href='/biomed_sci'>Biomedical Sciences</a></div> <div class="catalog_subject"><a href='/biophrm_sc'>Biopharmaceutical Sciences</a></div> <div class="catalog_subject"><a href='/biophysics'>Biophysics</a></div> <div class="catalog_subject"><a href='/biostat'>Biostatistics</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">C</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/cell_biol'>Cell Biology</a></div> <div class="catalog_subject"><a href='/chemistry'>Chemistry</a></div> <div class="catalog_subject"><a href='/cl_pharm'>Clinical Pharmacy</a></div> <div class="catalog_subject"><a href='/comp_hlth'>Computational Precision Health</a></div> <div class="catalog_subject"><a href='/cran_anom'>Craniofacial Anomalies</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">D</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/datasci'>Data Science</a></div> <div class="catalog_subject"><a href='/den_pub_hl'>Dental Public Health</a></div> <div class="catalog_subject"><a href='/dentalsci'>Dental Sciences</a></div> <div class="catalog_subject"><a href='/dermatol'>Dermatology</a></div> <div class="catalog_subject"><a href='/dev_stmcel'>Developmental & Stem Cell Biology</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">E</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/emerg_med'>Emergency Medicine</a></div> <div class="catalog_subject"><a href='/endocrinol'>Endocrinology</a></div> <div class="catalog_subject"><a href='/epidemiol'>Epidemiology</a></div> <div class="catalog_subject"><a href='/eqbraihlth'>Equity in Brain Health</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">F</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/fam_cm_med'>Family & Community Medicine</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">G</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/gencounsel'>Genetic Counseling</a></div> <div class="catalog_subject"><a href='/genetics'>Genetics</a></div> <div class="catalog_subject"><a href='/globl_hlth'>Global Health Sciences</a></div> <div class="catalog_subject"><a href='/grad'>Graduate Studies</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">H</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/hlth_admin'>Healthcare Administration</a></div> <div class="catalog_subject"><a href='/hist_hl_sc'>History of Health Sciences</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">I</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/implmt_sci'>Implementation Science</a></div> <div class="catalog_subject"><a href='/interdept'>Interdepartmental Studies</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">L</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/lab_med'>Laboratory Medicine</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">M</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/medicine'>Medicine</a></div> <div class="catalog_subject"><a href='/microbiol'>Microbiology</a></div> </div> </div><div class="large-6 columns small-12"> <div class="large-2 columns"> <div class="catalog_letter">N</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/neurology'>Neurology</a></div> <div class="catalog_subject"><a href='/neurosci'>Neurosciences</a></div> <div class="catalog_subject"><a href='/neuro_surg'>Neurosurgery</a></div> <div class="catalog_subject"><a href='/nursing'>Nursing</a></div> <div class="catalog_subject"><a href='/skills_lab'>Nursing Skills Lab</a></div> <div class="catalog_subject"><a href='/nursadvpr'>Nursing, Advanced Practice</a></div> <div class="catalog_subject"><a href='/nutrition'>Nutrition</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">O</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/ob_gyn_r_s'>Obstetrics, Gynecology & Reproductive Sciences</a></div> <div class="catalog_subject"><a href='/ophthalmol'>Ophthalmology</a></div> <div class="catalog_subject"><a href='/or_cra_fac'>Oral & Craniofacial Sciences</a></div> <div class="catalog_subject"><a href='/or_mx_surg'>Oral & Maxillofacial Surgery</a></div> <div class="catalog_subject"><a href='/oral_med'>Oral Medicine</a></div> <div class="catalog_subject"><a href='/oral_rad'>Oral Radiology</a></div> <div class="catalog_subject"><a href='/orthodont'>Orthodontics</a></div> <div class="catalog_subject"><a href='/ortho_surg'>Orthopaedic Surgery</a></div> <div class="catalog_subject"><a href='/otolaryn'>Otolaryngology</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">P</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/pathology'>Pathology</a></div> <div class="catalog_subject"><a href='/pt_cn_care'>Patient - Centered Care</a></div> <div class="catalog_subject"><a href='/ped_dent'>Pediatric Dentistry</a></div> <div class="catalog_subject"><a href='/pediatrics'>Pediatrics</a></div> <div class="catalog_subject"><a href='/periodont'>Periodontology</a></div> <div class="catalog_subject"><a href='/pharm_chem'>Pharmaceutical Chemistry</a></div> <div class="catalog_subject"><a href='/pharmgenom'>Pharmacogenomics</a></div> <div class="catalog_subject"><a href='/pharmacol'>Pharmacology</a></div> <div class="catalog_subject"><a href='/pharmis'>Pharmacy Integrated Sciences</a></div> <div class="catalog_subject"><a href='/phys_ther'>Physical Therapy</a></div> <div class="catalog_subject"><a href='/physiology'>Physiology</a></div> <div class="catalog_subject"><a href='/prv_rs_den'>Preventive & Restorative Dental Sciences</a></div> <div class="catalog_subject"><a href='/psychiatry'>Psychiatry</a></div> <div class="catalog_subject"><a href='/psychology'>Psychology</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">R</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/rad_oncol'>Radiation Oncology</a></div> <div class="catalog_subject"><a href='/radiology'>Radiology</a></div> <div class="catalog_subject"><a href='/rehab_sci'>Rehabilitation Science</a></div> <div class="catalog_subject"><a href='/restor_den'>Restorative Dental Sciences</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">S</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/scimethods'>Scientific Methods</a></div> <div class="catalog_subject"><a href='/sociology'>Sociology</a></div> <div class="catalog_subject"><a href='/surgery'>Surgery</a></div> </div> <div class="large-2 columns"> <div class="catalog_letter">U</div> </div> <div class="large-10 columns catalog_section"> <div class="catalog_subject"><a href='/urology'>Urology</a></div> </div> </div> </div> <div id="faculty-details" class="reveal-modal medium"></div> <script src="/js/all.min.js?v=2"></script> <script> $(document).foundation(); </script> <script> $(document).ready(function () { $("#limit_graduate_division").click(function() { if ($(this).is(':checked')) { $("#department_filter").children("optgroup[label!='Graduate Division']").hide(); $("#department_filter").children("optgroup[label='School of Nursing']").show(); $('#department_filter option:first').prop('selected', true); } else { $("#department_filter").children("optgroup").show(); } }); $('#searchButton').click(function (e) { e.preventDefault(); var department_filter = ''; $("#subjects").hide(); $("#searchresults").html(''); $.blockUI({ message: '<h3><img src="/images/ajax-loader.gif" /> searching</h3>', css: { border: 'none', padding: '10px', backgroundColor: '#fff', 'border-radius' :'10px', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', color: '#fff' } }); if ($("#advanced_contents").is(":visible")) { department_filter = $("#department_filter").val(); subject_filter = $("#subject_filter").val(); include_course_description = $("#include_course_description").is(':checked') ? 1 : 0; include_prerequisite = $("#include_prerequisite").is(':checked') ? 1 : 0; include_restrictions = $("#include_restrictions").is(':checked') ? 1 : 0; limit_ipe = $("#limit_ipe").is(':checked') ? 1 : 0; limit_online = $("#limit_online").is(':checked') ? 1 : 0; limit_graduate_division = $("#limit_graduate_division").is(':checked') ? 1 : 0; limit_grading_letter_grade = $("#limit_grading_letter_grade").is(':checked') ? 1 : 0; limit_grading_pnp_su = $("#limit_grading_pnp_su").is(':checked') ? 1 : 0; limit_grading_in_process = $("#limit_grading_in_process").is(':checked') ? 1 : 0; limit_repeat_for_credit = $("#limit_repeat_for_credit").is(':checked') ? 1 : 0; limit_winter = $("#limit_winter").is(':checked') ? 1 : 0; limit_spring = $("#limit_spring").is(':checked') ? 1 : 0; limit_summer = $("#limit_summer").is(':checked') ? 1 : 0; limit_fall = $("#limit_fall").is(':checked') ? 1 : 0; $.ajax({ url: "/search", cache: false, dataType: 'html', type: 'post', data: { search: $("#search").val(), advanced: 1, department_filter: department_filter, subject_filter: subject_filter, limit_ipe: limit_ipe, limit_winter : limit_winter, limit_spring : limit_spring, limit_summer : limit_summer, limit_fall : limit_fall, limit_online: limit_online, _token: $("#searchform input[name=_token]").val(), limit_grading_letter_grade : limit_grading_letter_grade, limit_grading_pnp_su : limit_grading_pnp_su, limit_grading_in_process: limit_grading_in_process, limit_repeat_for_credit: limit_repeat_for_credit, limit_graduate_division: limit_graduate_division, include_course_description: include_course_description, include_prerequisite: include_prerequisite, include_restrictions: include_restrictions } }) .done(function (data) { $("#searchresults").html(data); $("#searchresults").show(); $.unblockUI(); }) .fail(function () { $("#searchresults").html('<div class="row"><p style="text-align:center;">Failed to search course catalog.</p></div>'); $("#searchresults").show(); $.unblockUI(); }); } else if ($("#search").val() != '' ){ $.ajax({ url: "/search", cache: false, dataType: 'html', type: 'post', data: { search: $("#search").val(), _token: $("#searchform input[name=_token]").val() } }) .done(function (data) { $("#searchresults").html(data); $("#searchresults").show(); $.unblockUI(); }) .fail(function () { $("#searchresults").html('<div class="row"><p style="text-align:center;">Failed to search course catalog.</p></div>'); $("#searchresults").show(); $.unblockUI(); }); } else { $("#searchresults").html('<div class="row"><p style="text-align:center;">No search entered. Please try again.</p></div>'); $("#searchresults").show(); $.unblockUI(); } }); $("#advanced_expand").click(function () { if ($("#advanced_contents").is(":visible")) { $(this).removeClass('expanded'); $(this).addClass('collapsed'); $("#advanced_contents").hide(); } else { $(this).removeClass('collapsed'); $(this).addClass('expanded'); $("#advanced_contents").show(); } }); $('#clearSearchButton').click(function (e) { e.preventDefault(); $("#search").val(''); $("#searchresults").hide(); $("#searchresults").html(''); $("#subjects").show(); $("#department_filter").children("optgroup").show(); $('#department_filter option:first').prop('selected', true); $('#subject_filter option:first').prop('selected', true); $("#include_course_description").attr('checked', false); $("#include_prerequisite").attr('checked', false); $("#include_restrictions").attr('checked', false); $("#limit_ipe").attr('checked', false); $("#limit_online").attr('checked', false); $("#limit_graduate_division").attr('checked', false); $("#limit_grading_letter_grade").attr('checked', false); $("#limit_grading_pnp_su").attr('checked', false); $("#limit_grading_in_process").attr('checked', false); $("#limit_repeat_for_credit").attr('checked', false); $("#limit_winter").attr('checked', false); $("#limit_spring").attr('checked', false); $("#limit_summer").attr('checked', false); $("#limit_fall").attr('checked', false); $("#advanced_contents").hide(); $.ajax({ url: "/clearsearch", cache: false, dataType: 'html', type: 'post', data: { _token: $("#searchform input[name=_token]").val() } }) .done(function (data) {}); }); $("#search").focus(); if ($("#limit_graduate_division").is(':checked')) { $("#department_filter").children("optgroup[label!='Graduate Division']").hide(); $("#department_filter").children("optgroup[label='School of Nursing']").show(); } if ($("#search").val() != '') { $('#searchButton').trigger('click'); } }); </script> </body> </html>