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

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

Files

The following files are supplied with the University Package:

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

Parameters

There are 8 parameters:

Parameter: Label: Help: Type: Default: Widget:
SearchSubjectTitle Subject title The title of the subject you want to search for. String   Text Box
SearchSubjectCode Subject code The code of the subject you want to search for. String   Text Box
SearchEducationLevel Education level The education level of the subject you want to search for. String   Text Box
SearchSubjectKeywords Keywords The title of the keyword you want to search for. String   Text Box
SearchAcademicDepartments Academic departments The academic departments (faculties) of the subject you want to search for. String   Text Box
q Subject title (alternate) The title of the subject 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 SearchSubjectTitle input parameter value of Drama:

<SubjectsList>
  <Subjects SearchSubjectTitle="Drama" SearchSubjectCode="" SearchEducationLevel="" SearchSubjectKeywords="" SearchAcademicDepartments="" Q="">
    <Subject Id="483a7fe9-8a9f-4c36-8024-e2c772bab932">
      <SubjectURL>/BA-DRAM</SubjectURL>
      <SubjectTitle>Drama for Bachelor's Degree</SubjectTitle>
      <SubjectCode>BA DRAM</SubjectCode>
      <SubjectLevel>12276bfc-cd33-4b50-8206-b4d2d0696c02</SubjectLevel>
      <SubjectLevelName>Bachelor's Degree</SubjectLevelName>
      <SubjectName>Drama</SubjectName>
      <AcademicDepartment>fadf3ae3-aeaf-453d-aa5a-3b6f7d79bd6e</AcademicDepartment>
      <AcademicDepartmentName>Faculty of Humanities and Law</AcademicDepartmentName>
      <Description></Description>
      <Keywords></Keywords>
      <IconPhoto>MediaArchive:fafb9df5-03db-4547-a43c-d19c803376fc</IconPhoto>
      <IconPhotoAltText>Greek tragedy and comedy masks</IconPhotoAltText>
    </Subject>
    <Subject Id="3f02d49a-e1ea-4173-9c11-7c14d4ee14c8">
      <SubjectURL>/MA-DRAM</SubjectURL>
      <SubjectTitle>Drama for Master's Degree</SubjectTitle>
      <SubjectCode>MA DRAM</SubjectCode>
      <SubjectLevel>3ca5a55f-735d-4a6b-b1d0-eab3f9bcc2a0</SubjectLevel>
      <SubjectLevelName>Master's Degree</SubjectLevelName>
      <SubjectName>Drama</SubjectName>
      <AcademicDepartment>fadf3ae3-aeaf-453d-aa5a-3b6f7d79bd6e</AcademicDepartment>
      <AcademicDepartmentName>Faculty of Humanities and Law</AcademicDepartmentName>
      <Description>Master's Drama</Description>
      <Keywords></Keywords>
      <IconPhoto />
      <IconPhotoAltText></IconPhotoAltText>
    </Subject>
  </Subjects>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" />
  <Compiled DateTime="31/12/2019 14:57:58" />
</SubjectsList>

Updated: 31 December 2019