Broke out most of the code from ps_to_bb_course_code into ps_to_bb_course_components, which returns an array of the components that make up the Blackboard style course codes, instead of the code string itself. ps_to_bb_course_code simply concatenates the components with an empty separator. This is done so that callers can access the individual components if desired.
Added index numbers to the comments for ps_to_bb_course_components.
Reformulated the d2l_offering view to no repeat code and use ps_to_bb_course_components to extract course information.
Removed timeframe information from the d2l_offering view.
Added a missing comma.
Corrected a stray reference to subject_and_number in the d2l_offering view.
Changed the short description for both offerings and sections to be the course code, because D2L is sensitive to overly long short descriptions.
Corrected the relationship parent for offerings. It was returning the 3rd character of bb_course_code instead of the 3rd component of bb_course_components.