Inline C# Function: BaileyWeb.University.Data.SearchCourses

The Inline C# Function SearchCourses retrieves combined data from multiple sources for all courses, or a list of courses filtered by a search criteria.

Files

The following files are supplied with the University Package:

  • ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchCourses.cs

Parameters

There are 16 parameters:

Parameter: Label: Help: Type: Default: Widget:
SearchCourseTitle Course title The title of the course you want to search for. String   Text Box
SearchCourseCode Course code The code of the course you want to search for. String   Text Box
SearchAward Award The award of the course you want to search for. String   Text Box
SearchAwardMode Award mode The award mode of the course you want to search for. String   Text Box
SearchEducationLevel Education level The education level of the course you want to search for. String   Text Box
SearchStartDate Entry year The entry year of the course you want to search for. String   Text Box
SearchMainLocation Main location The main location of the course you want to search for. String   Text Box
SearchAcademicDepartments Academic departments The academic departments (faculties) of the course / subjects you want to search for. String   Text Box
SearchSubjects Subjects The subjects or keywords of the course you want to search for. String   Text Box
SearchStudyAbroad Study abroad available? Is the course available with a study abroad / overseas option (Tick for yes)? Boolean False Check Box
SearchStudyWorkBased Work-based course? Is the course work-based (Tick for yes)? Boolean False Check Box
SearchStudyCPD CPD course? Is the course for continuing professional development (Tick for yes)? Boolean False Check Box
SearchStudyMode Study mode Is the course available full-time, part-time or distance learning? String   Text Box
q Course title (alternate) The title of the course you want to search for. String   Text Box
CurrentPageNumber Current page number The pagination number of the current page. Integer 1 Text Box
MaximumItemsPerPage Maximum items to display How many items should be displayed per paginated page? Integer 10 Text Box

Function Markup

None.

Sub Functions

None.

Text Strings

This function uses the following localisation resources:

Sample Output Code

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

<CoursesList>
  <Courses SearchCourseTitle="Drama" SearchCourseCode="" SearchStartDate="" SearchAward="" SearchAwardMode="Single" SearchEducationLevel="" SearchMainLocation="" SearchSubjects="" SearchAcademicDepartments="" SearchStudyMode="" SearchStudyAbroad="false" SearchStudyWorkBased="false" SearchStudyCPD="false" Q="">
    <Course Id="6b645af5-ee9e-4916-b7cf-ccff84e81d80">
      <CourseURL>/2020/9/25/BA-DRAM</CourseURL>
      <CourseTitle>BA (Hons) in Drama</CourseTitle>
      <StartDate>2020-09-25T00:00:00</StartDate>
      <StartDateShort>2020/09/25</StartDateShort>
      <CourseLevel>12276bfc-cd33-4b50-8206-b4d2d0696c02</CourseLevel>
      <CourseLevelName>Bachelor's Degree</CourseLevelName>
      <CourseCode>BA DRAM</CourseCode>
      <Award>7e476849-a10d-4007-8b36-8d307120f786</Award>
      <AwardName>BA (Hons)</AwardName>
      <AwardMode>c1ec9d6e-b86e-4828-a8af-55f70c05e433</AwardMode>
      <AwardModeName>Single</AwardModeName>
      <Subject1Name>Drama</Subject1Name>
      <Subject1AcademicDepartment>fadf3ae3-aeaf-453d-aa5a-3b6f7d79bd6e</Subject1AcademicDepartment>
      <Subject1AcademicDepartmentName>Faculty of Humanities and Law</Subject1AcademicDepartmentName>
      <Subject1Keywords></Subject1Keywords>
      <Subject1IconPhoto>MediaArchive:fafb9df5-03db-4547-a43c-d19c803376fc</Subject1IconPhoto>
      <Subject1IconPhotoAltText>Greek tragedy and comedy masks</Subject1IconPhotoAltText>
      <Subject2Name />
      <Subject2AcademicDepartment />
      <Subject2AcademicDepartmentName />
      <Subject2Keywords />
      <Subject2IconPhoto />
      <Subject2IconPhotoAltText />
      <MainLocation>f3b84cfe-2194-46a8-bbfc-f7186baef65b</MainLocation>
      <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>/2021/1/29/BA-DRAM</CourseURL>
      <CourseTitle>BA (Hons) in Drama</CourseTitle>
      <StartDate>2021-01-29T00:00:00</StartDate>
      <StartDateShort>2021/01/29</StartDateShort>
      <CourseLevel>12276bfc-cd33-4b50-8206-b4d2d0696c02</CourseLevel>
      <CourseLevelName>Bachelor's Degree</CourseLevelName>
      <CourseCode>BA DRAM</CourseCode>
      <Award>7e476849-a10d-4007-8b36-8d307120f786</Award>
      <AwardName>BA (Hons)</AwardName>
      <AwardMode>c1ec9d6e-b86e-4828-a8af-55f70c05e433</AwardMode>
      <AwardModeName>Single</AwardModeName>
      <Subject1Name>Drama</Subject1Name>
      <Subject1AcademicDepartment>fadf3ae3-aeaf-453d-aa5a-3b6f7d79bd6e</Subject1AcademicDepartment>
      <Subject1AcademicDepartmentName>Faculty of Humanities and Law</Subject1AcademicDepartmentName>
      <Subject1Keywords></Subject1Keywords>
      <Subject1IconPhoto>MediaArchive:fafb9df5-03db-4547-a43c-d19c803376fc</Subject1IconPhoto>
      <Subject1IconPhotoAltText>Greek tragedy and comedy masks</Subject1IconPhotoAltText>
      <Subject2Name />
      <Subject2AcademicDepartment />
      <Subject2AcademicDepartmentName />
      <Subject2Keywords />
      <Subject2IconPhoto />
      <Subject2IconPhotoAltText />
      <MainLocation>f3b84cfe-2194-46a8-bbfc-f7186baef65b</MainLocation>
      <MainLocationName>Bath</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="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" />
</CoursesList>

Updated: 22 December 2019