// Remove after development is complete request.element.isStatic = 0; // App config parameters renderCourseHeader = application.ptCourseCatalog.getCoursePagesRenderHeader(); dateMask = application.ptCourseCatalog.getDisplayCFdateMask(); timeMask = application.ptCourseCatalog.getDisplayCFtimeMask(); // Get the Data from CS items = attributes.elementinfo.elementdata.PropertyValues; item = StructNew(); if ( ArrayLen(items) ) item = items[1]; courseID = ""; if ( StructKeyExists(request.page.metadata.CourseCatalog,"courseID") AND LEN(TRIM(request.page.metadata.CourseCatalog.courseID)) ) courseID = request.page.metadata.CourseCatalog.courseID; prereqItems = ArrayNew(1); schedItems = ArrayNew(1); if ( NOT StructIsEmpty(item) AND StructKeyExists(item,"values") ) { if ( StructKeyExists(item.values,"prereqCourseIDList") AND LEN(TRIM(item.values.prereqCourseIDList)) ) prereqItems = application.ptCourseCatalog.courseDAO.getCourses(uniqueID=item.values.prereqCourseIDList); if ( StructKeyExists(item.values,"schedIDList") AND LEN(TRIM(item.values.schedIDList)) ) schedItems = application.ptCourseCatalog.scheduleDAO.getSchedules(uniqueID=item.values.schedIDList); //schedItems = application.ptCourseCatalog.scheduleBuilderController.buildDateTimeRenderData(item.values.schedIDList); } //Display Page/Data Binding Metadata //application.ptCourseCatalog.utils.doDump(request.page.metadata,"request.page.metadata",0); //Display Course Element Data //application.ptCourseCatalog.utils.doDump(items,"items",0); //Display Prereq Course Element Data //application.ptCourseCatalog.utils.doDump(prereqItems,"prereqItems",0); //Display Schedule Element Data //application.ptCourseCatalog.utils.doDump(schedItems,"schedItems",0); A valid Course Catalog Course must be assigned to this page via Custom Properties!

#item.values.CourseName#

#item.values.description#

Credits: #item.values.courseCredits#

Requirements:

#item.values.reqText#

Schedule of Classes:

#application.ptCourseCatalog.scheduleDaysService.weekdayListSerializer(weekdayList=schedItems[itm].values.schedDays,convertFrom="name",convertTo="initial",delimiterOut="")# #TimeFormat(schedItems[itm].values.startTime,timeMask)# #TimeFormat(schedItems[itm].values.endTime,timeMask)#   #schedItems[itm].values.locationInfo# #application.ptCourseCatalog.campusDAO.getCampusNameByBuildingID(buildingID=schedItems[itm].values.buildingID)# #application.ptCourseCatalog.buildingDAO.getBuildingName(buildingID=schedItems[itm].values.buildingID)# #schedItems[itm].values.room#