Skip to content

[pyos][bug] Crossref names not handled correctly #22

@sneakers-the-rat

Description

@sneakers-the-rat

Part of: pyOpenSci/software-submission#267 (comment)

See the crossref API swagger docs: https://api.crossref.org/swagger-ui/index.html#/Works/get_works__doi_

The authors are retrieved from the metadata using the given and family keys (with typical LLM code egregious fallback behavior) -

OneCite/onecite/pipeline.py

Lines 381 to 382 in 12b1dea

'authors': [f"{a.get('given', '')} {a.get('family', '')}"
for a in work.get('author', [])],

however the crossref api can also return the name in a single name field or as a sequence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions