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

Melhoria no JournalSerializer: Cria Função get_scielo_journal para Mostrar ScieloJournal #780

Merged
merged 9 commits into from
Jul 24, 2024

Conversation

samuelveigarangel
Copy link
Collaborator

@samuelveigarangel samuelveigarangel commented Jun 19, 2024

O que esse PR faz?

Cria Função get_scielo_journal para Mostrar ScieloJournal.

Onde a revisão poderia começar?

pelos commits

Como este poderia ser testado manualmente?

acessa: 0.0.0.0:8009/api/v1/journal/?title=ACIMED

Algum cenário de contexto que queira dar?

N/A

Screenshots

API Journal (dados de journal_history Fictícios)

        {
            "official": {
                "title": "Revista de Saúde Pública",
                "issn_print": "0034-8910",
                "issn_electronic": "1518-8787",
                "iso_short_title": "Rev. saúde pública",
                "issnl": null
            },
            "scielo_journal": [
                {
                    "collection_acron": "spa",
                    "issn_scielo": "0034-8910",
                    "journal_acron": "rsp",
                    "journal_history": [
                        {
                            "day": null,
                            "month": "08",
                            "year": "2001",
                            "event_type": "ADMITTED",
                            "interruption_reason": null
                        },
                        {
                            "day": "03",
                            "month": "01",
                            "year": "2022",
                            "event_type": "ADMITTED",
                            "interruption_reason": "ceased"
                        }
                    ]
                },
                {
                    "collection_acron": "scl",
                    "issn_scielo": "0034-8910",
                    "journal_acron": "rsp",
                    "journal_history": [
                        {
                            "day": "03",
                            "month": "02",
                            "year": "2009",
                            "event_type": "ADMITTED",
                            "interruption_reason": "not-open-access"
                        },
                        {
                            "day": null,
                            "month": "04",
                            "year": "1998",
                            "event_type": "ADMITTED",
                            "interruption_reason": null
                        }
                    ]
                }
            ],
            "title": "Revista de Saúde Pública",
            "short_title": "Rev. Saúde Pública",
            "acronym": "rsp",
            "journal_use_license": {
                "license_type": "BY"
            },
            "publisher": [
                {
                    "name": "Faculdade de Saúde Pública da Universidade de São Paulo"
                }
            ],
            "owner": [
                {
                    "name": "Faculdade de Saúde Pública da Universidade de São Paulo"
                },
                {
                    "name": "Faculdade de Saúde Pública da Universidade de São Paulo"
                }
            ],
            "subject_descriptor": [
                {
                    "value": "MICROBIOLOGIA"
                },
                {
                    "value": "SAUDE COLETIVA"
                },
                {
                    "value": "SAUDE PUBLICA"
                }
            ],
            "subject": [
                {
                    "value": "Health Sciences"
                }
            ],
            "text_language": [
                {
                    "code2": "en",
                    "name": "English"
                },
                {
                    "code2": "pt",
                    "name": "Português"
                },
                {
                    "code2": "es",
                    "name": "Español"
                }
            ]
        }

Quais são tickets relevantes?

#771

Referências

N/A

@samuelveigarangel samuelveigarangel changed the title Issue 771 Melhoria no JournalSerializer: Cria Função get_scielo_journal para Mostrar ScieloJournal Jun 20, 2024

journal_dict = {}

for item in results:
Copy link
Member

Choose a reason for hiding this comment

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

@samuelveigarangel precisa da identificação da collection

@samuelveigarangel samuelveigarangel merged commit 1aa4724 into scieloorg:main Jul 24, 2024
3 of 5 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