Skip to content

fix(europepmc): read the journal name from journalInfo.journal.title#105

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/europepmc-journal-name
Jul 6, 2026
Merged

fix(europepmc): read the journal name from journalInfo.journal.title#105
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/europepmc-journal-name

Conversation

@aayambansal

Copy link
Copy Markdown
Member

What

The Europe PMC connector hardcodes resultType=core, whose records nest the journal name under journalInfo.journal.title. toHit read a non-existent top-level journalTitle, so .filter(Boolean) silently dropped the undefined and the venue never appeared in the summary meta line (the fallback shown when a record has no abstract).

Fix

Resolve the venue through a small journalName() helper that reads the nested journalInfo.journal.title and falls back to the top-level journalTitle for older/lite-shaped records.

Tests

Adds test/science/europepmc.test.ts covering the nested field, the top-level fallback, nested-preferred precedence, and the no-journal case.

The connector hardcodes resultType=core, whose records nest the journal
under journalInfo.journal.title. toHit read a non-existent top-level
journalTitle, so .filter(Boolean) silently dropped the undefined and the
venue never appeared in the summary meta line (the fallback shown when a
record has no abstract).

Resolve the venue via a journalName() helper that reads the nested field
and falls back to the top-level journalTitle for lite-shaped records.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 6, 2026 3:18pm

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit b289853 into main Jul 6, 2026
12 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/europepmc-journal-name branch July 6, 2026 15:20
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