Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pymed/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class PubMedArticle(object):
"title",
"abstract",
"keywords",
"publication_type",
"journal",
"publication_date",
"authors",
Expand Down Expand Up @@ -64,6 +65,10 @@ def _extractJournal(self: object, xml_element: TypeVar("Element")) -> str:
path = ".//Journal/Title"
return getContent(element=xml_element, path=path)

def _extractPublicationType(self: object, xml_element: TypeVar("Element")) -> str:
path = ".//PublicationType"
return tuple(getContent(element=xml_element, path=path).splitlines())

def _extractAbstract(self: object, xml_element: TypeVar("Element")) -> str:
path = ".//AbstractText"
return getContent(element=xml_element, path=path)
Expand Down Expand Up @@ -130,6 +135,7 @@ def _initializeFromXML(self: object, xml_element: TypeVar("Element")) -> None:
self.title = self._extractTitle(xml_element)
self.keywords = self._extractKeywords(xml_element)
self.journal = self._extractJournal(xml_element)
self.publication_type = self._extractPublicationType(xml_element)
self.abstract = self._extractAbstract(xml_element)
self.conclusions = self._extractConclusions(xml_element)
self.methods = self._extractMethods(xml_element)
Expand Down
2 changes: 1 addition & 1 deletion pymed/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.10"
__version__ = "0.9.0"