C# Function: BaileyWeb.University.Data.SearchCourses

This C# function retrieves combined data from multiple sources for all courses, or a list of courses filtered by a search criteria.

Parameters

There are 16 parameters:

  1. SearchCourseTitle - "Course title" - String
    • The title of the course you want to search for.
  2. SearchCourseCode - "Course code" - String
    • The code of the course you want to search for.
  3. SearchStartDate - "Start date" - DateTime (Now)
    • The start date of the course you want to search for.
  4. SearchAward - "Award" - String
    • The award of the course you want to search for.
  5. SearchAwardMode - "Award mode" - String
    • The award mode of the course you want to search for.
  6. SearchEducationLevel - "Education level" - String
    • The education level of the course you want to search for.
  7. SearchStudyModeFullTime - "Study mode: full-time?" - Boolean (True)
    • Is the course available full-time (Tick for yes)?
  8. SearchStudyModePartTime - "Study mode: part-time?" - Boolean (True)
    • Is the course available part-time (Tick for yes)?
  9. SearchStudyModeDistance - "Study mode: distance learning?" - Boolean (True)
    • Is the course available by distance learning (Tick for yes)?
  10. SearchMainLocation - "Main location" - String
    • The main location of the course you want to search for.
  11. SearchAcademicDepartments - "Academic departments" - String
    • The academic departments (faculties) of the course / subjects you want to search for.
  12. SearchSubjects - "Subjects" - String
    • The subjects of the course you want to search for.
  13. SearchStudyAboard - "Study abroad available?" - Boolean
    • Is the course available with a study abroad / overseas option (Tick for yes)?
  14. SearchStudyWorkBased - "Work-based course?" - Boolean
    • Is the course work-based (Tick for yes)?
  15. SearchStudyCPD - "CPD course?" - Boolean
    • Is the course for continuing professional development (Tick for yes)?
  16. q - "Course title (alternate)" - String
    • The title of the course you want to search for.

Text Strings

This function uses the following localisation resources:

Sample Output

Result with the SearchCourseTitle input parameter value of Drama and SearchAwardMode input parameter value of Single:

<CoursesList>
  <Courses CourseTitle="Drama" CourseCode="" StartDate="2017-04-13T00:00:00" Award="" AwardMode="Single" EducationLevel="" MainLocation="" Subjects="" AcademicDepartments="" StudyModeFullTime="false" StudyModePartTime="false" StudyModeDistance="false" StudyAbroad="false" StudyWorkBased="false" StudyCPD="false" Q="">
    <Course Id="6b645af5-ee9e-4916-b7cf-ccff84e81d80">
      <CourseURL>2017/9/25/BA-DRAM</CourseURL>
      <CourseTitle>BA (Hons) in Drama</CourseTitle>
      <CourseLevelName>Bachelor's Degree</CourseLevelName>
      <CourseCode>BA DRAM</CourseCode>
      <StartDate>2017-09-25T00:00:00</StartDate>
      <AwardName>BA (Hons)</AwardName>
      <AwardModeName>Single</AwardModeName>
      <Subject1Name>Drama</Subject1Name>
      <Subject1AcademicDepartmentName>Faculty of Humanities and Law</Subject1AcademicDepartmentName>
      <Subject2Name />
      <Subject2AcademicDepartmentName />
      <MainLocationName>Bath</MainLocationName>
      <StudyModeFullTime>true</StudyModeFullTime>
      <StudyModePartTime>true</StudyModePartTime>
      <StudyModeDistance>false</StudyModeDistance>
      <StudyAbroad>false</StudyAbroad>
      <StudyWorkBased>false</StudyWorkBased>
      <StudyCPD>false</StudyCPD>
    </Course>
    <Course Id="562f2293-d442-4eca-a96e-c13216b999b2">
      <CourseURL>2018/9/24/BA-DRAM</CourseURL>
      <CourseTitle>BA (Hons) in Drama</CourseTitle>
      <CourseLevelName>Bachelor's Degree</CourseLevelName>
      <CourseCode>BA DRAM</CourseCode>
      <StartDate>2018-09-24T00:00:00</StartDate>
      <AwardName>BA (Hons)</AwardName>
      <AwardModeName>Single</AwardModeName>
      <Subject1Name>Drama</Subject1Name>
      <Subject1AcademicDepartmentName>Faculty of Humanities and Law</Subject1AcademicDepartmentName>
      <Subject2Name />
      <Subject2AcademicDepartmentName />
      <MainLocationName>Bath</MainLocationName>
      <StudyModeFullTime>false</StudyModeFullTime>
      <StudyModePartTime>false</StudyModePartTime>
      <StudyModeDistance>false</StudyModeDistance>
      <StudyAbroad>false</StudyAbroad>
      <StudyWorkBased>false</StudyWorkBased>
      <StudyCPD>false</StudyCPD>
    </Course>
    <Course Id="b1d92660-097d-4619-a19c-e3306006bd96">
      <CourseURL>2018/9/24/MA-DRAM</CourseURL>
      <CourseTitle>MA in Drama</CourseTitle>
      <CourseLevelName>Master's Degree</CourseLevelName>
      <CourseCode>MA DRAM</CourseCode>
      <StartDate>2018-09-24T00:00:00</StartDate>
      <AwardName>MA</AwardName>
      <AwardModeName>Single</AwardModeName>
      <Subject1Name>Drama</Subject1Name>
      <Subject1AcademicDepartmentName>Faculty of Humanities and Law</Subject1AcademicDepartmentName>
      <Subject2Name />
      <Subject2AcademicDepartmentName />
      <MainLocationName>Austin, Texas</MainLocationName>
      <StudyModeFullTime>false</StudyModeFullTime>
      <StudyModePartTime>false</StudyModePartTime>
      <StudyModeDistance>false</StudyModeDistance>
      <StudyAbroad>false</StudyAbroad>
      <StudyWorkBased>false</StudyWorkBased>
      <StudyCPD>false</StudyCPD>
    </Course>
  </Courses>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="3" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="3" />
</CoursesList>

Updated: 13 April 2017