diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 13:42:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 13:42:59 -0800 |
commit | 4f228b1c9ece8efe0635e44cb5fdc7ecc5c66ec7 (patch) | |
tree | c47478d5d5bfe1baa07a6c889c59d650197f48f8 /fatcat_scholar/issue_db.py | |
parent | 9abb032ad65356b14efdc09c599ea63234266c46 (diff) | |
download | fatcat-scholar-4f228b1c9ece8efe0635e44cb5fdc7ecc5c66ec7.tar.gz fatcat-scholar-4f228b1c9ece8efe0635e44cb5fdc7ecc5c66ec7.zip |
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.
Diffstat (limited to 'fatcat_scholar/issue_db.py')
-rw-r--r-- | fatcat_scholar/issue_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |