Skip to content

ORxD page: UKRN logo, citations, discipline leads, per-discipline analytics - #880

Open
LukasWallrich wants to merge 3 commits into
mainfrom
orxd-ukrn-updates
Open

ORxD page: UKRN logo, citations, discipline leads, per-discipline analytics#880
LukasWallrich wants to merge 3 commits into
mainfrom
orxd-ukrn-updates

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

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.py from the Tenzing contributor sheet into data/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 Leads column (added, currently empty). Values are exported as leads and 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 event discipline_view with discipline, field, anchor, and source (hash, sidebar, click); copying a link sends discipline_link_copied. To break these down by discipline in GA4 reports, discipline must be registered as an event-scoped custom dimension (Admin → Custom definitions).

Verified with a production build served locally: both events land in dataLayer with the expected parameters, once per discipline per page load.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WjpMWrxmVc4hzxEkhJ54hB

…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
@LukasWallrich
LukasWallrich requested a review from a team as a code owner September 2, 2026 14:01
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

📝 Spell Check Results

Found 4 potential spelling issue(s) when checking 12 changed file(s):

📄 static/js/clusters-page.js

Line Issue
87 tabEl ==> table
88 tabEl ==> table
90 tabEl ==> table
92 tabEl ==> table

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@LukasWallrich

LukasWallrich commented Sep 2, 2026

Copy link
Copy Markdown
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
Staging URL: https://staging.forrt.org

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
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