diff --git a/scipost/forms.py b/scipost/forms.py index 172bedcc7df38bcd9fd15e31c67ce1dce0cdb117..bfb456f457a5fd92e0300817e6f396346a2b45f0 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -169,6 +169,7 @@ class EmailParticularForm(forms.Form): email_address = forms.EmailField(label='') email_subject = forms.CharField(widget=forms.Textarea(), label='') email_text = forms.CharField(widget=forms.Textarea(), label='') + include_scipost_summary = forms.BooleanField(label='include SciPost summary at end of message') def __init__(self, *args, **kwargs): super(EmailParticularForm, self).__init__(*args, **kwargs) diff --git a/scipost/management/commands/add_groups_and_permissions.py b/scipost/management/commands/add_groups_and_permissions.py index b7ef2c60df1c2d05988bba6476695ea512dc2efd..ace01e6ffea6592ca47260e41d06f721fb7672c5 100644 --- a/scipost/management/commands/add_groups_and_permissions.py +++ b/scipost/management/commands/add_groups_and_permissions.py @@ -155,6 +155,9 @@ class Command(BaseCommand): can_prepare_recommendations_for_voting, can_fix_College_decision, ) + AdvisoryBoard.permissions.add( + can_manage_registration_invitations, + ) EditorialAdmin.permissions.add( can_view_pool, can_assign_submissions, diff --git a/scipost/templates/scipost/FAQ.html b/scipost/templates/scipost/FAQ.html index 719029047787fc975b52d26ff36bde6b91634b32..acd4c04f9a78cbd92fa1f5e389cf239486604d5f 100644 --- a/scipost/templates/scipost/FAQ.html +++ b/scipost/templates/scipost/FAQ.html @@ -81,6 +81,11 @@ Membership of <a href="http://crossref.org">Crossref</a> means that SciPost papers directly benefit from a set of citation metrics.</p> <br/> <hr class="hr6"> + <h3>Will SciPost papers be listed in citation databases?</h3> + <p> + Inclusion in standard citation databases can be applied for once the Journals have been operating for a short while (at least 3 months). Past experience with other new journals shows that listing typically occurs within a year of launch. Search engine-based listings are expected to pick our Journals up on a shorter timescale. + </p> + <hr class="hr6"> <h3>Can I also submit my papers somewhere else?</h3> <p>No. SciPost publications or submissions under consideration for publication in SciPost Journals must not be submitted elsewhere.</p> <br/> diff --git a/scipost/templates/scipost/personal_page.html b/scipost/templates/scipost/personal_page.html index 8fd16a0b846833f57013af0e21ee920c3e2e48c2..d9bba4d3aa32842db2fcdabe4077bd733990b1bf 100644 --- a/scipost/templates/scipost/personal_page.html +++ b/scipost/templates/scipost/personal_page.html @@ -102,7 +102,7 @@ <ul class="personalTabMenu"> <li><a class="TabItem" id="AccountTab">Account</a></li> - {% if request.user|is_in_group:'Editorial Administrators' or request.user|is_in_group:'Editorial College' or request.user|is_in_group:'Vetting Editors' or request.user|is_in_group:'Ambassadors' %} + {% if request.user|is_in_group:'Editorial Administrators' or request.user|is_in_group:'Advisory Board' or request.user|is_in_group:'Editorial College' or request.user|is_in_group:'Vetting Editors' or request.user|is_in_group:'Ambassadors' %} <li><a class="TabItem" id="EdActionTab">Editorial Actions</a></li> {% endif %} <li><a class="TabItem" id="RefereeingTab">Refereeing</a></li> @@ -226,7 +226,7 @@ </div> <br> <div class="row"> - {% if request.user|is_in_group:'SciPost Administrators' or request.user|is_in_group:'Ambassadors' %} + {% if request.user|is_in_group:'SciPost Administrators' or request.user|is_in_group:'Advisory Board' or request.user|is_in_group:'Ambassadors' %} <div class="col-4"> <h3>Registration actions</h3> <ul> diff --git a/scipost/utils.py b/scipost/utils.py index 50fb689109d288a2129d2723ce4cfc32538013c4..ea7b007bebf697f1dc212fb80863644f683a8596 100644 --- a/scipost/utils.py +++ b/scipost/utils.py @@ -11,6 +11,39 @@ from django.utils import timezone from .models import * +SCIPOST_SUMMARY_FOOTER = ( + '\n\n--------------------------------------------------' + '\n\nAbout SciPost:\n\n' + 'SciPost.org is a publication portal managed by ' + 'professional scientists, offering (among others) high-quality ' + 'two-way open access journals (free to read, free to publish in) ' + 'with an innovative peer-witnessed form of refereeing. ' + 'The site also offers a Commentaries section, providing a ' + 'means of commenting on all existing literature. SciPost is established as ' + 'a not-for-profit foundation devoted to serving the interests of the ' + 'international scientific community.' + '\n\nThe site is anchored at https://scipost.org. Many further details ' + 'about SciPost, its principles, ideals and implementation can be found at ' + 'https://scipost.org/about and https://scipost.org/FAQ.' +) + +SCIPOST_SUMMARY_FOOTER_HTML = ( + '\n<br/><br/>--------------------------------------------------' + '<br/><p>About SciPost:</p>' + '<p>SciPost.org is a publication portal managed by ' + 'professional scientists, offering (among others) high-quality ' + 'two-way open access journals (free to read, free to publish in) ' + 'with an innovative peer-witnessed form of refereeing. ' + 'The site also offers a Commentaries section, providing a ' + 'means of commenting on all existing literature. SciPost is established as ' + 'a not-for-profit foundation devoted to serving the interests of the ' + 'international scientific community.</p>' + '<p>The site is anchored at https://scipost.org. Many further details ' + 'about SciPost, its principles, ideals and implementation can be found at ' + 'https://scipost.org/about and https://scipost.org/FAQ.</p>' +) + + EMAIL_FOOTER = ( '\n{% load staticfiles %}' '<a href="https://scipost.org"><img src="{% static ' @@ -318,31 +351,8 @@ class Utils(object): '<p>Many thanks in advance,</p>' '<p>The SciPost Team</p>') - email_text += ( - '\n\n--------------------------------------------------' - '\n\nAbout SciPost:\n\n' - 'In summary, SciPost.org is a publication portal managed by ' - 'professional scientists, offering (among others) high-quality ' - 'Open Access journals with innovative forms of refereeing, and a ' - 'means of commenting on all existing literature. SciPost is established as ' - 'a not-for-profit foundation devoted to serving the interests of the ' - 'international scientific community.' - '\n\nThe site is anchored at https://scipost.org. Many further details ' - 'about SciPost, its principles, ideals and implementation can be found at ' - 'https://scipost.org/about and https://scipost.org/FAQ.') - email_text_html += ( - '\n<br/><br/>--------------------------------------------------' - '<br/><p>About SciPost:</p>' - '<p>In summary, SciPost.org is a publication portal managed by ' - 'professional scientists, offering (among others) high-quality ' - 'Open Access journals with innovative forms of refereeing, and a ' - 'means of commenting on all existing literature. SciPost is established as ' - 'a not-for-profit foundation devoted to serving the interests of the ' - 'international scientific community.</p>' - '<p>The site is anchored at https://scipost.org. Many further details ' - 'about SciPost, its principles, ideals and implementation can be found at ' - 'https://scipost.org/about and https://scipost.org/FAQ.</p>') - + email_text += SCIPOST_SUMMARY_FOOTER + email_text_html += SCIPOST_SUMMARY_FOOTER_HTML email_text_html += '<br/>' + EMAIL_FOOTER html_template = Template(email_text_html) html_version = html_template.render(email_context) diff --git a/scipost/views.py b/scipost/views.py index e14ebe9ce8404908c5fd80b916e1fea6383102e3..9c64ca1ec458fa1485f26e85dd6c9307aafc1eec 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -1062,14 +1062,15 @@ def email_particular(request): form = EmailParticularForm(request.POST) if form.is_valid(): email_text = form.cleaned_data['email_text'] - html_template = Template( - '{{ email_text|linebreaks }}' - + '\n\n' + EMAIL_FOOTER - ) - context = Context( - {'email_text': form.cleaned_data['email_text'], - }) - html_version = html_template.render(context) + email_text_html = '{{ email_text|linebreaks }}' + email_context = Context({'email_text': form.cleaned_data['email_text']}) + if form.cleaned_data['include_scipost_summary']: + email_text += SCIPOST_SUMMARY_FOOTER + email_text_html += SCIPOST_SUMMARY_FOOTER_HTML + + email_text_html += '<br/>' + EMAIL_FOOTER + html_template = Template(email_text_html) + html_version = html_template.render(email_context) message = EmailMultiAlternatives( form.cleaned_data['email_subject'], email_text, 'SciPost Admin <admin@scipost.org>',