Skip to content

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

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

ORxD page: UKRN logo, citations, discipline leads, per-discipline analytics#880
LukasWallrich wants to merge 11 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 provides the preprint citation (Farran et al., 2020, 2026 edition) and the web-resource citation, each with a copy button. scripts/build_disciplines_citation.py generates the web citation from the Tenzing contributor sheet. All 55 authors follow the numeric “Order in publication” column, starting Silverstein, Wallrich, Farran, Gilmore and Davies.

Discipline / field leads. The optional Leads columns remain in the source sheet and generated data. Both field and discipline lead labels are hidden by show_leads = false in content/disciplines/_index.md. Set it to true when the names are ready to display.

Resources. The document-to-sheet converter preserves descriptive titles and embedded hyperlinks, retains sheet-only metadata, and backs up the sheet before refreshing it. The page contains 716 resources across 40 disciplines, all with links.

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

Validation: Hugo builds pass with leads disabled and enabled; the rendered web citation matches all 55 publication-order values. Browser validation of the production build confirms that 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 19 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-11 13:54:37 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

LukasWallrich and others added 7 commits September 2, 2026 17:37
… 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