diff --git a/application/modules/courses/models/CourseModel.php b/application/modules/courses/models/CourseModel.php index 475d9664580a99b942bca3032e1965c2679b4167..139732c07fca0d2b08a6dd3d9a60338fe5f6fcc1 100644 --- a/application/modules/courses/models/CourseModel.php +++ b/application/modules/courses/models/CourseModel.php @@ -2465,6 +2465,19 @@ class Courses_CourseModel extends Unl_Model { return $this->_data['effectiveSemester']; } + + public function getEffectiveSemesterDescription() + { + $year = substr($this->_data['effectiveSemester'], 0, 4); + $term = substr($this->_data['effectiveSemester'], 4); + $termDescriptions = array(1 => 'Fall', 'Spring', 'Summer'); + if ($term == 1) { + $year--; + } + $term = $termDescriptions[$term]; + + return $term . ' ' . $year . ' (' . substr($this->_data['effectiveSemester'], 2) . ')'; + } public function setEffectiveSemester($semester) { diff --git a/application/modules/courses/views/scripts/view/course-info.phtml b/application/modules/courses/views/scripts/view/course-info.phtml index 3e24b4ed36d34dc02caabe6270289b92d18048ba..6ca84afa20acde63953e170fcf66b61f5120b184 100644 --- a/application/modules/courses/views/scripts/view/course-info.phtml +++ b/application/modules/courses/views/scripts/view/course-info.phtml @@ -124,7 +124,7 @@ </tr> <tr> <th>Effective Term</th> - <td><?php echo $course->getEffectiveSemester(); ?></td> + <td><?php echo $course->getEffectiveSemesterDescription(); ?></td> </tr> <tr> <th>Most Recent Action</th> diff --git a/application/modules/iace/controllers/IndexController.php b/application/modules/iace/controllers/IndexController.php index 30135a37e780e17ebc38e8c878fc388070c04392..17b1f8c24487a0692d474e07033dad542828ac14 100644 --- a/application/modules/iace/controllers/IndexController.php +++ b/application/modules/iace/controllers/IndexController.php @@ -69,7 +69,7 @@ class Iace_IndexController extends App_Controller_Action . implode(', ', $course->getCampuses()) . "\t" . implode(', ', $course->getDeliveryMethods()) . "\t" . implode(', ', $course->getTermsOffered()) . "\t" - . $course->getEffectiveSemester() . "\t" + . $course->getEffectiveSemesterDescription() . "\t" . $course->getPrerequisite() . "\t" . $course->getNotes() . "\t" . $course->getDescription() . "\t"