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

Verifica a existência de resumo traduzido na classe XMLArticleAbstracttPipe; #290

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

samuelveigarangel
Copy link
Contributor

O que esse PR faz?

Verifica a existência de resumo traduzido na classe XMLArticleAbstracttPipe;

Onde a revisão poderia começar?

pelos commits

Como este poderia ser testado manualmente?

import json
import requests
from articlemeta.export_crossref import XMLArticleAbstractPipe
from articlemeta.export import CustomArticle as Article
from tests.test_export_crossref import create_xmlcrossref_with_n_journal_article_element
response = requests.get("https://articlemeta.scielo.org/api/v1/article/?code=S2175-91462024000100401")
content  = json.loads(response.content)
article = Article(content)
xmlcrossref = create_xmlcrossref_with_n_journal_article_element(['en'])
data = [article, xmlcrossref]
raw, xml = XMLArticleAbstractPipe().transform(data)
from lxml import etree as ET
ET.tostring(xml)

Algum cenário de contexto que queira dar?

N/A

Screenshots

N/A

Quais são tickets relevantes?

#283

Referências

N/A

@robertatakenaka robertatakenaka merged commit c6562aa into scieloorg:master Dec 17, 2024
2 checks passed
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