v0.5.1 — repository DOIs are not journal DOIs
Fixes the "SSRN Electronic Journal" trap: a preprint repository's own DOI (e.g. SSRN 10.2139/ssrn.*, registered in CrossRef as journal-article in a fake journal) could wrongly trigger the version-of-record upgrade, turning a working paper into a journalArticle.
- The "is this a journal DOI?" decision is now a single two-layer predicate in
zotkit.metadata, shared bycreate --arxivandenrich --rebuild-record:- repository-prefix blacklist — arXiv
10.48550, SSRN10.2139, bioRxiv/medRxiv10.1101, Research Square10.21203, OSF10.31219, ChemRxiv10.26434, TechRxiv10.36227, Preprints.org10.20944never count as journal DOIs; - record-level guard — a CrossRef record whose container is "SSRN Electronic Journal" (or whose type is posted-content) is a repository posting, not a version of record.
- repository-prefix blacklist — arXiv
- Blocked upgrades keep the preprint and state the reason in the output.
- Unchanged: genuine journal DOIs upgrade exactly as before; repository-DOI items still get plain fill-missing enrichment.