photon_platform.publish.folio_review.reviews

Persistent review and vetting status tracker for folios.

Stores vetting checklist, review status, and notes in folio_reviews.json inside the edition’s resources/<edition>/ directory.

Classes

ReviewManager

Manages reading and writing vetting / review records for folios.

Module Contents

class photon_platform.publish.folio_review.reviews.ReviewManager(storage_path: pathlib.Path | None = None)

Manages reading and writing vetting / review records for folios.

get_review(volume: str, folio: str) → Dict[str, Any]

Get review record for a specific folio, returning default if unreviewed.

set_review(volume: str, folio: str, status: str, checklist: Dict[str, bool] | None = None, notes: str = '', reviewer: str | None = 'phi') → Dict[str, Any]

Save or update review record for a specific folio.

get_all_reviews() → Dict[str, Dict[str, Any]]

Return all stored reviews.

get_review_stats() → Dict[str, int]

Return count breakdown of review statuses.