Page MenuHomePhabricator

Set the Approve action to write OCR text to page text layer
Closed, ResolvedPublic

Description

Description:

Per the T394131 requirement set the Approve action to insert the OCR text into the text layer of each page in the book.

Details and specifics

  • Approve action uses the flag primary, progressive per OOUI convention
  • Action calls the MediaWiki API to save the OCR text of each page to its corresponding Page namespace
  • Uses mw.Api and the edit API endpoint
  • Handles both success and failure per page
  • Shows an error message inside the dialog if the API call fails
  • On complete success closes the dialog and refreshes the Index page pagelist

Possible OOUI components

  • Process dialog action set
  • MediaWiki API

Event Timeline

• Badbadiekidi closed this task as Resolved.
• Badbadiekidi triaged this task as High priority.
• Badbadiekidi changed the subtype of this task from "Task" to "Goal".

Complete

Aklapper removed • Badbadiekidi as the assignee of this task.
Aklapper raised the priority of this task from High to Needs Triage.
Aklapper changed the subtype of this task from "Goal" to "Task".
Aklapper removed a subscriber: • Badbadiekidi.

Change #1325770 had a related patch set uploaded (by Ssein; author: Ssein):

[mediawiki/extensions/Wikisource@master] Save OCR results to pages when Approve is clicked

https://gerrit.wikimedia.org/r/1325770

Change #1325770 merged by jenkins-bot:

[mediawiki/extensions/Wikisource@master] Save OCR results to pages when Approve is clicked

https://gerrit.wikimedia.org/r/1325770