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

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

Files

The following files are supplied with the University Package:

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

Parameters

There are 8 parameters:

Parameter: Label: Help: Type: Default: Widget:
SearchModuleTitle Module title The title of the module you want to search for. String   Text Box
SearchModuleCode Module code The code of the module you want to search for. String   Text Box
SearchEducationLevel Education level The education level of the module you want to search for. String   Text Box
SearchModuleTypes Module type The type of the module you want to search for. String   Text Box
SearchAcademicDepartments Academic departments The academic departments (faculties) of the module you want to search for. String   Text Box
q Module title (alternate) The title of the module 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 SearchModuleTitle input parameter value of Drama:

<ModulesList>
  <Modules SearchModuleTitle="Drama" SearchModuleCode="" SearchEducationLevel="" SearchModuleTypes="" SearchAcademicDepartments="" Q="">
    <Module Id="57c9d5fe-567e-411c-90c0-d818aaa1d50d">
      <ModuleURL>/DM1001</ModuleURL>
      <ModuleTitle>DM1001 - Introduction to Drama for Bachelor's Degree</ModuleTitle>
      <ModuleCode>DM1001</ModuleCode>
      <ModuleLevel>12276bfc-cd33-4b50-8206-b4d2d0696c02</ModuleLevel>
      <ModuleLevelName>Bachelor's Degree</ModuleLevelName>
      <ModuleType>73c006ae-93e4-45d4-a3d2-f18a2ae2c8f2</ModuleType>
      <ModuleTypeName>Compulsary</ModuleTypeName>
      <ModuleName>Introduction to Drama</ModuleName>
      <AcademicDepartment>fadf3ae3-aeaf-453d-aa5a-3b6f7d79bd6e</AcademicDepartment>
      <AcademicDepartmentName>Faculty of Humanities and Law</AcademicDepartmentName>
      <Description>Drama is the specific mode of fiction represented in performance: a play, opera, mime, ballet, etc., performed in a theatre, or on radio or television. Considered as a genre of poetry in general, the dramatic mode has been contrasted with the epic and the lyrical modes ever since Aristotle's Poetics. The term "drama" comes from a Greek word meaning "action", which is derived from "I do". In English, the word play or game was the standard term for dramas until William Shakespeare's time — just as its creator was a play-maker rather than a dramatist and the building was a play-house rather than a theatre. The use of "drama" in a more narrow sense to designate a specific type of play dates from the modern era. "Drama" in this sense refers to a play that is neither a comedy nor a tragedy.</Description>
      <Credits>30</Credits>
    </Module>
  </Modules>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="1" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="1" />
</ModulesList>

Updated: 22 December 2019