Skip to content

Link author-year citations in description/comment; flag missing references#58

Merged
Robbie1977 merged 1 commit into
mainfrom
feature/linkify-pub-citations
Jun 27, 2026
Merged

Link author-year citations in description/comment; flag missing references#58
Robbie1977 merged 1 commit into
mainfrom
feature/linkify-pub-citations

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

What

Link known author-year publication citations inside the definition and comment prose, and flag cited pubs that are missing from the term's References.

Previously, only the appended def_pubs microref list was linked; in-sentence citations like "Wolff et al., 2015" stayed plain text. This builds a {author-year -> FBrf} map from the term's pubs (def_pubspub_synpubs) and wraps matching mentions in markdown links the panel renders. Handles both Author, 2015 and Author (2015) forms; normalises to [Author, 2015](FBrf…).

Citations with no matching pub id are logged via logger.warning — they should also appear in the term's References, so a miss flags a missing has_reference edge to investigate.

Verified (live blobs)

  • fan-shaped body FBbt_00003679: description + comment citations linked; flagged missing — desc: Hanesch et al., 1998; comment: Boyan and Williams, 2011, Ito and Awasaki, 2008, Young and Armstrong, 2010.
  • medulla FBbt_00003748: Nern et al. (2025) (paren form) linked to FBrf0262545.
  • Safety sweep across neuron/template/pub/neuron-class/EB: balanced brackets, no mangling, no crashes.

@Robbie1977 Robbie1977 merged commit 9493e72 into main Jun 27, 2026
3 of 4 checks passed
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.

1 participant