Repository navigation
Conversation
Note citations, PR 2 of the #243 build (plan tickets N2.1 and N2.2). chicago-notes-bibliography.csl and oscola.csl gain a <citation> layout: the full form of the first note citing a work, with its pinpoint, written from CMOS 18 ch. 13 and OSCOLA 5. Borges works out note positions itself, so the layouts need no position tests. POST /bibliography/v1/format takes "layout": "citation" and an optional "locators" list for the notes styles; other styles get 400 bibliography_builder_formatter_no_note_layout. Response caches and the per-style entry map are kept apart by layout, and bibliography cache keys are unchanged. OSCOLA notes drop the full stops after initials. Goldens in tests/fixtures/csl-styles/notes/ (CslNoteGoldenTest), also checked on every PHP version by the runtime-matrix smoke. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA26bGmxnWFaShGz2hk
Plugin readme previewOpen preview · Commit 37 passed · 0 warnings · 0 notes Passed checks (37)
Readme and PHP-header checks only; this does not test plugin runtime compatibility. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
============================================
+ Coverage 87.34% 87.42% +0.08%
Complexity 67 67
============================================
Files 115 115
Lines 12917 12993 +76
Branches 1373 1373
============================================
+ Hits 11282 11359 +77
+ Misses 489 488 -1
Partials 1146 1146 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Part 2 of the note citations build (#243), following #326. The plan is
docs/planning/note-citations-plan.md.What it does
<citation>layout in their bundled CSL files. It is the full note a footnote gives the first time it cites a work, with an optional pinpoint.bibliography_builder_oscola_note_names()). A comma comes before the pinpoint after an article's first page or a statute's title. There is no final full stop.POST /bibliography/v1/formattakeslayout: "citation"and an optionallocatorslist, one pinpoint per item by position. Pinpoints are stripped of tags, have whitespace collapsed, and are capped atBIBLIOGRAPHY_BUILDER_MAX_LOCATOR_LENGTH(100). The response names thelayout.400bibliography_builder_formatter_no_note_layout.Tests
tests/fixtures/csl-styles/notes/are pinned byCslNoteGoldenTest. It renders each item with no pinpoint and with "12", and also checks:RestEdgeCasesTestcovers the route.format-styles.phpchecks the note goldens on every PHP version.Playground demo
No demo change in this PR. The editor doesn't use the new layout yet, so nothing changes for users. The next PR ("Cite in a footnote") uses it and adds a short OSCOLA essay with footnotes to the demo.
Docs
docs/csl-styles.mdgets a new "Full notes" section./formatline inCLAUDE.mdis extended.CHANGELOG.mdUnreleased gets an entry.docs/current-metrics.mdis updated.Generated by Claude Code