Commit 73b5d75
committed
feat(research): equal-contribution and PI superscript markers
Extends the conditional sup system in HeadingResearch beyond the existing
`*` (corresponding) + numeric affiliation indices to cover the two other
academic conventions that come up on multi-author papers:
† Equal contribution — `equalContribution: true`
‡ Principal investigator — `principalInvestigator: true`
Both new fields are optional booleans on the Author type. Existing
entries are unaffected.
Suppression rules (each marker only renders when it disambiguates):
* shows when 2+ authors AND ≥1 corresponding
† shows when 2+ authors AND ≥2 flagged equal-contribution (a single
"equal" author is meaningless)
‡ shows when 2+ authors AND ≥1 PI
¹² shows when 2+ affiliations
Marker order on each author follows academic typesetting convention:
symbol markers (*†‡) first, then numeric affiliation indices. Each <sup>
keeps its cursor-help + native title tooltip ("Corresponding author",
"Equal contribution", "Principal investigator", or the resolved
affiliation name).
The previous standalone "*Corresponding author" caption is replaced by a
single combined caption line that stacks all active markers separated by
` · ` — e.g. "*Corresponding author · †Equal contribution · ‡Principal
investigator" — kept tight and rendered only when at least one symbol
marker is showing.
Documented the new flags + the combined caption behavior in CLAUDE.md
and README.md (research-authoring section now has a flag/glyph/rule
table). Frontmatter example shows the two new fields commented out so a
fork sees them and can opt in.
Verified locally: yarn type-check, yarn lint, yarn test (48/48),
yarn build (50 routes) — all clean.1 parent e51fe44 commit 73b5d75
4 files changed
Lines changed: 64 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
378 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
379 | 390 | | |
380 | 391 | | |
381 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
109 | 121 | | |
110 | 122 | | |
111 | 123 | | |
| |||
147 | 159 | | |
148 | 160 | | |
149 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
150 | 172 | | |
151 | 173 | | |
152 | 174 | | |
| |||
185 | 207 | | |
186 | 208 | | |
187 | 209 | | |
188 | | - | |
| 210 | + | |
189 | 211 | | |
190 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
191 | 221 | | |
192 | 222 | | |
193 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
0 commit comments