From 4f83884f237a70e41e7ef5ef1ba9cb3ca90e1c23 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Mon, 22 Jan 2018 21:19:25 +0100 Subject: [PATCH] Update citations --- comments/models.py | 7 +++---- scipost/static/scipost/assets/css/_reports.scss | 6 +----- submissions/models.py | 2 +- .../_single_public_report_without_comments.html | 7 ++++++- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/comments/models.py b/comments/models.py index afec36f91..5a021210e 100644 --- a/comments/models.py +++ b/comments/models.py @@ -244,9 +244,8 @@ class Comment(TimeStampedModel): citation += '%s %s, ' % (self.author.user.first_name, self.author.user.last_name) if self.is_authorreply: - citation += 'SciPost Author Replies ' + citation += 'SciPost Author Replies, ' else: - citation += 'SciPost Comments ' - citation += '(%s), doi:' % self.date_submitted.strftime('%Y') - citation += self.doi_string + citation += 'SciPost Comments, ' + citation += 'doi: %s' % self.doi_string return citation diff --git a/scipost/static/scipost/assets/css/_reports.scss b/scipost/static/scipost/assets/css/_reports.scss index 30ee19e13..5202c6979 100644 --- a/scipost/static/scipost/assets/css/_reports.scss +++ b/scipost/static/scipost/assets/css/_reports.scss @@ -10,11 +10,7 @@ } .citation { - color: $scipost-lightblue; - - &:hover { - text-decoration: underline; - } + font-style: italic; } } } diff --git a/submissions/models.py b/submissions/models.py index 25429f17c..a29f7e6ea 100644 --- a/submissions/models.py +++ b/submissions/models.py @@ -531,7 +531,7 @@ class Report(SubmissionRelatedObjectMixin, models.Model): else: citation += '%s %s, ' % (self.author.user.first_name, self.author.user.last_name) citation += 'Report on %s, ' % self.submission.arxiv_identifier_w_vn_nr - citation += self.doi_string + citation += 'doi: %s' % self.doi_string return citation diff --git a/submissions/templates/submissions/_single_public_report_without_comments.html b/submissions/templates/submissions/_single_public_report_without_comments.html index 9cef73f77..cd8eb08c4 100644 --- a/submissions/templates/submissions/_single_public_report_without_comments.html +++ b/submissions/templates/submissions/_single_public_report_without_comments.html @@ -71,7 +71,12 @@ </li> {% endif %} {% if perms.scipost.can_manage_reports %} - <li><a href="{% url 'submissions:report_pdf_compile' report.id %}">Update/Compile the Report pdf</a></li> + <h3 class="mt-2">Administration</h3> + <ul> + <li><a href="{% url 'submissions:report_pdf_compile' report.id %}">Update/Compile the Report pdf</a></li> + <li>Mark DOI as <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=1 %}">needed</a> / <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=0 %}">not needed</a></li> + <li><a href="{% url 'journals:generic_metadata_xml_deposit' type_of_object='report' object_id=report.id %}">Create the metadata and deposit it to Crossref</a></li> + </ul> {% endif %} </ul> </div> -- GitLab