From 4f228b1c9ece8efe0635e44cb5fdc7ecc5c66ec7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 30 Nov 2021 13:42:57 -0800 Subject: schema: use container redirect as ident if defined This is to handle containers which have been merged (redirected), but the release entities have not be updated to point to the new "primary" container yet. --- fatcat_scholar/issue_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/issue_db.py') diff --git a/fatcat_scholar/issue_db.py b/fatcat_scholar/issue_db.py index 8771f7f..4d6fe04 100644 --- a/fatcat_scholar/issue_db.py +++ b/fatcat_scholar/issue_db.py @@ -274,7 +274,7 @@ class IssueDB: pub_type=meta.get("pub_type"), publisher=meta.get("publisher"), container_issnl=container and container.issnl, - container_ident=container and container.ident, + container_ident=container and (container.redirect or container.ident), wikidata_qid=container and container.wikidata_qid, ) if isinstance(row.publisher, list): -- cgit v1.2.3