adsfolio.pdf.readiness

Metadata readiness verification for catalog records.

adsfolio.pdf.readiness.metadata_ready(record)[source]

Return whether current metadata can name this PDF.

Parameters:

record (Mapping[str, Any]) – Catalog or sidecar record mapping, supporting top-level overrides and nested metadata mapping.

Returns:

True if the record contains non-stale fields required for default renaming (title, author, year), matches its file digest if tracked, and has resolved status or verified external / manual provenance.

Return type:

bool

adsfolio.pdf.readiness.stored_bibcode_matches_file(record)[source]

Return whether a saved bibcode belongs to the current catalog digest.

Parameters:

record (collections.abc.Mapping[str, Any])

Return type:

bool