Skip to content

DatasetCard byline shows uploader instead of authors #22

Closed

Description

@neuromechanist

Symptom

Discover cards show "BY YAHYA" in the footer — that's the uploader, not the authors. Should prefer the dataset's actual authors when available.

Scope

  • src/components/DatasetCard.astro: when dataset.authors is a non-empty CSV, render "by FirstAuthor et al." (or just "by FirstAuthor" when there's only one). Fall back to "by " when no authors are populated. Fall back to "by NEMAR" when neither.

The detail page's right rail already lists all authors, so no change needed there.

Format

  • 1 author: by Daniel G. Wakeman
  • 2+: by Daniel G. Wakeman et al.
  • No authors: by yahya (existing behavior; will trigger for unenriched on* until backend backfills)
  • No authors + no owner: by NEMAR

Keep the existing uppercase styling for now; revisit if author names look ugly in caps.

Acceptance

  • Cards for ds007222 (Jonel Morris et al.) -> by Jonel Morris et al.
  • Cards for unenriched on* (catalog authors empty) -> fall back to by yahya
  • Unit test for the helper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions