Skip to content

Commit

Permalink
hindawi: updates property key for volume year
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Aug 30, 2024
1 parent 2137343 commit 5a98322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dags/hindawi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
6 changes: 3 additions & 3 deletions tests/units/hindawi/test_hindawi_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
],
],
Expand Down

0 comments on commit 5a98322

Please sign in to comment.