Skip to content

Commit

Permalink
Merge pull request #1 from ritvikvipra/fix-pmid-parsing
Browse files Browse the repository at this point in the history
PMID parsing issue
  • Loading branch information
ritvikvipra authored May 9, 2020
2 parents f2f79de + ce854fe commit ae990d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymed/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(
self.__setattr__(field, kwargs.get(field, None))

def _extractPubMedId(self: object, xml_element: TypeVar("Element")) -> str:
path = ".//ArticleId[@IdType='pubmed']"
path = ".//PubmedData/ArticleIdList/ArticleId[@IdType='pubmed']"
return getContent(element=xml_element, path=path)

def _extractTitle(self: object, xml_element: TypeVar("Element")) -> str:
Expand Down

0 comments on commit ae990d2

Please sign in to comment.