# HG changeset patch # User Ethan Zonca # Date 2010-10-27 19:37:31 # Node ID cca88ad00317aab22663a072934110d79a1eaad8 # Parent bdad9dbc23cec4a5030133ff112480ae430b4a72 Added synonym support. Still needs to be fixed in crawlers. Show professor by default. Show IE message only to IE users. diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -252,8 +252,9 @@ class Schedule echo '

Display

-
+
+
'; @@ -340,6 +341,7 @@ class Schedule . htmlentities($section->getLetter(), ENT_QUOTES) . "\n" . '' . htmlentities($section->getProf(), ENT_QUOTES) . "\n" . '' . htmlentities($current_meeting->getLocation(), ENT_QUOTES) . "\n" + . '' . htmlentities($section->getSynonym(), ENT_QUOTES) . "\n" . "\n"; $filled = TRUE; } diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -47,6 +47,8 @@ class Section $this->meetings = $section_meetings; + $this->synonym = $synonym; + $this->prof = $prof; } diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -82,9 +82,11 @@ if (!empty($_REQUEST['selectschool']) FALSE); ?>! To get started, enter in some of your class IDs, and click the autosuggestion to add available sections for each class.

+


diff --git a/process.php b/process.php --- a/process.php +++ b/process.php @@ -121,7 +121,7 @@ if(!$DEBUG) /* Skip the section name, which isn't a section */ if(is_array($section)) { - $allClasses->addSection($class['name'], $section['letter'], $section['start'], $section['end'], arrayToDays($section['days'], 'alpha'), NULL, $section['professor'], $section['location']); + $allClasses->addSection($class['name'], $section['letter'], $section['start'], $section['end'], arrayToDays($section['days'], 'alpha'), $section['synonym'], $section['professor'], $section['location']); } } } diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -83,7 +83,7 @@ function genSectionHtml_n(cnum, name, sy var snum = sectionsOfClass[cnum]; var result = ''; - result = result + ''; + result = result + ''; result = result + ''; result = result + '