diff --git a/RMuseum/Models/Ganjoor/GanjoorVerse.cs b/RMuseum/Models/Ganjoor/GanjoorVerse.cs
index 8d95da14..6a83f0a9 100644
--- a/RMuseum/Models/Ganjoor/GanjoorVerse.cs
+++ b/RMuseum/Models/Ganjoor/GanjoorVerse.cs
@@ -43,22 +43,22 @@
///
/// GanjoorPoemSection index
///
- public int? SectionIndex { get; set; }
+ public int? SectionIndex1 { get; set; }
///
/// second GanjoorPoemSection index
///
- public int? SecondSectionIndex { get; set; }
+ public int? SectionIndex2 { get; set; }
///
/// third GanjoorPoemSection index
///
- public int? ThirdSectionIndex { get; set; }
+ public int? SectionIndex3 { get; set; }
///
/// forth GanjoorPoemSection index
///
- public int? ForthSectionIndex { get; set; }
+ public int? SectionIndex4 { get; set; }
public override string ToString()
{
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModeratePoemCorrection.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModeratePoemCorrection.cs
index 7b1f4521..600be0a2 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModeratePoemCorrection.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModeratePoemCorrection.cs
@@ -130,13 +130,13 @@ namespace RMuseum.Services.Implementation
foreach (var section in sections)
{
var sectionVerses = poemVerses.Where(v =>
- (section.VerseType == VersePoemSectionType.First && v.SectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.First && v.SectionIndex1 == section.Index)
||
- (section.VerseType == VersePoemSectionType.Second && v.SecondSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Second && v.SectionIndex2 == section.Index)
||
- (section.VerseType == VersePoemSectionType.Third && v.ThirdSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Third && v.SectionIndex3 == section.Index)
||
- (section.VerseType == VersePoemSectionType.Forth && v.ForthSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Forth && v.SectionIndex4 == section.Index)
).OrderBy(v => v.VOrder).ToList();
if (sectionVerses.Any(v => modifiedVerses.Contains(v)))
{
@@ -282,8 +282,8 @@ namespace RMuseum.Services.Implementation
foreach (var verse in poemVerses)
{
- verse.SecondSectionIndex = null;
- verse.ThirdSectionIndex = null;
+ verse.SectionIndex2 = null;
+ verse.SectionIndex3 = null;
_context.Update(verse);
}
}
@@ -312,7 +312,7 @@ namespace RMuseum.Services.Implementation
foreach (var verse in poemVerses)
{
- verse.SecondSectionIndex = secondMetreSection.Index;
+ verse.SectionIndex2 = secondMetreSection.Index;
}
foreach (var secondLevelSections in sections.Where(s => s.SectionType != PoemSectionType.WholePoem && s.VerseType == VersePoemSectionType.Second).OrderBy(s => s.Index))
@@ -338,7 +338,7 @@ namespace RMuseum.Services.Implementation
foreach (var verse in poemVerses)
{
- verse.ThirdSectionIndex = newSection.Index;
+ verse.SectionIndex3 = newSection.Index;
}
}
_context.UpdateRange(poemVerses);
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
index 32445f68..4812822e 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
@@ -99,10 +99,10 @@ namespace RMuseum.Services.Implementation
context.Add(mainSection);//having a main section for مثنوی inside normal text helps keep track of related versess
foreach (var verse in singleVerses)
{
- verse.SectionIndex = mainSection.Index;
- verse.SecondSectionIndex = null;//clear previous indices
- verse.ThirdSectionIndex = null;//clear previous indices
- verse.ForthSectionIndex = null;//clear previous indices
+ verse.SectionIndex1 = mainSection.Index;
+ verse.SectionIndex2 = null;//clear previous indices
+ verse.SectionIndex3 = null;//clear previous indices
+ verse.SectionIndex4 = null;//clear previous indices
}
context.UpdateRange(singleVerses);
@@ -167,10 +167,10 @@ namespace RMuseum.Services.Implementation
context.Add(mainSection);//having a main section for مثنوی inside normal text helps keep track of related versess
foreach (var verse in singleVerses)
{
- verse.SectionIndex = mainSection.Index;
- verse.SecondSectionIndex = null;//clear previous indices
- verse.ThirdSectionIndex = null;//clear previous indices
- verse.ForthSectionIndex = null;//clear previous indices
+ verse.SectionIndex1 = mainSection.Index;
+ verse.SectionIndex2 = null;//clear previous indices
+ verse.SectionIndex3 = null;//clear previous indices
+ verse.SectionIndex4 = null;//clear previous indices
}
context.UpdateRange(singleVerses);
}
@@ -279,10 +279,10 @@ namespace RMuseum.Services.Implementation
List bandVerses = new List();
foreach (var verse in nonCommentVerses)
{
- verse.SectionIndex = mainSection.Index;
- verse.SecondSectionIndex = null;//clear previous indices
- verse.ThirdSectionIndex = null;//clear previous indices
- verse.ForthSectionIndex = null;//clear previous indices
+ verse.SectionIndex1 = mainSection.Index;
+ verse.SectionIndex2 = null;//clear previous indices
+ verse.SectionIndex3 = null;//clear previous indices
+ verse.SectionIndex4 = null;//clear previous indices
if (verse.VersePosition == VersePosition.Right || verse.VersePosition == VersePosition.Left)
{
currentBandVerses.Add(verse);
@@ -295,7 +295,7 @@ namespace RMuseum.Services.Implementation
{
foreach (var currentBandVerse in currentBandVerses)
{
- currentBandVerse.SecondSectionIndex = currentBandSection.Index;
+ currentBandVerse.SectionIndex2 = currentBandSection.Index;
}
currentBandSection.RhymeLetters = LanguageUtils.FindRhyme(currentBandVerses).Rhyme;
currentBandSection.HtmlText = PrepareHtmlText(currentBandVerses);
@@ -323,7 +323,7 @@ namespace RMuseum.Services.Implementation
{
foreach (var currentBandVerse in currentBandVerses)
{
- currentBandVerse.SecondSectionIndex = currentBandSection.Index;
+ currentBandVerse.SectionIndex2 = currentBandSection.Index;
}
currentBandSection.RhymeLetters = LanguageUtils.FindRhyme(currentBandVerses).Rhyme;
currentBandSection.HtmlText = PrepareHtmlText(currentBandVerses);
@@ -344,7 +344,7 @@ namespace RMuseum.Services.Implementation
};
foreach (var bandVerse in bandVerses)
{
- bandVerse.SecondSectionIndex = bandSection.Index;
+ bandVerse.SectionIndex2 = bandSection.Index;
}
bandSection.RhymeLetters = LanguageUtils.FindRhyme(bandVerses).Rhyme;
bandSection.HtmlText = PrepareHtmlText(bandVerses);
@@ -379,10 +379,10 @@ namespace RMuseum.Services.Implementation
context.Add(mainSection);//having a main section for مثنوی inside normal text helps keep track of related versess
foreach (var verse in nonCommentVerses)
{
- verse.SectionIndex = mainSection.Index;
- verse.SecondSectionIndex = null;//clear previous indices
- verse.ThirdSectionIndex = null;//clear previous indices
- verse.ForthSectionIndex = null;//clear previous indices
+ verse.SectionIndex1 = mainSection.Index;
+ verse.SectionIndex2 = null;//clear previous indices
+ verse.SectionIndex3 = null;//clear previous indices
+ verse.SectionIndex4 = null;//clear previous indices
}
index++;
@@ -415,8 +415,8 @@ namespace RMuseum.Services.Implementation
GanjoorMetreRefSectionIndex = mainSection.Index,
};
- rightVerse.SecondSectionIndex = verseSection.Index;
- leftVerse.SecondSectionIndex = verseSection.Index;
+ rightVerse.SectionIndex2 = verseSection.Index;
+ leftVerse.SectionIndex2 = verseSection.Index;
var rl = new List();rl.Add(rightVerse);rl.Add(leftVerse);
verseSection.HtmlText = PrepareHtmlText(rl);
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedSections.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedSections.cs
index f8816f1a..4631ba53 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedSections.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedSections.cs
@@ -101,11 +101,11 @@ namespace RMuseum.Services.Implementation
v.PoemId == section.PoemId
&&
(
- (section.VerseType == VersePoemSectionType.Second && v.SecondSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Second && v.SectionIndex2 == section.Index)
||
- (section.VerseType == VersePoemSectionType.Third && v.ThirdSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Third && v.SectionIndex3 == section.Index)
||
- (section.VerseType == VersePoemSectionType.Forth && v.ForthSectionIndex == section.Index)
+ (section.VerseType == VersePoemSectionType.Forth && v.SectionIndex4 == section.Index)
)
)
.OrderBy(v => v.VOrder)