From 291b8531036e6937e1ea41856b29743f1cd73e91 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Mon, 22 Jan 2018 21:48:45 +0100
Subject: [PATCH] Update citation

---
 comments/models.py                                    | 3 ++-
 journals/templates/journals/metadata_xml_deposit.html | 5 ++++-
 submissions/models.py                                 | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/comments/models.py b/comments/models.py
index 5a021210e..e138ca39a 100644
--- a/comments/models.py
+++ b/comments/models.py
@@ -243,9 +243,10 @@ class Comment(TimeStampedModel):
             else:
                 citation += '%s %s, ' % (self.author.user.first_name, self.author.user.last_name)
 
-            if self.is_authorreply:
+            if self.is_author_reply:
                 citation += 'SciPost Author Replies, '
             else:
                 citation += 'SciPost Comments, '
+            citation += 'Delivered %s, ' % self.date_submitted.strftime('%Y-%m-%d')
             citation += 'doi: %s' % self.doi_string
         return citation
diff --git a/journals/templates/journals/metadata_xml_deposit.html b/journals/templates/journals/metadata_xml_deposit.html
index a6e405b3c..0f40882d3 100644
--- a/journals/templates/journals/metadata_xml_deposit.html
+++ b/journals/templates/journals/metadata_xml_deposit.html
@@ -28,6 +28,7 @@
 
 <div class="row">
   <div class="col-12">
+
   {% if errormessage %}
     <h2 class="text-danger">{{ errormessage }}</h2>
   {% endif %}
@@ -38,7 +39,9 @@
   </div>
 
   <h3 class="mt-3">Response text:</h3>
-  <p>{{ response_text|linebreaks }}</p>
+  <div>
+      <pre><code>{{ response_text|linebreaks }}</code></pre>
+  </div>
 
   <h3><a href="{{publication.get_absolute_url}}">return to the publication's page</a>, to the <a href="{% url 'journals:manage_metadata' %}">general metadata management page</a> or to <a href="{% url 'journals:manage_metadata' doi_label=publication.doi_label %}">this publication's metadata management page</a></h3>
 
diff --git a/submissions/models.py b/submissions/models.py
index a29f7e6ea..816999400 100644
--- a/submissions/models.py
+++ b/submissions/models.py
@@ -530,7 +530,7 @@ class Report(SubmissionRelatedObjectMixin, models.Model):
                 citation += 'Anonymous, '
             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 += 'Delivered %s, ' % self.date_submitted.strftime('%Y-%m-%d')
             citation += 'doi: %s' % self.doi_string
         return citation
 
-- 
GitLab