From 25abc0c8f752e70a53663441289f48159ad6da75 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sat, 2 Apr 2022 12:11:55 +0430 Subject: [PATCH] docs: #306 sectionizing --- RMuseum/Models/Ganjoor/GanjoorPoemSection.cs | 2 +- .../GanjoorService-Partials/GanjoorService-PoemSections.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RMuseum/Models/Ganjoor/GanjoorPoemSection.cs b/RMuseum/Models/Ganjoor/GanjoorPoemSection.cs index 6b0b41f1..8687cb7c 100644 --- a/RMuseum/Models/Ganjoor/GanjoorPoemSection.cs +++ b/RMuseum/Models/Ganjoor/GanjoorPoemSection.cs @@ -9,7 +9,7 @@ /// /// sections like paragraphs or poems within paragraphs of text /// - Default = 0, + WholePoem = 0, /// /// bands of a multi-band poem /// diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs index c2992249..423cc06c 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs @@ -50,7 +50,7 @@ namespace RMuseum.Services.Implementation GanjoorPoemSection mainSection = new GanjoorPoemSection() { PoemId = poem.Id, - SectionType = PoemSectionType.Default, + SectionType = PoemSectionType.WholePoem, Index = 0, Number = 1, GanjoorMetreId = poem.GanjoorMetreId, @@ -65,7 +65,7 @@ namespace RMuseum.Services.Implementation mainSection.RhymeLetters = analysisRes.Result.Rhyme; } } - context.Add(mainSection); + context.Add(mainSection);//having a main section for مثنوی inside normal text helps keep track of related versess foreach (var verse in verses) { verse.PoemSectionIndex = mainSection.Index;