Skip to content

Add locatorType field to citationMark schema#31

Merged
gvonness-apolitical merged 1 commit intomainfrom
fix/add-locator-type-to-citation-mark
Feb 16, 2026
Merged

Add locatorType field to citationMark schema#31
gvonness-apolitical merged 1 commit intomainfrom
fix/add-locator-type-to-citation-mark

Conversation

@gvonness-apolitical
Copy link
Collaborator

Summary

  • Add CSL-compatible locatorType enum to the citationMark schema in semantic.schema.json, allowing renderers to distinguish page, chapter, volume, and other locator kinds
  • Update the semantic-document example to use the structured form (locator: "230-265" + locatorType: "page") instead of embedding the type in the value ("pp. 230-265")

Closes #30

Test plan

  • npm test passes (schema validation + example validation)
  • Verify existing documents without locatorType remain valid (non-breaking, optional field)
  • Verify enum values match the CSL locator types specification

Add CSL-compatible locatorType enum alongside the existing locator
field so renderers can distinguish page, chapter, volume, etc.
without guessing from the locator value. Update the semantic-document
example to use the structured form.

Closes #30
@gvonness-apolitical gvonness-apolitical merged commit de46677 into main Feb 16, 2026
2 checks passed
@gvonness-apolitical gvonness-apolitical deleted the fix/add-locator-type-to-citation-mark branch February 16, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add locatorType field to citationMark schema

1 participant