Optionally enrich the metadata of JATS XML responses
Currently Grobid is optionally used for metadata enrichment of source documents when compiled to Manuscripts Project Bundle files (a.k.a. .manuproj
files). This is achieved by converting the source document to an intermediate PDF (if necessary) and then sending it to Grobid for metadata extraction, which informs the enrichment process.
It would also be beneficial to provide the same optional metadata enrichment functionality on the /compile/document/jats
endpoint. The use-case is where a Client uploads a source document, and expects a JATS XML response that has had its metadata enriched. Currently this would require two separate requests to Pressroom:
- Upload a source document requesting a metadata-enriched Manuscripts Project Bundle in response.
- Upload the enriched MPB requesting a JATS XML representation in response.
Related JIRA issue: LIT-284391
-
Allow a Client to pass a Pressroom-Enrich-Document-Metadata
header on requests to thecompile/document/jats
endpoint to return JATS XML that has had its metadata enriched via Grobid.
Edited by Dan Browne