Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ProgramInformationV2.Search/Models/Section.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text.Json;
using OpenSearch.Client;
using OpenSearch.Client;
using System.Text.Json;

namespace ProgramInformationV2.Search.Models {

Expand Down Expand Up @@ -90,7 +90,8 @@ public void ManageFacultyList(string name, string netid, string url, bool isAdde

public override void SetId() {
base.SetId();
Title = string.IsNullOrWhiteSpace(DateString) || string.IsNullOrWhiteSpace(SectionCode) ? AlternateTitle :
Title = string.IsNullOrWhiteSpace(Title) ? Title :
string.IsNullOrWhiteSpace(DateString) || string.IsNullOrWhiteSpace(SectionCode) ? AlternateTitle :
(string.IsNullOrWhiteSpace(AlternateTitle) ? $"{DateString}: {SectionCode}" : $"{AlternateTitle} ({DateString}: {SectionCode})");
}

Expand Down
Loading