From bcb5a8c469c4b5c1909880ab6789d67d04487ed2 Mon Sep 17 00:00:00 2001 From: Abhinav Chadaga Date: Wed, 17 Apr 2024 10:33:47 -0500 Subject: [PATCH] fix: remove course name from the syllabi lookup (#200) * fix: remove course name from the syllabi lookup * fix: use instructor name in past syllabi lookup --- .../CourseCatalogInjectedPopup/HeadingAndActions.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx index d8ed69546..4075ca2f2 100644 --- a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx +++ b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx @@ -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 () => {