diff --git a/src/core/logic.py b/src/core/logic.py index 59906690b8..6c0b5b8d3b 100755 --- a/src/core/logic.py +++ b/src/core/logic.py @@ -492,6 +492,8 @@ def get_settings_to_edit(display_group, journal, user): 'display_altmetric_badge', 'altmetric_badge_type', 'hide_author_email_links', + 'display_date_submitted', + 'display_date_accepted', ] group_of_settings = process_setting_list(article_settings, 'article', journal) setting_group = 'article' diff --git a/src/templates/admin/elements/forms/group_article.html b/src/templates/admin/elements/forms/group_article.html index 980595fd89..9ed6376877 100644 --- a/src/templates/admin/elements/forms/group_article.html +++ b/src/templates/admin/elements/forms/group_article.html @@ -30,4 +30,12 @@

Metrics Display

{% include "admin/elements/forms/field.html" with field=edit_form.suppress_citations_metric %} +
+

Article Dates

+
+
+

{% trans "Enable the display of the dates an article was submitted and accepted." %}.

+ {% include "admin/elements/forms/field.html" with field=edit_form.display_date_submitted %} + {% include "admin/elements/forms/field.html" with field=edit_form.display_date_accepted %} +
diff --git a/src/themes/OLH/templates/journal/article.html b/src/themes/OLH/templates/journal/article.html index b0c1b7a5b4..c407ae4cec 100644 --- a/src/themes/OLH/templates/journal/article.html +++ b/src/themes/OLH/templates/journal/article.html @@ -281,11 +281,8 @@

{% if article.is_published or proofing %}

{% trans "Published on" %}
- {{ article.date_published|date:"d M Y" }} + {{ article.date_published|date:"Y-m-d" }}
- {% else %} -
{% trans "Accepted on" %}
- {{ article.date_accepted|date:"d M Y" }}
{% endif %} {% endif %} @@ -407,6 +404,12 @@

{% trans "Publication details" %}

{% if article.publication_title %}
  • {% trans "Original ISSN" %}: {{ article.ISSN_override }}
  • {% endif %} + {% if journal_settings.article.display_date_submitted and article.date_submitted %} +
  • {% trans "Submitted on" %}: {{ article.date_submitted|date:"Y-m-d" }}
  • + {% endif %} + {% if journal_settings.article.display_date_accepted and article.date_accepted %} +
  • {% trans "Accepted on" %}: {{ article.date_accepted|date:"Y-m-d" }}
  • + {% endif %} {% endif %} diff --git a/src/themes/clean/templates/journal/article.html b/src/themes/clean/templates/journal/article.html index 89aadffeab..f2c7b0a552 100644 --- a/src/themes/clean/templates/journal/article.html +++ b/src/themes/clean/templates/journal/article.html @@ -216,12 +216,20 @@

    {% trans "Supplementary Files" %}

    {% endif %}

    {% trans "Information" %}