From 07fc1f52cf3a4aeaa953de52e586a9dae999f418 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 2 Jun 2021 00:37:55 -0700 Subject: bugfix: pass full crossref obj, not just 'record' --- fatcat_scholar/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index daccfd4..409e7a2 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -805,7 +805,7 @@ def refs_from_heavy(heavy: IntermediateBundle) -> Sequence[RefStructured]: crossref_release = [ r for r in heavy.releases if r.ident == heavy.crossref["release_ident"] ][0] - crossref_refs = refs_from_crossref(heavy.crossref["record"], crossref_release) + crossref_refs = refs_from_crossref(crossref_release, heavy.crossref) # TODO: better logic for prioritizing/combining references from multiple sources? # TODO: test coverage -- cgit v1.2.3