diff --git a/comments/models.py b/comments/models.py index 5a021210e2f900c61ae5ed94f9abb0b9630114c3..e138ca39ad2b9a7fefc8d3f7606207bdfc176df5 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 a6e405b3c01252b3b7b659446258325597ad1f30..0f40882d3e4f459ebd331fc81fcf12d3a708f4e8 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 a29f7e6ea41a6fe74fd57f39779ef38e9abd2275..8169994002d45d0604bc5206fdcb2999f8c61a1f 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