Skip to content

Crossref work lookup returns raw JATS markup in the abstract #13242

Closed

Description

@kaijakagi-sys

get_crossref_work in plugins/omi-crossref-app/main.py returns raw JATS tags in its plain-text result. Crossref's public response for 10.7554/eLife.45374 contains <jats:p>…</jats:p> in message.abstract; the handler calls clean(), which only applies html.unescape(...).strip(), then truncates the markup-bearing value to 1,200 characters. Executing the current handler and helpers against that captured public response reproduces Abstract: <jats:p>A number of studies…</jats:p> in the returned result. This is a tool-response reproduction, not a claim about deployed UI rendering. The bounded reproduction executed the production function bodies with the provider response replaced by a fixture and framework model constructors replaced by simple objects; the full HTTP route has not been verified.

Could this be considered for a suggested $50 bounty under the contribution guide's bounty-proposal invitation? The proposed scope is a small plain-text normalization fix before the output cap, preserving paragraph separation and literal text/entity semantics (including escaped angle brackets), with focused hermetic regression coverage for this real Crossref response and inline/multi-paragraph markup. The amount and eligibility are unconfirmed; I would wait for scope/reward confirmation before implementing.

@josancamon19 @kodjima33

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 9, 2026
  2. Nukeys commented on Sep 11, 2026

    @Nukeys
    Contributor

    Opened PR #13525. Crossref abstracts have JATS tags stripped.

  3. added a commit that references this issue on Sep 12, 2026
    1fdbf1e
  4. moved this from In progress to In review in omi TODO / bountieson Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions