Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #25 from MITLibraries/pubIdType-fix
Browse files Browse the repository at this point in the history
Handle publicationIDType error
  • Loading branch information
ehanson8 committed Sep 24, 2020
2 parents f3c31d4 + 2ff4d5f commit ed51c21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hoard/models.py
Expand Up @@ -203,7 +203,9 @@ def asdict(self) -> dict:
"publicationURL",
],
)
for publication in publications["value"]:
for publication in [
p for p in publications["value"] if "publicationIDType" in p
]:
publication["publicationIDType"]["typeClass"] = "controlledVocabulary"
fields.append(publications)
if self.series is not None:
Expand Down

0 comments on commit ed51c21

Please sign in to comment.