Skip to content
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

Separar a extração de dados da tag <contrib-group> nas seções <article-meta> e <sub-article> #751

Closed

Conversation

samuelveigarangel
Copy link
Collaborator

@samuelveigarangel samuelveigarangel commented Nov 6, 2024

O que esse PR faz?

Separar a extração de dados da tag nas seções e

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

image

Quais são tickets relevantes?

#739

Referências

N/A

@@ -22,9 +22,16 @@ def collab(self):
return None

@property
def contribs(self):
def contribs_in_article_meta(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelveigarangel mantenha o @Property contribs, senão isso quebrará vários códigos.
Apenas crie o que você sentiu falta

def contribs_in_sub_article(self):
return self.contribs(xpath_contrib=self.node.xpath(".//sub-article//contrib"))

def contribs(self, xpath_contrib):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelveigarangel use outro nome para o método, mantenha o contribs original como property

Copy link
Member

@robertatakenaka robertatakenaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faça as correções

@samuelveigarangel samuelveigarangel changed the title [wip] Separar a extração de dados da tag <contrib-group> nas seções <article-meta> e <sub-article> Separar a extração de dados da tag <contrib-group> nas seções <article-meta> e <sub-article> Nov 6, 2024

@property
def contribs_in_sub_article(self):
return self._extract_contribs(".//sub-article//contrib")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelveigarangel o problema aqui é que você não está distinguindo de que sub-article é cada contrib. Altere de forma que seja possível selecionar contrib por sub-article.

Copy link
Member

@robertatakenaka robertatakenaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelveigarangel verifique o comentário

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants