Skip to content

Commit

Permalink
#2101 the review page now includes metadata for the paper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers authored and Andy Byers committed Apr 12, 2021
1 parent 5db00c1 commit 7f31ad9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 34 deletions.
37 changes: 37 additions & 0 deletions src/templates/admin/elements/review/review_meta_block.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<p><strong>The editor handling this piece is:</strong></p>

<ul>
{% if review_request.article.section_editors %}
{% for editor in review_request.article.section_editors %}
<li>{{ editor }} <a href="mailto:{{ editor.email }}?subject={{ review_request.article.journal.name }} Review"><i
class="fa fa-envelope"></i></a></li>
{% endfor %}
{% elif review_request.article.editors %}
{% for editor_dict in review_request.article.editors %}
<li>{{ editor_dict.editor }} <a
href="mailto:{{ editor_dict.editor.email }}?subject={{ review_request.article.journal.name }} Review"><i
class="fa fa-envelope"></i></a></li>
{% endfor %}
{% else %}
<li>This article has no editors.</li>
{% endif %}
</ul>


<p><strong>Abstract</strong></p>
{{ review_request.article.abstract|safe }}
<br />
<p><strong>Keywords</strong></p>
{{ article.keywords.all }}
<p>
{% for keyword in review_request.article.keywords.all %}
{{ keyword.word }}{% if not forloop.last %}, {% endif %}
{% empty %}
Article has no keywords.
{% endfor %}
</p>
<p><strong>Section</strong></p>
<p>{{ review_request.article.section.name }}</p>

<p><strong>Language</strong></p>
<p>{{ review_request.article.get_language_display }}</p>
35 changes: 1 addition & 34 deletions src/templates/admin/elements/review/review_request_metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,7 @@ <h4>Review Request for: {{ review_request.article.title|safe }}</h4>
<div class="card-section">
<p>We request that this review be done by <strong>{{ review_request.date_due|date:"Y-m-d" }}</strong>.</p>

<p><strong>The editor handling this piece is:</strong></p>

<ul>
{% if review_request.article.section_editors %}
{% for editor in review_request.article.section_editors %}
<li>{{ editor }} <a href="mailto:{{ editor.email }}?subject={{ review_request.journal.name }} Review"><i class="fa fa-envelope"></i></a></li>
{% endfor %}
{% elif review_request.article.editors %}
{% for editor_dict in review_request.article.editors %}
<li>{{ editor_dict.editor }} <a href="mailto:{{ editor_dict.editor.email }}?subject={{ review_request.journal.name }} Review"><i class="fa fa-envelope"></i></a></li>
{% endfor %}
{% else %}
<li>This article has no editors.</li>
{% endif %}
</ul>


<p><strong>Abstract</strong></p>
{{ review_request.article.abstract|safe }}
<hr />
<p><strong>Keywords</strong></p>
{{ article.keywords.all }}
<p>
{% for keyword in review_request.article.keywords.all %}
{{ keyword.word }}{% if not forloop.last %}, {% endif %}
{% empty %}
Article has no keywords.
{% endfor %}
</p>
<p><strong>Section</strong></p>
<p>{{ review_request.article.section.name }}</p>

<p><strong>Language</strong></p>
<p>{{ review_request.article.get_language_display }}</p>
{% include "admin/elements/review/review_meta_block.html" %}
</div>
</div>
<button class="close-button" data-close aria-label="Close reveal" type="button">
Expand Down
6 changes: 6 additions & 0 deletions src/templates/admin/review/review_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ <h2>Information for this Form</h2>
<small>{{ assignment.form.intro|safe }}</small>
<br /> <br />
</div>
<div class="title-area">
<h2>Metadata</h2>
</div>
<div class="content">
{% include "admin/elements/review/review_meta_block.html" with review_request=assignment %}
</div>
<div class="title-area">
<h2>Decline this Review</h2>
</div>
Expand Down

0 comments on commit 7f31ad9

Please sign in to comment.