diff --git a/RMuseum/Controllers/GanjoorController.cs b/RMuseum/Controllers/GanjoorController.cs
index 28e80c9a..cdd23bf4 100644
--- a/RMuseum/Controllers/GanjoorController.cs
+++ b/RMuseum/Controllers/GanjoorController.cs
@@ -2748,6 +2748,23 @@ namespace RMuseum.Controllers
return Ok();
}
+ ///
+ /// sectionizing poems
+ ///
+ ///
+ ///
+ [HttpPost("sections/onetime/startextracting")]
+ [Authorize(Policy = RMuseumSecurableItem.GanjoorEntityShortName + ":" + SecurableItem.ModifyOperationShortName)]
+ [ProducesResponseType((int)HttpStatusCode.OK)]
+ [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
+ public IActionResult StartSectionizingPoems(bool clearOldSections = false)
+ {
+ var res = _ganjoorService.StartSectionizingPoems(clearOldSections);
+ if (!string.IsNullOrEmpty(res.ExceptionString))
+ return BadRequest(res.ExceptionString);
+ return Ok();
+ }
+
///
/// readonly mode
///
diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index cdc9dfb0..14204242 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -1688,6 +1688,13 @@
+
+
+ sectionizing poems
+
+
+
+
readonly mode
@@ -11624,6 +11631,13 @@
+
+
+ sectionizing poems
+
+
+
+
translation service implementation
@@ -13210,6 +13224,13 @@
+
+
+ sectionizing poems
+
+
+
+
Start finding missing rhthms
diff --git a/RMuseum/Services/IGanjoorService.cs b/RMuseum/Services/IGanjoorService.cs
index f58cf7f0..d8711d13 100644
--- a/RMuseum/Services/IGanjoorService.cs
+++ b/RMuseum/Services/IGanjoorService.cs
@@ -901,5 +901,13 @@ namespace RMuseum.Services
///
///
RServiceResult StartRemovingCategoryDuplicates(int catId, int destCatId);
+
+
+ ///
+ /// sectionizing poems
+ ///
+ ///
+ ///
+ RServiceResult StartSectionizingPoems(bool clearOldSections = false);
}
}
diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
index 17e5f793..38392809 100644
--- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
+++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-PoemSections.cs
@@ -16,6 +16,11 @@ namespace RMuseum.Services.Implementation
///
public partial class GanjoorService : IGanjoorService
{
+ ///
+ /// sectionizing poems
+ ///
+ ///
+ ///
public RServiceResult StartSectionizingPoems(bool clearOldSections = false)
{
try