spec/ui_selenium/pages/api_my_academics_page_semesters.rb
# Semester cards list courses once per primary section OR once per transcript record (if transcripts exist)
Semester cards list courses once per primary section OR once per transcript record (if transcripts exist)
Semester cards list courses once per primary section OR once per transcript record ( if transcripts exist )
def semester_card_courses(semester, courses)
    if has_enrollment_data?(semester)
      course_list = []
      courses.each do |course|
        if course_transcripts(course).nil?
          course_primary_sections(course).each { course_list << course }
        else
          course_transcripts(course).each { course_list << course }
        end
      end
      course_list
    else
      courses
    end
  end
def semester_card_courses ( semester , courses ) if has_enrollment_data? ( semester ) course_list = [ ] courses . each do | course | if course_transcripts ( course ) . nil? course_primary_sections ( course ) . each { course_list << course } else course_transcripts ( course ) . each { course_list << course } end end course_list else courses end end
Semester cards list courses once per primary section OR once per transcript record (if transcripts exist)
Semester cards list courses once per primary section OR once per transcript record ( if transcripts exist )
semester
<not_specific>
courses
<not_specific>