Repository navigation
Schema 12.6: what a publisher's XML declares - #303
Merged
thesanogoeffect merged 2 commits intoDec 1, 2026
Merged
Conversation
Schema 12.6 gains what a publisher's XML declares beyond the text, so bibr and metacheck share one paper format. The shape follows metacheck's publisher-XML reader and the fields its modules read: - root tables supplement, subject, contributor, review and review_text; - metadata.article_type, affiliation.ror and funding.funder_doi (IDs the input declares; looked-up IDs stay in the *_match tables). All are omitted when there is nothing to write: the new tables are the only omittable root keys, so bibr's own exports are unchanged and a 12.5 export is still a valid 12.6 reader input. New conformance example valid/from_publisher_xml.json and tests/export/test_publisher_xml_fields.py; valid/full.json lists the new root keys as empty tables.
thesanogoeffect
added a commit
that referenced
this pull request
Dec 1, 2026
Keeps italics, bold, subscripts and superscripts in text[].formatted, metadata.title_formatted and metadata.abstract_formatted (HTML subset <i> <b> <sub> <sup>; text stays plain, offsets unchanged), read from the PDF text layer, OCR output, JATS, HTML/ePub and DOCX. Adds what a publisher's XML declares beyond the text: root tables supplement, subject, contributor, review and review_text, and metadata.article_type, affiliation.ror and funding.funder_doi, omitted when absent (#303). Export schema 12.5 -> 12.6 (additive).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds what a publisher's XML declares beyond the text to export schema 12.6, so bibr and metacheck share one paper format. Stacked on #300 (inline formatting, also 12.6, unreleased); merge after it.
What changes
supplement,subject,contributor,review,review_text.metadata.article_type,affiliation.ror,funding.funder_doi. These hold IDs the input itself declares. IDs bibr looks up stay inaffiliation_matchandfunding_match.xml_in_modules) and the fields its modules read: repo_check, peer_review, open_practices and funding_check.Tests
tests/export/test_publisher_xml_fields.pyand conformance examplevalid/from_publisher_xml.json.valid/full.jsongains the five keys as empty tables, because its test requires every root key. No existing test was edited or removed.tests/export: 493 passed.Left out on purpose
These are not added because no module reads them yet. metacheck keeps them in memory but doesn't write them into 12.6 files:
bib.relationrelatedtable