ORxD page: UKRN logo, citations, discipline leads, per-discipline analytics - #880
Open
LukasWallrich wants to merge 3 commits into
Open
ORxD page: UKRN logo, citations, discipline leads, per-discipline analytics#880LukasWallrich wants to merge 3 commits into
LukasWallrich wants to merge 3 commits into
Conversation
…acking - Show the UKRN logo beside the intro as the resource's supporting partner. - "How to cite" box with the preprint and a citation for the web resource; the latter is generated from the Tenzing contributor sheet by scripts/build_disciplines_citation.py into data/disciplines_citation.json. - Optional Leads column on the Fields and Disciplines sheet tabs, exported as "leads" and rendered under the field / discipline heading. - GA4 events: discipline_view (discipline, field, anchor, source) whenever a discipline accordion is opened, discipline_link_copied on the copy button. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjpMWrxmVc4hzxEkhJ54hB
Contributor
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
Contributor
📝 Spell Check ResultsFound 4 potential spelling issue(s) when checking 12 changed file(s): 📄
|
| Line | Issue |
|---|---|
| 87 | tabEl ==> table |
| 88 | tabEl ==> table |
| 90 | tabEl ==> table |
| 92 | tabEl ==> table |
ℹ️ How to address these issues:
- Fix the typo: If it's a genuine typo, please correct it.
- Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to
.codespell-ignore.txt - False positive: If this is a false positive, please report it in the PR comments.
🤖 This check was performed by codespell
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjpMWrxmVc4hzxEkhJ54hB
Contributor
Author
|
✅ Staging Deployment Status This PR has been successfully deployed to staging as part of an aggregated deployment. Deployed at: 2026-09-02 22:22:19 UTC The staging site shows the combined state of all compatible open PRs. |
… copy quoting - Anchors are the bare discipline slug (#chemistry); old f<N>-<slug> links are mapped onto it on load. - Logo block: short single-line caption, no name line. - Citation strings are emitted as JS string literals; the copy button no longer wraps the text in quotes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WjpMWrxmVc4hzxEkhJ54hB
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.
Addresses the UKRN / ORxD requests on the Open Research Across Disciplines page (
/disciplines/).UKRN logo. Shown beside the intro with the caption "Developed with the support of", linking to ukrn.org.
How to cite. The attribution box lists two citations with copy buttons: the preprint (Farran et al., 2020, 2026 edition) and a citation for the web resource itself. The web citation is generated by
scripts/build_disciplines_citation.pyfrom the Tenzing contributor sheet intodata/disciplines_citation.json. Author order: rows with a number in the sheet's "Order in publication" column first, then everyone else alphabetically by surname. While that column is empty, the script uses a provisional lead list (Farran, Silverstein, Wallrich, Ameen, Misheva, Gilmore, Jacobs, Davies), which the project leads should confirm or replace by filling in the sheet.Discipline / field leads. The Fields and Disciplines sheet tabs have an optional
Leadscolumn (added, currently empty). Values are exported asleadsand rendered as "Discipline lead(s): …" when a discipline is opened, or "Field lead(s): …" under the field summary.Per-discipline tracking. Each discipline already has a shareable link (
/disciplines/#chemistry). Opening a discipline sends a GA4 eventdiscipline_viewwithdiscipline,field,anchor, andsource(hash,sidebar,click); copying a link sendsdiscipline_link_copied. To break these down by discipline in GA4 reports,disciplinemust be registered as an event-scoped custom dimension (Admin → Custom definitions).Verified with a production build served locally: both events land in
dataLayerwith the expected parameters, once per discipline per page load.🤖 Generated with Claude Code
https://claude.ai/code/session_01WjpMWrxmVc4hzxEkhJ54hB