SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 8ac5046e authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Merge branch 'master' into development

parents 858da6d5 d23c69fc
No related branches found
No related tags found
No related merge requests found
{% if comments %}
<ul class="{{ css_class|default:'' }}">
{% for comment in comments %}
<li><a href="{{ comment.get_absolute_url }}">{% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} by {{ comment.author.get_title_display }} {{ comment.author.user.last_name }} on {{ comment.date_submitted|date:'DATE_FORMAT' }}</a></li>
<li><a href="{{ comment.get_absolute_url }}"{% if target_blank %} target="_blank"{% endif %}>{% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} by {{ comment.author.get_title_display }} {{ comment.author.user.last_name }} on {{ comment.date_submitted|date:'DATE_FORMAT' }}</a></li>
{% include 'partials/comments/comments_list.html' with comments=comment.nested_comments.vetted css_class='m-0 pl-4' %}
{% endfor %}
</ul>
......
......@@ -15,8 +15,10 @@
<div class="row">
<div class="col-12">
<h1 class="highlight">Contributors filter</h1>
<p>This form can be used to split your list of names into a list of names with registered or already invited Contributors and a list of unknown names according to the current database.</p>
<p>Please, for every name use the format <code>{last name}</code> or <code>{last name}, {first name}</code> and use one name per line.</p>
<form method="post">
{% csrf_token %}
{{ form|bootstrap }}
......@@ -26,6 +28,7 @@
</div>
{% if form.is_bound %}
<hr class="divider">
<h2>Filter result</h2>
{% if names_not_found %}
......@@ -36,6 +39,7 @@
{% if names_found %}
<h3>Names found in the system</h3>
<pre><code>{% for name in names_found %}{{ name }}{% if not forloop.last %}<br>{% endif %}{% endfor %}</code></pre>
{% endif %}
{% endif %}
......
......@@ -253,6 +253,6 @@ SUBMISSIONS_COMPLETE_REGEX = '(?P<arxiv_identifier_w_vn_nr>[0-9]{4,}.[0-9]{4,}v[
#
# CAUTION: *triple* check whether the `default` regex also meets any other explicit journal regex!
EXPLICIT_REGEX_MANUSCRIPT_CONSTRAINTS = {
SCIPOST_JOURNAL_PHYSICS: '(?P<arxiv_identifier_w_vn_nr>[0-9]{4,}.[0-9]{5,}v[0-9]{1,2})',
SCIPOST_JOURNAL_PHYSICS: '(?P<arxiv_identifier_w_vn_nr>[0-9]{4,}.[0-9]{4,}v[0-9]{1,2})',
'default': SUBMISSIONS_COMPLETE_REGEX
}
......@@ -779,6 +779,7 @@ class EICRecommendationForm(forms.ModelForm):
# The EIC has fulfilled this editorial assignment.
self.assignment.completed = True
self.assignment.save()
return recommendation
def revision_requested(self):
return self.instance.recommendation in [-1, -2]
......
......@@ -13,7 +13,14 @@
</div>
<div class="card-body px-0">
{% include 'partials/submissions/pool/submission_info_table.html' with submission=submission %}
<div class="row">
<div class="col-md-8">
{% include 'partials/submissions/pool/submission_info_table.html' with submission=submission %}
</div>
<div class="col-md-4">
{% include 'partials/submissions/submission_refereeing_history.html' with submission=submission target_blank=1 %}
</div>
</div>
</div>
<div>
......
......@@ -5,16 +5,16 @@
<h3 class="card-title">Submission & Refereeing History</h3>
{% for sibling in submission.thread %}
<div class="my-2">
{% if forloop.last %}Submission{% else %}Resubmission{% endif %} <a href="{{ sibling.get_absolute_url }}" class="pubtitleli">{{ sibling.arxiv_identifier_w_vn_nr }}</a> ({{ sibling.submission_date|date:'j F Y' }})
{% if forloop.last %}Submission{% else %}Resubmission{% endif %} <a href="{{ sibling.get_absolute_url }}" class="pubtitleli"{% if target_blank %} target="_blank"{% endif %}>{{ sibling.arxiv_identifier_w_vn_nr }}</a> ({{ sibling.submission_date|date:'j F Y' }})
</div>
<ul class="m-0 pl-4">
{% for report in sibling.reports.accepted %}
<li><a href="{{ report.get_absolute_url }}">Report {{ report.report_nr }} submitted on {{ report.date_submitted }} by {% if report.anonymous %}<em>Anonymous</em>{% else %}{{ report.author.get_title_display }} {{ report.author.user.last_name }}{% endif %}</a></li>
{% include 'partials/comments/comments_list.html' with comments=report.comments.vetted css_class='my-1 pl-4' %}
<li><a href="{{ report.get_absolute_url }}"{% if target_blank %} target="_blank"{% endif %}>Report {{ report.report_nr }} submitted on {{ report.date_submitted }} by {% if report.anonymous %}<em>Anonymous</em>{% else %}{{ report.author.get_title_display }} {{ report.author.user.last_name }}{% endif %}</a></li>
{% include 'partials/comments/comments_list.html' with comments=report.comments.vetted css_class='my-1 pl-4' target_blank=target_blank %}
{% endfor %}
</ul>
{% include 'partials/comments/comments_list.html' with comments=sibling.comments.vetted css_class='my-1 pl-4' %}
{% include 'partials/comments/comments_list.html' with comments=sibling.comments.vetted css_class='my-1 pl-4' target_blank=target_blank %}
{% endfor %}
</div>
</div>
......@@ -15,36 +15,16 @@
{% is_edcol_admin request.user as is_editorial_admin %}
<h2>Editorial Page for Submission</h2>
<h1 class="text-primary">{{submission.title}}</h1>
<h3>by {{submission.author_list}}</h3>
<div class="ml-2 mt-2">
<h3>- Go to the <a href="{% url 'submissions:submission' arxiv_identifier_w_vn_nr=submission.arxiv_identifier_w_vn_nr %}">Submissions Page</a> to view Reports and Comments</h3>
{% if submission.other_versions_pool or not submission.is_current %}
<ul class="mt-3 mb-1 list-unstyled pl-4">
{% if not submission.is_current %}
<li>
<h4><span class="text-danger"><b>This is not the editorial page for the current version.</b> Please go to the current version's page.</span></h4>
</li>
{% endif %}
{% if submission.other_versions_pool %}
<li>Other versions of this Submission exist:</li>
<ul class="list-unstyled">
{% for vn in submission.other_versions_pool %}
<li>{% include 'submissions/_submission_version.html' with submission=vn editorial_page=1 %}</li>
{% endfor %}
</ul>
{% endif %}
</ul>
{% endif %}
</div>
<div class="row">
<div class="col-md-8">
<h2>Editorial Page for Submission</h2>
<h1 class="text-primary">{{submission.title}}</h1>
<h3>by {{submission.author_list}}</h3>
<div class="ml-2 mt-2">
<h3>- Go to the <a href="{% url 'submissions:submission' arxiv_identifier_w_vn_nr=submission.arxiv_identifier_w_vn_nr %}">Submissions Page</a> to view Reports and Comments</h3>
</div>
<div class="row">
<div class="col-12">
<h3 class="mt-4">Submission summary</h3>
{% include 'submissions/_submission_summary_short.html' with submission=submission hide_title=1 %}
......@@ -73,11 +53,8 @@
<h3>Referees flagged upon submission (treat reports with caution):</h3>
<div class="pl-md-4">{{ submission.referees_flagged }}</div>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-12">
{% for recommendation in submission.eicrecommendations.all %}
{% include 'submissions/_recommendation_author_content.html' with recommendation=recommendation %}
{% if recommendation.may_be_reformulated %}
......@@ -85,8 +62,12 @@
{% endif %}
{% endfor %}
</div>
<div class="col-md-4">
{% include 'partials/submissions/submission_refereeing_history.html' with submission=submission %}
</div>
</div>
<div class="card card-grey my-4">
<div class="card-body">
<h2 class="card-title">Editorial Workflow</h2>
......
from django import forms
from django.core.mail import EmailMessage
from django.template.loader import render_to_string
from django.urls import reverse
from scipost.models import Contributor
......@@ -66,7 +65,7 @@ class VetThesisLinkForm(BaseRequestThesisLinkForm):
mail_params = {
'vocative_title': thesislink.requested_by.get_title_display(),
'thesislink': thesislink,
'full_url': thesislink.get_absolute_url()
'full_url': 'https//www.scipost.org{url}'.format(url=thesislink.get_absolute_url())
}
action = int(self.cleaned_data['action_option'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment