diff --git a/dags/hindawi/parser.py b/dags/hindawi/parser.py index ccd29bfb..a3b706f7 100644 --- a/dags/hindawi/parser.py +++ b/dags/hindawi/parser.py @@ -216,7 +216,7 @@ def _get_publication_info(self, article): "journal_volume": journal.find( "./ns0:subfield/[@code='v']", self.prefixes ).text, - "journal_year": journal.find( + "year": journal.find( "./ns0:subfield/[@code='y']", self.prefixes ).text, } diff --git a/tests/units/hindawi/test_hindawi_parser.py b/tests/units/hindawi/test_hindawi_parser.py index 8fa26ea4..09baf913 100644 --- a/tests/units/hindawi/test_hindawi_parser.py +++ b/tests/units/hindawi/test_hindawi_parser.py @@ -165,21 +165,21 @@ def parsed_articles(hindawi_parser, articles): { "journal_title": "Advances in High Energy Physics", "journal_volume": "2019", - "journal_year": "2019", + "year": "2019", } ], [ { "journal_title": "Advances in High Energy Physics", "journal_volume": "2022", - "journal_year": "2022", + "year": "2022", } ], [ { "journal_title": "Advances in High Energy Physics", "journal_volume": "2022", - "journal_year": "2022", + "year": "2022", } ], ],