diff --git a/RMuseum/Models/Ganjoor/GanjoorRelatedPoem.cs b/RMuseum/Models/Ganjoor/GanjoorRelatedPoem.cs index b0db81e0..5b8f5b82 100644 --- a/RMuseum/Models/Ganjoor/GanjoorRelatedPoem.cs +++ b/RMuseum/Models/Ganjoor/GanjoorRelatedPoem.cs @@ -27,6 +27,11 @@ namespace RMuseum.Models.Ganjoor /// public bool IsPriorToRelated { get; set; } + /// + /// if the related poet poem has multiple poems related to this poem, which one is chosen to be shown at main poems pages? + /// + public bool ChosenForMainList { get; set; } + /// /// related poem peot death date in hijri (used for sorting) /// @@ -107,7 +112,6 @@ namespace RMuseum.Models.Ganjoor /// public string RelatedCouplet1Verse2 { get; set; } - /// /// is main part /// diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index 696b98e6..033acdd2 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -8827,6 +8827,11 @@ this poem is written and should be displayed prior to the related poem + + + if the related poet poem has multiple poems related to this poem, which one is chosen to be shown at main poems pages? + + related poem peot death date in hijri (used for sorting) diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs index 04eb0801..769eb17a 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs @@ -63,6 +63,7 @@ namespace RMuseum.Services.Implementation PoemId = poem1.Id, RelatedPoemId = poem2.Id, IsPriorToRelated = true, + ChosenForMainList = true, CachedRelatedPoemPoetDeathYearInLHijri = poem2Poet.DeathYearInLHijri, CachedRelatedPoemPoetName = poem2Poet.Name, CachedRelatedPoemPoetUrl = poem2Cat.FullUrl,