-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrige o retorno de get_main_abstract e de _get_sub_article_abstracts #750
Conversation
…ain_abstract e _get_sub_article_abstracts
abstract_node = None | ||
for node in self.xmltree.findall(".//article-meta//abstract"): | ||
if node.get("abstract-type") != "graphical": | ||
abstract_node = node | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel use no lugar das linhas 267 a 271
try:
abstract_node = self.xmltree.xpath(".//abstract[not(@abstract-type)]")[0]
except IndexError:
abstract_node = None
abstract_node = None | ||
for sub_article in self.xmltree.xpath(".//sub-article"): | ||
for node in self.xmltree.findall(".//abstract"): | ||
if node.get("abstract-type") != "graphical": | ||
abstract_node = node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for sub_article in self.xmltree.xpath(".//sub-article"):
try:
abstract_node = sub_article.xpath(".//abstract[not(@abstract-type)]")[0]
except IndexError:
abstract_node = None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fazer as correções
…act e _get_sub_article_abstracts
O que esse PR faz?
Implementa codição if para ignorar abstracts do tipo gráfico em get_main_abstract e _get_sub_article_abstracts
Onde a revisão poderia começar?
pelos commits
Como este poderia ser testado manualmente?
Algum cenário de contexto que queira dar?
N/A
Screenshots
N/A
Quais são tickets relevantes?
#740
Referências
N/A