Skip to content

fix: keep HighWire full text in .fulltext-view - #404

Open
mvanhorn wants to merge 1 commit into
kepano:mainfrom
mvanhorn:fix/257-biorxiv-fulltext-view
Open

mvanhorn wants to merge 1 commit into
kepano:mainfrom
mvanhorn:fix/257-biorxiv-fulltext-view

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

.fulltext-view is now matched in the same ENTRY_POINT_ELEMENTS slot as [role="article"], below article and above main. Sharing that slot avoids a new entry, which would raise every earlier selector by 40 points over main. removeHiddenElements skips any element inside .fulltext-view and keeps its descendants, including sections that are themselves display:none. The HighWire fixture expects the introduction and results from that hidden view, and the nested-teaser fixture keeps the surrounding article paragraphs along with the inner preview.

Test plan

  • Ran npm test locally; it passed.
  • The bioRxiv full-text fixture was included in the test run.
  • The full npm test run passed.

Why

On bioRxiv and other HighWire pages such as medRxiv, reader extraction and clipping return the short abstract and omit the rest of the paper. The full text is in the page, but the captured result is only the summary card. HighWire keeps the inactive full-text view, and each section inside it, at display:none until that view is selected. removeHiddenElements deletes elements whose inline style matches those hidden patterns, so the .fulltext-view subtree is removed, and .fulltext-view was not an entry point, so the visible abstract article remained the content root.

Fixes #257

.fulltext-view is now matched in the same ENTRY_POINT_ELEMENTS slot as
[role="article"], below article and above main. Sharing that slot avoids
a new entry, which would raise every earlier selector by 40 points over
main. removeHiddenElements skips any element inside .fulltext-view and
keeps its descendants, including sections that are themselves
display:none. The HighWire fixture expects the introduction and results
from that hidden view, and the nested-teaser fixture keeps the
surrounding article paragraphs along with the inner preview.

Fixes kepano#257

This branch has not been deployed

No deployments
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.

Broken content capture on bioRxiv

1 participant