diff --git a/src/themes/OLH/assets/js/table_of_contents.js b/src/themes/OLH/assets/js/table_of_contents.js
index 095dcf2ca..9b474c729 100755
--- a/src/themes/OLH/assets/js/table_of_contents.js
+++ b/src/themes/OLH/assets/js/table_of_contents.js
@@ -1,5 +1,5 @@
$( document ).ready(function() {
-
+
if (!$("#toc")) {
return;
}
@@ -30,5 +30,10 @@ $( document ).ready(function() {
});
- $("#toc").append(toc);
+ if(iter==0){
+ $("#toc-section").remove();
+ }
+ else{
+ $("#toc").append(toc);
+ }
});
\ No newline at end of file
diff --git a/src/themes/OLH/templates/journal/article.html b/src/themes/OLH/templates/journal/article.html
index c29055c2e..054ebe856 100644
--- a/src/themes/OLH/templates/journal/article.html
+++ b/src/themes/OLH/templates/journal/article.html
@@ -202,10 +202,10 @@
{% trans "Publisher Notes" %}
{% endif %}
{% if article.is_published or proofing %}
- {% if galleys %}
- {% trans 'Downloads' %}:
+ {% trans 'Downloads' %}:
+ {% if galleys %}
{% for galley in galleys %}
{% trans "Download" %} {{ galley.label }}
@@ -213,16 +213,18 @@
{% trans "Publisher Notes" %}
{% trans 'View PDF' %}
{% endif %}
{% endfor %}
-
- {% if proofing %}
-
-
- Note to proofreader: Download links on this page begin to work when the article is published.
+ {% if proofing %}
+
+
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
+ {% endif %}
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
{% endif %}
{% endif %}
- {% endif %}
{% if article.funders.all %}
{% trans "Funding" %}
@@ -350,25 +352,29 @@ {% trans "Authors" %}
{% endif %}
{% if article.is_published or proofing %}
-
{% trans "Download" %}
-
- {% if proofing %}
-
-
- Note to proofreader: Download links on this page begin to work when the article is published.
-
+
{% trans "Downloads" %}
+ {% if galleys %}
+
+ {% if proofing %}
+
+
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
+ {% endif %}
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
{% endif %}
{% else %}
{% trans 'Downloads are not available until this article is published ' %}
@@ -448,7 +454,7 @@
{% trans "Non Specialist Summary" %}
{% endif %}
{% if article_content %}
-
+
{% trans "Jump to" %}
@@ -476,13 +482,17 @@ {{ article.preprint.repository.object_name }}
{% trans "File Checksums" %} (MD5)
-
- {% for galley in galleys %}
- -
- {{ galley.label }}: {{ galley.file.checksum }}
-
- {% endfor %}
-
+ {% if galleys %}
+
+ {% for galley in galleys %}
+ -
+ {{ galley.label }}: {{ galley.file.checksum }}
+
+ {% endfor %}
+
+ {% else %}
+
{% trans 'File Checksums are not available for this article.' %}
+ {% endif %}
diff --git a/src/themes/clean/templates/journal/article.html b/src/themes/clean/templates/journal/article.html
index 614d9e6b9..19ee91ffc 100644
--- a/src/themes/clean/templates/journal/article.html
+++ b/src/themes/clean/templates/journal/article.html
@@ -96,29 +96,31 @@
{% trans "Abstract" %}
{{ article.rights | safe }}
{% endif %}
{% if article.is_published or proofing %}
- {% if galleys %}
- {% trans 'Downloads' %}>
- {% for galley in galleys %}
- {% trans "Download" %} {{ galley.label }}
-
- {% if galley.file.mime_type == 'application/pdf' and journal.view_pdf_button %}
- View
- PDF
+ {% trans 'Downloads' %}
+ {% if galleys %}
+ {% for galley in galleys %}
+ {% trans "Download" %} {{ galley.label }}
+
+ {% if galley.file.mime_type == 'application/pdf' and journal.view_pdf_button %}
+ View
+ PDF
+ {% endif %}
+ {% endfor %}
+ {% if proofing %}
+
+
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
{% endif %}
- {% endfor %}
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
+ {% endif %}
- {% if proofing %}
-
-
- Note to proofreader: Download links on this page begin to work when the article is published.
-
- {% endif %}
{% endif %}
- {% endif %}
{% if article.funders.all %}
{% trans "Funding" %}
{% for funder in article.funders.all %}
@@ -185,26 +187,30 @@
{% trans "Authors" %}
{% endif %}
{% if article.is_published or proofing %}
-
{% trans "Download" %}
-
- {% if proofing %}
-
-
- Note to proofreader: Download links on this page begin to work when the article is published.
-
+ {% endfor %}
+
+ {% if proofing %}
+
+
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
+ {% endif %}
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
{% endif %}
{% endif %}
{% if article.supplementary_files.all %}
@@ -313,22 +319,26 @@
{% trans "Citation" %}
{% trans 'File Checksums' %}
(MD5)
-
- {% for galley in galleys %}
- -
- {{ galley.label }}: {{ galley.file.checksum }}
-
- {% endfor %}
-
+ {% if galleys %}
+
+ {% for galley in galleys %}
+ -
+ {{ galley.label }}: {{ galley.file.checksum }}
+
+ {% endfor %}
+
+ {% else %}
+ {% trans 'File Checksums are not available for this article.' %}
+ {% endif %}
{% endif %}
{% if article_content %}
-
-
{% trans "Table of Contents" %}
-
+
+
{% trans "Table of Contents" %}
+
+
{% endif %}
-
{% include "elements/journal/citation_modals.html" %}
diff --git a/src/themes/material/assets/toc.js b/src/themes/material/assets/toc.js
index 24ff5e474..194976425 100644
--- a/src/themes/material/assets/toc.js
+++ b/src/themes/material/assets/toc.js
@@ -31,5 +31,10 @@ $( document ).ready(function() {
});
- $("#toc").append(toc);
+ if(iter==0){
+ $("#toc-section").remove();
+ }
+ else{
+ $("#toc").append(toc);
+ }
});
diff --git a/src/themes/material/templates/journal/article.html b/src/themes/material/templates/journal/article.html
index 1162602e1..f41a749b0 100644
--- a/src/themes/material/templates/journal/article.html
+++ b/src/themes/material/templates/journal/article.html
@@ -119,32 +119,34 @@ {% trans "Publisher Notes" %}
{% endif %}
{% if article.is_published or proofing %}
- {% if galleys %}
-
{% trans "Download" %}
-
- {% for galley in galleys %}
- {% trans "Download" %} {{ galley.label }}
-
- {% if galley.file.mime_type == 'application/pdf' and journal.view_pdf_button %}
- View
- PDF
- {% endif %}
- {% endfor %}
-
- {% if proofing %}
-
- info
- Note to proofreader: Download links on this page begin to work when the article is published.
+
{% trans "Downloads" %}
+ {% if galleys %}
+
+ {% for galley in galleys %}
+ {% trans "Download" %} {{ galley.label }}
+
+ {% if galley.file.mime_type == 'application/pdf' and journal.view_pdf_button %}
+ View
+ PDF
+ {% endif %}
+ {% endfor %}
+ {% if proofing %}
+
+ info
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
+ {% endif %}
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
{% endif %}
{% endif %}
- {% endif %}
{% if article.funders.all %}
@@ -178,48 +180,48 @@
{% trans "Funding" %}
-
+
{{ article.metrics.views }}
-
-
{% trans "Views" %}
+
+
{% trans "Views" %}
-
+
{{ article.metrics.downloads }}
-
-
{% trans "Downloads" %}
+
+
{% trans "Downloads" %}
{% if article.metrics.alm.twitter %}
-
+
{{ article.metrics.alm.twitter }}
-
-
{% trans "Tweets" %}
+
+
{% trans "Tweets" %}
{% endif %}
{% if article.metrics.alm.wikipedia %}
-
+
{{ article.metrics.alm.wikipedia }}
-
-
{% trans "Wikipedia" %}
+
+
{% trans "Wikipedia" %}
{% endif %}
{% if article.metrics.alm.reddit %}
-
+
{{ article.metrics.alm.reddit }}
-
-
{% trans "Reddit" %}
+
+
{% trans "Reddit" %}
{% endif %}
{% if article.citation_count and not journal_settings.article.suppress_citations_metric %}
-
+
{{ article.citation_count }}
-
-
{% trans "Citations" %}
+
+
{% trans "Citations" %}
{% endif %}
@@ -254,13 +256,13 @@
{% with article.get_doi_url as doi_url%}
+ target="_blank" aria-label= {% trans "Share on Facebook" %}>
+ target="_blank" aria-label={% trans "Share on X" %}>
+ target="_blank" aria-label={% trans "Share on LinkedIn" %}>
{% endwith %}
{% if article.frozen_authors.count > 0 %}
@@ -290,33 +292,34 @@
{% if article.is_published or proofing %}
- {% if galleys %}
- {% trans "Download" %}
+ {% trans "Downloads" %}
-
-
- {% if proofing %}
-
- info
- Note to proofreader: Download links on this page begin to work when the article is published.
-
+ {% if galleys %}
+
+ {% if proofing %}
+
+ info
+ Note to proofreader: Download links on this page begin to work when the article is published.
+
+ {% endif %}
+
+ {% else %}
+
{% trans 'Downloads are not available for this article.' %}
{% endif %}
-
- {% endif %}
{% endif %}
{% include "elements/journal/article_issue_list.html" %}
@@ -473,19 +476,23 @@
{% trans field.field.name %}
{% trans "File Checksums" %} (MD5)
-
- {% for galley in galleys %}
- -
- {{ galley.label }}: {{ galley.file.checksum }}
-
- {% endfor %}
-
+ {% if galleys %}
+
+ {% for galley in galleys %}
+ -
+ {{ galley.label }}: {{ galley.file.checksum }}
+
+ {% endfor %}
+
+ {% else %}
+
{% trans 'File Checksums are not available for this article.' %}
+ {% endif %}
{% endif %}
{% if article_content %}
-
+
{% trans "Table of Contents" %}