From 0cbfab6b85d1f098686edd62381ffffc901daece Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 16:25:21 -0700 Subject: matching: include contribs,files in release entity This makes several downstream applications simpler, like showing PDF links without an additional fatcat API fetch. The 'contrib' entities may be required as part of bibliographic matching (checking the creator names as well as the release-local versions of the name) In theory we could add webcaptures,filesets as well, but those are still rare, and occasionally result in very large sub-documents. --- fuzzycat/matching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fuzzycat/matching.py') diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py index bcda46d..b358899 100644 --- a/fuzzycat/matching.py +++ b/fuzzycat/matching.py @@ -207,7 +207,7 @@ def retrieve_entity_list( if entity_type == ReleaseEntity: for id in ids: try: - re = api.get_release(id, hide="refs,abstracts", expand="container") + re = api.get_release(id, hide="refs,abstracts", expand="container,contribs,files") result.append(re) except ApiException as exc: if exc.status == 404: -- cgit v1.2.3