Take access information into account
This commit is contained in:
1 parent
fa4981693c
commit
3fff0bcf0d
1 file changed
+3
@@ -96,6 +96,7 @@ class PublicationResult:
|
||||
year: int
|
||||
pages: Optional[Tuple[int, int]]
|
||||
dblp_doi: Optional[str] = None
|
||||
access: Optional[str] = None
|
||||
authors: List[Tuple[str,str]] = field(default_factory=list)
|
||||
urls: List[str] = field(default_factory=list)
|
||||
|
||||
@@ -195,6 +196,7 @@ class PublicationResult:
|
||||
|
||||
# TODO Parse URLs ('ee')
|
||||
doi = None if not 'doi' in info else info['doi']
|
||||
access = None if not 'access' in info else info['access']
|
||||
|
||||
return cls(
|
||||
key=info['key'],
|
||||
@@ -202,6 +204,7 @@ class PublicationResult:
|
||||
year=int(info['year']),
|
||||
pages=pages,
|
||||
dblp_doi=doi,
|
||||
access = access,
|
||||
authors=[(author['@pid'], html.unescape(author['text'])) for author in authors],
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user