Skip to content

Conversation

@samuelveigarangel
Copy link
Contributor

O que esse PR faz?

fix: corrige extração de nomes de patrocinadores no método append_funding_data

Onde a revisão poderia começar?

pelos commits

Como este poderia ser testado manualmente?

ipython

import json
import requests
from articlemeta.export_crossref import XMLFundingDataPipe
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=S0102-86502024000100201")
content  = json.loads(response.content)
article = Article(content)
xmlcrossref = create_xmlcrossref_with_n_journal_article_element(['pt', 'en', 'es'])
data = [article, xmlcrossref]
raw, xml = XMLFundingDataPipe().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?

#286

Referências

N/A

@robertatakenaka robertatakenaka merged commit 8d71c4d into scieloorg:master Dec 20, 2024
1 check 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