aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-06-02 00:37:55 -0700
committerBryan Newbold <bnewbold@archive.org>2021-06-02 00:38:51 -0700
commit07fc1f52cf3a4aeaa953de52e586a9dae999f418 (patch)
tree5f434a812145d39db8e6de50e1b2da4a7798b1ec
parent58734fbe4121ed65c8ad8853acf8e7dd1780e9cf (diff)
downloadfatcat-scholar-07fc1f52cf3a4aeaa953de52e586a9dae999f418.tar.gz
fatcat-scholar-07fc1f52cf3a4aeaa953de52e586a9dae999f418.zip
bugfix: pass full crossref obj, not just 'record'
-rw-r--r--fatcat_scholar/transform.py2
1 files changed, 1 insertions, 1 deletions
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