From c4e898711f4338bd9aeb4dbb36d173f189c1e1ad Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Fri, 3 May 2024 17:23:57 +0330 Subject: [PATCH] #438 ImportNaskbanGanjoorPoemMatchFindings --- RMuseum/Models/GanjoorIntegration/PaperSource.cs | 5 +++++ RMuseum/RMuseum.xml | 5 +++++ RMuseum/Services/IGanjoorService.cs | 7 +++++++ .../GanjoorService-Partials/GanjoorService-Naskban.cs | 1 + 4 files changed, 18 insertions(+) diff --git a/RMuseum/Models/GanjoorIntegration/PaperSource.cs b/RMuseum/Models/GanjoorIntegration/PaperSource.cs index 7ac3eb20..a8f42706 100644 --- a/RMuseum/Models/GanjoorIntegration/PaperSource.cs +++ b/RMuseum/Models/GanjoorIntegration/PaperSource.cs @@ -76,5 +76,10 @@ namespace RMuseum.Models.GanjoorIntegration /// reviewed by a human /// public bool HumanReviewed { get; set; } + + /// + /// position in sorting + /// + public int OrderIndicator { get; set; } } } diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index c2c84411..4d049b9f 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -6597,6 +6597,11 @@ reviewed by a human + + + position in sorting + + PDFBook Ganjoor Link diff --git a/RMuseum/Services/IGanjoorService.cs b/RMuseum/Services/IGanjoorService.cs index 8cf5b5be..488da861 100644 --- a/RMuseum/Services/IGanjoorService.cs +++ b/RMuseum/Services/IGanjoorService.cs @@ -1220,6 +1220,13 @@ namespace RMuseum.Services /// void JustifyNaskbanPageNumbers(string naskbanUserName, string naskbanPassword); + /// + /// import naskban ganjoor matchings + /// + /// + /// + void ImportNaskbanGanjoorPoemMatchFindings(string naskbanUserName, string naskbanPassword); + /// /// mark naskban links as human reviewed /// diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs index 1d1e8d51..e34c5926 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs @@ -605,6 +605,7 @@ namespace RMuseum.Services.Implementation IsTextOriginalSource = false, MatchPercent = 0, HumanReviewed = false, + OrderIndicator = 0, }; context.PaperSources.Add(paperSource); await context.SaveChangesAsync();