Skip to content

feat: use paper_id for artifact URL lookups#13

Merged
vahldiek merged 1 commit into
mainfrom
feat/paper-id-linkage
May 16, 2026
Merged

feat: use paper_id for artifact URL lookups#13
vahldiek merged 1 commit into
mainfrom
feat/paper-id-linkage

Conversation

@vahldiek

Copy link
Copy Markdown
Member

Summary

Update profile page JS to use paper_id-based artifact URL lookups instead of title-based matching.

Changes

  • Add artifactByPaperId map built from artifacts.json paper_id field
  • Add getArtifactUrl(paper) helper: looks up by paper.id first, falls back to normalizeTitle() for backward compatibility
  • Institution profile uses getPapers() + getArtifactUrl() instead of iterating embedded p.papers with title matching
  • Author profile papers table uses getArtifactUrl() instead of direct artifactUrlMap title lookup

Dependencies

Requires reprodb-pipeline v0.2.0 data format (ReproDB/reprodb-pipeline PR with paper_id in artifacts.json and paper_ids in author_profiles.json).

Backward Compatibility

The getArtifactUrl() helper falls back to title-based lookup when paper_id is not present, so the website works with both old and new data formats during the transition.

- Add artifactByPaperId map built from artifacts.json paper_id field
- Add getArtifactUrl() helper: paper_id lookup with title fallback
- Institution profile uses getPapers() + getArtifactUrl() instead of
  iterating embedded p.papers with title-based matching
- Requires reprodb-pipeline v0.2.0 data format
@vahldiek vahldiek merged commit 70f1b9b into main May 16, 2026
3 checks passed
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