Skip to content

Commit

Permalink
fix: remove course name from the syllabi lookup (#200)
Browse files Browse the repository at this point in the history
* fix: remove course name from the syllabi lookup

* fix: use instructor name in past syllabi lookup
  • Loading branch information
abhinavchadaga authored Apr 17, 2024
1 parent 0534f60 commit bcb5a8c
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ export default function HeadingAndActions({ course, activeSchedule, onClose }: H
};

const handleOpenPastSyllabi = async () => {
// not specific to professor
const url = `https://utdirect.utexas.edu/apps/student/coursedocs/nlogon/?year=&semester=&department=${department}&course_number=${courseNumber}&course_title=${courseName}&unique=&instructor_first=&instructor_last=&course_type=In+Residence&search=Search`;
openNewTab({ url });
for (const instructor of instructors) {
let { firstName = '', lastName = '' } = instructor;
firstName = capitalizeString(firstName);
lastName = capitalizeString(lastName);
const url = `https://utdirect.utexas.edu/apps/student/coursedocs/nlogon/?year=&semester=&department=${department}&course_number=${courseNumber}&course_title=&unique=&instructor_first=${firstName}&instructor_last=${lastName}&course_type=In+Residence&search=Search`;
openNewTab({ url });
}
};

const handleAddOrRemoveCourse = async () => {
Expand Down

0 comments on commit bcb5a8c

Please sign in to comment.