diff --git a/scipost/utils.py b/scipost/utils.py index eb0a33eba7869e8c0f524cdc5bcc38729c3d237b..b4baf4e752df86b72c0e3e478a5c5ebe70fd4f54 100644 --- a/scipost/utils.py +++ b/scipost/utils.py @@ -164,7 +164,7 @@ class Utils(object): '\n\nMany thanks in advance for taking a few minutes to look into it,' '\n\nOn behalf of the SciPost Foundation,\n\n' 'Prof. dr Jean-Sébastien Caux\n---------------------------------------------' - '\nInstitute for Theoretial Physics\nUniversity of Amsterdam\nScience Park 904' + '\nInstitute for Theoretical Physics\nUniversity of Amsterdam\nScience Park 904' '\n1098 XH Amsterdam\nThe Netherlands\n' '---------------------------------------------\ntel.: +31 (0)20 5255775' '\nfax: +31 (0)20 5255778\n---------------------------------------------') @@ -183,6 +183,18 @@ class Utils(object): 'in particular by providing referee reports.\n\n' 'We very much hope that we can count on your expertise,\n\n' 'Many thanks in advance,\n\nThe SciPost Team') + 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.') + emailmessage = EmailMessage( 'SciPost: refereeing request (and registration invitation)', email_text, 'SciPost Registration <registration@scipost.org>', diff --git a/submissions/views.py b/submissions/views.py index 43e1f6fe8a4fdb94405b13a4c5465d5f7bd71bcc..db6636e3c13f06239b9ed69b2dd413ebe5dc6448 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -22,6 +22,7 @@ from .forms import * from .utils import SubmissionUtils from comments.models import Comment +from journals.models import journals_submit_dict from scipost.models import Contributor, title_dict, RegistrationInvitation from scipost.utils import Utils @@ -521,21 +522,23 @@ def recruit_referee(request, submission_id): ref_recruit_form = RefereeRecruitmentForm(request.POST) if ref_recruit_form.is_valid(): # TODO check if email already taken - ref_invitation = RefereeInvitation(submission=submission, - title=ref_recruit_form.cleaned_data['title'], - first_name=ref_recruit_form.cleaned_data['first_name'], - last_name=ref_recruit_form.cleaned_data['last_name'], - email_address=ref_recruit_form.cleaned_data['email_address'], - date_invited=timezone.now(), - invited_by = request.user.contributor) + ref_invitation = RefereeInvitation( + submission=submission, + title=ref_recruit_form.cleaned_data['title'], + first_name=ref_recruit_form.cleaned_data['first_name'], + last_name=ref_recruit_form.cleaned_data['last_name'], + email_address=ref_recruit_form.cleaned_data['email_address'], + date_invited=timezone.now(), + invited_by = request.user.contributor) ref_invitation.save() # Create and send a registration invitation ref_inv_message_head = ('On behalf of the Editor-in-charge ' + title_dict[submission.editor_in_charge.title] + ' ' + submission.editor_in_charge.user.last_name + - ', we would like to invite you to referee a ' - 'Submission to SciPost Physics, namely\n\n' + - submission.title + '\nby ' + submission.author_list + '.') + ', we would like to invite you to referee a Submission to ' + + journals_submit_dict[submission.submitted_to_journal] + + ', namely\n\n' + submission.title + + '\nby ' + submission.author_list + '.') reg_invitation = RegistrationInvitation ( title = ref_recruit_form.cleaned_data['title'], first_name = ref_recruit_form.cleaned_data['first_name'],