Skip to content

Commit

Permalink
crosref_parser: accept unknown document_types as articles
Browse files Browse the repository at this point in the history
  • Loading branch information
pazembrz committed Apr 20, 2021
1 parent 911798c commit 4b43dc0
Show file tree
Hide file tree
Showing 3 changed files with 761 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hepcrawl/parsers/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def parse(self):
@property
def document_type(self):
doc_type = self.record.get("type")
return DOC_TYPE_MAP[doc_type]
return DOC_TYPE_MAP.get(doc_type, "article")

@property
def title(self):
Expand Down
Loading

0 comments on commit 4b43dc0

Please sign in to comment.