Skip to content

Commit

Permalink
Add option to toggle credit
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPaulEve authored and joemull committed Jan 9, 2025
1 parent ccc9d3b commit 2b7e64d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def get_settings_to_edit(display_group, journal, user):
'use_ga_four', 'display_login_page_notice', 'login_page_notice',
'display_register_page_notice', 'register_page_notice',
'support_email', 'support_contact_message_for_staff',
'from_address', 'replyto_address',
'from_address', 'replyto_address', "use_credit"
]

group_of_settings = process_setting_list(journal_settings, 'general', journal)
Expand Down
4 changes: 4 additions & 0 deletions src/templates/admin/elements/forms/group_journal.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ <h2>Other</h2>
<p>If you want to display a special message on the registration page you can add it here.</p>
{% include "admin/elements/forms/field.html" with field=edit_form.display_register_page_notice %}
{% include "admin/elements/forms/field.html" with field=edit_form.register_page_notice %}

<p>If you want to toggle CRediT support, you can do so here.</p>
{% include "admin/elements/forms/field.html" with field=edit_form.display_use_credit %}
{% include "admin/elements/forms/field.html" with field=edit_form.use_credit %}
</div>


6 changes: 5 additions & 1 deletion src/utils/install/journal_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -5146,6 +5146,10 @@
},
"value": {
"default": "on"
}
},
"editable_by": [
"editor",
"journal-manager"
]
}
]

0 comments on commit 2b7e64d

Please sign in to comment.