Skip to content

Commit f3e5763

Browse files
Refatoração dos painéis do JournalProxyEditor com mapeamento de seções (#1314)
* refactor: organiza e mapeia campos de JournalProxyEditor para Seções SciELO Este commit reorganiza extensivamente a estrutura de painéis da classe JournalProxyEditor em 'journal/proxys.py'. O objetivo principal foi alinhar o código-fonte com a numeração e nomenclatura das seções do Guia SciELO (ex: Ficha Bibliográfica, Política Editorial, Instruções aos Autores). Principais alterações: - Adição de comentários numerados (ex: # about_the_journal - 08) para mapear cada campo à sua seção correspondente no template/guia. - Comentários em blocos de campos redundantes ou que não serão editados diretamente via proxy, visando limpar a interface administrativa. - Reordenação de campos dentro dos painéis para seguir a sequência lógica da documentação oficial. - Inclusão de novos InlinePanels específicos (como 'ethics' no bloco de ciência aberta e 'artificial_intelligence' nas políticas). - Habilitação do campo 'journal_url' e desativação de 'related_journal_urls'. Essas mudanças facilitam a manutenção do sistema e garantem que o preenchimento dos dados do periódico siga o fluxo esperado pela rede SciELO. * Adiciona journal/migrations/0059_journalproxyadminonly.py * Corrige o nome do campo open_science_form_files
1 parent 9246072 commit f3e5763

2 files changed

Lines changed: 163 additions & 47 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 5.2.7 on 2026-02-08 01:08
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("journal", "0058_rename_journal_inline_panel_related_names"),
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name="JournalProxyAdminOnly",
15+
fields=[],
16+
options={
17+
"verbose_name": "Journal (Admin Only)",
18+
"verbose_name_plural": "Journals (Admin Only)",
19+
"proxy": True,
20+
"indexes": [],
21+
"constraints": [],
22+
},
23+
bases=("journal.journal",),
24+
),
25+
]

journal/proxys.py

Lines changed: 138 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,169 +7,260 @@
77

88
class JournalProxyEditor(Journal):
99
panels_titles = [
10+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - F - Ano de criação do periódico / ISSN
1011
AutocompletePanel("official", read_only=True),
12+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - A - Título do periódico
1113
FieldPanel("title", read_only=True),
14+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - B - Título abreviado do periódico
1215
FieldPanel("short_title"),
13-
InlinePanel("other_titles", label=_("Other titles")),
16+
# InlinePanel("other_titles", label=_("Other titles")),
1417
]
1518

1619
panels_scope_and_about = [
17-
InlinePanel("mission", label=_("Mission")),
20+
# InlinePanel("mission", label=_("Mission")),
21+
22+
# SOBRE O PERIÓDICO - 01 - brief history
1823
InlinePanel("history", label=_("Brief History")),
24+
25+
# SOBRE O PERIÓDICO - 05 - focus and scope
1926
InlinePanel("focus", label=_("Focus and Scope")),
20-
AutocompletePanel("subject"),
21-
InlinePanel("thematic_area", label=_("Thematic Areas")),
22-
AutocompletePanel("subject_descriptor"),
23-
AutocompletePanel("wos_area"),
24-
AutocompletePanel("wos_db"),
27+
# AutocompletePanel("subject"),
28+
# InlinePanel("thematic_area", label=_("Thematic Areas")),
29+
# AutocompletePanel("subject_descriptor"),
30+
# AutocompletePanel("wos_area"),
31+
# AutocompletePanel("wos_db"),
32+
33+
# SOBRE O PERIÓDICO - 07a - Fontes de Indexação padronizadas
2534
AutocompletePanel("indexed_at"),
35+
# SOBRE O PERIÓDICO - 07b - Fontes de Indexação adicionais / não padronizadas
2636
AutocompletePanel("additional_indexed_at"),
27-
AutocompletePanel("vocabulary"),
28-
InlinePanel("title_in_database", label=_("Title in Database")),
37+
38+
# AutocompletePanel("vocabulary"),
39+
# InlinePanel("title_in_database", label=_("Title in Database")),
2940
]
3041

3142
panels_institutions = [
43+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - C1 - Publicação de
3244
InlinePanel("owner_history", label=_("Owner")),
45+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - C2 - Publicação de
3346
InlinePanel("publisher_history", label=_("Publisher")),
47+
48+
# POLÍTICA EDITORIAL - 14 - Patrocinadores e Agências de Fomento
3449
InlinePanel("sponsor_history", label=_("Sponsor")),
35-
InlinePanel(
36-
"copyright_holder_history",
37-
label=_("Copyright Holder"),
38-
),
50+
# InlinePanel(
51+
# "copyright_holder_history",
52+
# label=_("Copyright Holder"),
53+
# ),
3954
]
4055

4156
panels_website = [
57+
# SOBRE O PERIÓDICO - 10a - Contato
4258
FieldPanel("contact_name"),
59+
# SOBRE O PERIÓDICO - 10b - Contato
4360
FieldPanel("contact_address"),
61+
# SOBRE O PERIÓDICO - 10c - Contato
4462
AutocompletePanel("contact_location"),
63+
# SOBRE O PERIÓDICO - 10d - Contato
4564
InlinePanel("journal_email", label=_("Contact e-mail")),
65+
66+
# SOBRE O PERIÓDICO - 09d - Websites
4667
FieldPanel("logo", heading=_("Logo")),
47-
# FieldPanel("journal_url"),
48-
InlinePanel("related_journal_urls", label=_("Journal Urls")),
68+
# SOBRE O PERIÓDICO - 09c - Websites
69+
FieldPanel("journal_url"),
70+
71+
# InlinePanel("related_journal_urls", label=_("Journal Urls")),
72+
73+
# SOBRE O PERIÓDICO - 09b - Websites
4974
FieldPanel("submission_online_url"),
50-
FieldPanel("main_collection"),
75+
# FieldPanel("main_collection"),
76+
77+
# SOBRE O PERIÓDICO - 09 - Websites e Mídias Sociais
5178
InlinePanel("social_networks", label=_("Social Network")),
79+
80+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - D - Periodicidade
5281
FieldPanel("frequency"),
82+
83+
# SOBRE O PERIÓDICO - 08 - Ficha Bibliográfica - E - Modalidade de publicação
5384
FieldPanel("publishing_model"),
54-
FieldPanel("standard"),
85+
# FieldPanel("standard"),
5586
]
5687

5788
panels_open_science = [
58-
FieldPanel("open_access"),
59-
FieldPanel("url_oa"),
60-
InlinePanel("open_science_form_files", label=_("Open Science accordance form")),
61-
FieldPanel("journal_use_license"),
89+
# FieldPanel("open_access"),
90+
91+
# SOBRE O PERIÓDICO - 02 - journal declares it is open access
6292
InlinePanel("open_access_text", label=_("Open Access")),
93+
# FieldPanel("url_oa"),
94+
95+
# SOBRE O PERIÓDICO - 03a - Conformidade com a Ciência Aberta - formulário de auto declaração
96+
InlinePanel("open_science_form_files", label=_("Open Science accordance form")),
97+
98+
# SOBRE O PERIÓDICO - 04 - Ética na Publicação
99+
InlinePanel(
100+
"ethics",
101+
label=_("Ethics"),
102+
),
103+
104+
# POLÍTICA EDITORIAL - 11b - Direitos Autorais / AUTORES CEDEM PARA PUBLICAR EM CC-BY
105+
# FieldPanel("journal_use_license"),
106+
107+
# POLÍTICA EDITORIAL - 03 - Dados Abertos
63108
InlinePanel("open_data", label=_("Open data")),
109+
110+
# POLÍTICA EDITORIAL - 01 - Preprints
64111
InlinePanel("preprint", label=_("Preprint")),
112+
113+
# POLÍTICA EDITORIAL - 02 - Peer review
65114
InlinePanel("peer_review", label=_("Peer review")),
115+
116+
# about_the_journal - 03b - Conformidade com a Ciência Aberta - declaração de conformidade
66117
InlinePanel(
67118
"open_science_compliance",
68119
label=_("Open Science Compliance"),
69120
),
70121
]
71122

72123
panels_policy = [
73-
InlinePanel(
74-
"ethics",
75-
label=_("Ethics"),
76-
),
124+
125+
# POLÍTICA EDITORIAL - 10 - Comitê de Ética
77126
InlinePanel(
78127
"ethics_committee",
79128
label=_("Ethics Committee"),
80129
),
130+
# POLÍTICA EDITORIAL - 11a - detentor dos direitos autorais
81131
InlinePanel(
82132
"copyright",
83133
label=_("Copyright"),
84134
),
135+
136+
# POLÍTICA EDITORIAL - 12 - Propriedade Intelectual e Termos de uso - Responsabilidade do site
85137
InlinePanel(
86138
"website_responsibility",
87139
label=_("Intellectual Property / Terms of use / Website responsibility"),
88140
),
141+
142+
# POLÍTICA EDITORIAL - 13 - Propriedade Intelectual e Termos de uso - Responsabilidade do autor
89143
InlinePanel(
90144
"author_responsibility",
91145
label=_("Intellectual Property / Terms of use / Author responsibility"),
92146
),
147+
148+
# POLÍTICA EDITORIAL - 05 - Política de Ética e Más condutas, Errata e Retratação
93149
InlinePanel(
94150
"policies",
95151
label=_("Retraction Policy | Ethics and Misconduct Policy"),
96152
),
97-
AutocompletePanel("digital_pa"),
153+
154+
# AutocompletePanel("digital_pa"),
155+
# about_the_journal - 06 - Preservação Digital - texto + link - poderia estar fixo no template html?
98156
InlinePanel(
99157
"digital_preservation",
100158
label=_("Digital Preservation"),
101159
),
160+
161+
# POLÍTICA EDITORIAL - 06 - Política sobre Conflito de Interesses
102162
InlinePanel(
103163
"conflict_policy",
104164
label=_("Conflict of interest policy"),
105165
),
166+
167+
# POLÍTICA EDITORIAL - 07 - Adoção de softwares de verificação de similaridade
106168
InlinePanel(
107169
"software_adoption",
108170
label=_("Similarity Verification Software Adoption"),
109171
),
172+
173+
# POLÍTICA EDITORIAL - 09 - Questões de Sexo e Gênero
110174
InlinePanel(
111175
"gender_issues",
112176
label=_("Gender Issues"),
113177
),
178+
# POLÍTICA EDITORIAL - 04 - Cobrança de Taxas
114179
InlinePanel(
115180
"fee_charging",
116181
label=_("Fee Charging"),
117182
),
118-
InlinePanel(
119-
"editorial_policy",
120-
label=_("Editorial Policy"),
121-
),
183+
# InlinePanel(
184+
# "editorial_policy",
185+
# label=_("Editorial Policy"),
186+
# ),
187+
188+
# POLÍTICA EDITORIAL - 08 - Adoção de softwares uso de recursos de Inteligência Artificial
189+
# Uso por autores
190+
# Responsabilidade e transparência
191+
# Uso por pareceristas e editores
192+
# Processos de avaliação e decisões editoriais
193+
# Atualizações - TEXTO FIXO NO TEMPLATE HTML?
122194
InlinePanel(
123195
"artificial_intelligence",
124196
label=_("Artificial Intelligence"),
125197
),
126198
]
127-
panels_notes = [InlinePanel("notes", label=_("Notes"))]
199+
# panels_notes = [InlinePanel("notes", label=_("Notes"))]
128200

129201
panels_instructions_for_authors = [
202+
# INSTRUÇÕES AOS AUTORES - 01 - Tipos de documentos aceitos
130203
InlinePanel(
131204
"accepted_document_types",
132205
label=_("Accepted Document Types"),
133206
),
207+
# INSTRUÇÕES AOS AUTORES - 02 - Contribuição dos Autores
134208
InlinePanel(
135209
"authors_contributions",
136210
label=_("Authors Contributions"),
137211
),
138-
InlinePanel(
139-
"preparing_manuscript",
140-
label=_("Preparing Manuscript"),
141-
),
212+
213+
# INSTRUÇÕES AOS AUTORES - 0? -
214+
# InlinePanel(
215+
# "preparing_manuscript",
216+
# label=_("Preparing Manuscript"),
217+
# ),
218+
219+
# INSTRUÇÕES AOS AUTORES - 04 - Ativos Digitais
142220
InlinePanel(
143221
"digital_assets",
144222
label=_("Digital Assets"),
145223
),
224+
225+
# INSTRUÇÕES AOS AUTORES - 05 - Citações e Referências
146226
InlinePanel(
147227
"citations_and_references",
148228
label=_("Citations and References"),
149229
),
150-
InlinePanel(
151-
"supp_docs_submission",
152-
label=_("Supplementary Documents Required for Submission"),
153-
),
230+
231+
# INSTRUÇÕES AOS AUTORES - 0? -
232+
# InlinePanel(
233+
# "supp_docs_submission",
234+
# label=_("Supplementary Documents Required for Submission"),
235+
# ),
236+
237+
# INSTRUÇÕES AOS AUTORES - 06 - Declaração de Financiamento
154238
InlinePanel(
155239
"financing_statement",
156240
label=_("Financing Statement"),
157241
),
158-
InlinePanel(
159-
"acknowledgements",
160-
label=_("Acknowledgements"),
161-
),
242+
243+
# INSTRUÇÕES AOS AUTORES - 0? -
244+
# InlinePanel(
245+
# "acknowledgements",
246+
# label=_("Acknowledgements"),
247+
# ),
248+
# INSTRUÇÕES AOS AUTORES - 07 - Informações Adicionais
162249
InlinePanel(
163250
"additional_information",
164251
label=_("Additional Information"),
165252
),
166-
FieldPanel("author_name"),
167-
FieldPanel("manuscript_length"),
253+
# FieldPanel("author_name"),
254+
# FieldPanel("manuscript_length"),
255+
256+
# INSTRUÇÕES AOS AUTORES - 03 - Formato de Envio dos Artigos
168257
FieldPanel("format_check_list"),
169-
AutocompletePanel("text_language"),
170-
AutocompletePanel("abstract_language"),
258+
259+
# AutocompletePanel("text_language"),
260+
# AutocompletePanel("abstract_language"),
171261
]
172262

263+
# CORPO EDITORIAL
173264
panels_editorial_board = [
174265
InlinePanel("editorial_board_member_journal", label=_("Editorial Board")),
175266
]

0 commit comments

Comments
 (0)