diff --git a/RMuseum/Controllers/GanjoorController.cs b/RMuseum/Controllers/GanjoorController.cs index d096fff3..7f31c830 100644 --- a/RMuseum/Controllers/GanjoorController.cs +++ b/RMuseum/Controllers/GanjoorController.cs @@ -3653,7 +3653,7 @@ namespace RMuseum.Controllers /// /// get quoted poems for a poem /// - /// + /// /// /// /// diff --git a/RMuseum/Models/Ganjoor/GanjoorPoem.cs b/RMuseum/Models/Ganjoor/GanjoorPoem.cs index 47f4ee25..0c627485 100644 --- a/RMuseum/Models/Ganjoor/GanjoorPoem.cs +++ b/RMuseum/Models/Ganjoor/GanjoorPoem.cs @@ -113,5 +113,10 @@ namespace RMuseum.Models.Ganjoor /// poem summary /// public string PoemSummary { get; set; } + + /// + /// poem is claimed by multiple poets + /// + public bool ClaimedByMultiplePoets { get; set; } } } diff --git a/RMuseum/Models/Ganjoor/ViewModels/GanjoorPoemCompleteViewModel.cs b/RMuseum/Models/Ganjoor/ViewModels/GanjoorPoemCompleteViewModel.cs index deaf9af3..4472ebbd 100644 --- a/RMuseum/Models/Ganjoor/ViewModels/GanjoorPoemCompleteViewModel.cs +++ b/RMuseum/Models/Ganjoor/ViewModels/GanjoorPoemCompleteViewModel.cs @@ -141,5 +141,10 @@ namespace RMuseum.Models.Ganjoor.ViewModels /// section index /// public int? SectionIndex { get; set; } + + /// + /// poem is claimed by multiple poets + /// + public bool ClaimedByMultiplePoets { get; set; } } } diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index cd365e3e..a0c8ab65 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -2017,7 +2017,7 @@ get quoted poems for a poem - + @@ -7771,6 +7771,11 @@ poem summary + + + poem is claimed by multiple poets + + poem correction @@ -10558,6 +10563,11 @@ section index + + + poem is claimed by multiple poets + + poem correction view model diff --git a/RMuseum/Services/Implementation/GanjoorService.cs b/RMuseum/Services/Implementation/GanjoorService.cs index d02c8342..8b0b0fde 100644 --- a/RMuseum/Services/Implementation/GanjoorService.cs +++ b/RMuseum/Services/Implementation/GanjoorService.cs @@ -1902,7 +1902,8 @@ namespace RMuseum.Services.Implementation Comments = poemComments, Sections = poemSections, GeoDateTags = geoDateTags, - Top6QuotedPoems = quoteds + Top6QuotedPoems = quoteds, + ClaimedByMultiplePoets = poem.ClaimedByMultiplePoets, }; if (AggressiveCacheEnabled) @@ -2536,7 +2537,8 @@ namespace RMuseum.Services.Implementation Id = section.Poet.Id, } }, - SectionIndex = section.Index + SectionIndex = section.Index, + ClaimedByMultiplePoets = section.Poem.ClaimedByMultiplePoets, } ).AsNoTracking(); @@ -2623,7 +2625,8 @@ namespace RMuseum.Services.Implementation Id = section.Poet.Id, } }, - SectionIndex = section.Index + SectionIndex = section.Index, + ClaimedByMultiplePoets = section.Poem.ClaimedByMultiplePoets, } ).AsNoTracking(); @@ -2752,6 +2755,7 @@ namespace RMuseum.Services.Implementation Id = poem.Cat.Poet.Id, } }, + ClaimedByMultiplePoets = poem.ClaimedByMultiplePoets, } ).AsNoTracking();