scieloorg / opac_schema

SciELO OPAC Schema.
1 stars 10 forks source link

Adiciona no modelo Article uma propriedade para exportar os dados do artigo em CSL-JSON. #103

Closed gitnnolabs closed 1 year ago

gitnnolabs commented 1 year ago

O que esse PR faz?

Adiciona no modelo Article uma propriedade para exportar os dados do artigo em CSL-JSON.

Onde a revisão poderia começar?

Verificando as alterações no modelo de artigo.

Como este poderia ser testado manualmente?

Execute os seguintes passos para testar manualmente:

python opac/manager.py shell

Article.objects.all()[0].csl_json

Retorno:

[{'id': 'CC38hzWWCpQj8Q47zzCGMwh', 'DOI': '10.21577/0100-4042.20170547', 'URL': 'http://dx.doi.org/10.1371/10.21577/0100-4042.20170547', 'author': [{'family': 'Guimarães', 'given': 'Anabrisa Ferreira'}, {'family': 'Vinhas', 'given': 'Ana Cláudia Andrade'}, {'family': 'Gomes', 'given': 'Angélica Ferraz'}, {'family': 'Souza', 'given': 'Luiz Humberto'}, {'family': 'Krepsky', 'given': 'Patrícia Baier'}], 'container-title': 'Scientific Electronic Library Online', 'container-title-short': 'SciELO', 'issue': 'Quím. Nova, 2020 43(7)', 'issued': {'date-parts': [[2020, 7]]}, 'page': '', 'publisher': 'Sociedade Brasileira de Química', 'title': 'ESSENTIAL OIL OF <i>CURCUMA LONGA</i> L. RHIZOMES CHEMICAL COMPOSITION, YIELD VARIATION AND STABILITY', 'title-short': 'ESSENTIAL OIL OF <i>CURCUMA LONGA</i> L. RHIZOMES CHEMICAL COMPOSITION, YIELD VARIATION AND STABILITY', 'type': 'research-article', 'volume': '43', 'abstract': 'Turmeric (Curcuma longa L.) is a medicinal plant that is cultivated worldwide. This study was conducted to evaluate the variability in the percentage and the chemical composition of volatile oils from 12 turmeric samples. Rhizomes of the turmeric plant were collected from three different producers in the Brazilian like savanna (Cerrado) habitat in the state of Bahia. The chemical composition of the oils derived from the rhizomes was analysed by thin-layer chromatography and GC-MS. The average oil content was 3.97% ± 0.61%, varying from 3.0% to 5.16%. There were differences between producers; however, all samples met the specification of the Brazilian Pharmacopoeia. Thin-layer chromatographic analysis revealed qualitative similarity in both oil and curcuminoid components among the samples. The major components identified in the oils by gas chromatography were ar-turmerone (40.00% ± 13.20%), α-turmerone (10.05% ± 2.90%) and curlone (22.73% ± 12.72%). Regarding stability, there was a difference between the essential oil percentages after 6 months, but the content was maintained adequate and the chromatographic profile remained similar. The vegetable raw material obtained from C. longa rhizomes produced in the western region of the state of Bahia met the quality requirement of the Brazilian Pharmacopoeia.', 'ISSN': '0100-4042'}]

Algum cenário de contexto que queira dar?

Essa implementação será utilizada como parâmetro para entrar com os dados no processador de CSL-JSON.

Screenshots

N/A

Quais são tickets relevantes?

https://github.com/scieloorg/opac/issues/1703 https://github.com/scieloorg/opac/issues/2098

Referências

https://citationstyles.org/ https://editor.citationstyles.org/about/ https://mclibrary.duke.edu/about/blog/2017-04-24/preparing-citations-endnote-apa-ama-chicago-styles https://gist.github.com/larsgw/e5e7e7a5552df67d4dab4bd9378e5412 https://github.com/inveniosoftware/citeproc-py-styles https://github.com/citation-style-language/schema/wiki/Data-Model-and-Mappings https://manubot.org/

robertatakenaka commented 1 year ago

@gitnnolabs adicionar conteúdo às seções Quais são tickets relevantes? e Referências

gitnnolabs commented 1 year ago

Sobre a documentação pelo que percebi é algo bastante novo(não tem muita documentação), portanto utilizei o próprio esquema.

Adicionei o esquema no próprio código veja: https://github.com/scieloorg/opac_schema/pull/103/files#diff-0c5c3e88d760a376fe202f435011e8d40fb2efe18bd4ecbaae2de389993a38cfR916