Skip to content

Commit d6d03f2

Browse files
committed
Add a pub_date field to the bib dictionary
1 parent cd260d6 commit d6d03f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scholarly/publication_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ def fill(self, publication: Publication)->Publication:
313313
'YYYY/M/D',
314314
'YYYY/MM/D']
315315
publication['bib']['pub_year'] = arrow.get(val.text, patterns).year
316+
publication['bib']['pub_date'] = val.text
316317
elif key == 'description':
317318
# try to find all the gsh_csp if they exist
318319
abstract = val.find_all(class_='gsh_csp')

0 commit comments

Comments
 (0)