From 9fc3e216b3c5635b6753b2d9bf85fb0483dd370c Mon Sep 17 00:00:00 2001 From: StephDriver <5330770+StephDriver@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:06:34 +0000 Subject: [PATCH 1/2] b-#4055 Front of House tables a11y updates with comments --- .../OLH/templates/elements/section_block.html | 39 +++++++++---------- .../templates/elements/sections_block.html | 13 ++++--- .../templates/elements/sections_display.html | 21 +++------- .../material/templates/journal/article.html | 17 ++++---- 4 files changed, 40 insertions(+), 50 deletions(-) diff --git a/src/themes/OLH/templates/elements/section_block.html b/src/themes/OLH/templates/elements/section_block.html index 3c8ed481d5..7934605618 100644 --- a/src/themes/OLH/templates/elements/section_block.html +++ b/src/themes/OLH/templates/elements/section_block.html @@ -1,50 +1,47 @@
- {% trans "Section or article type" %} - |
-
- {% trans "Public Submissions" %} - |
-
- {% trans "Peer Reviewed" %} - |
-
- {% trans "Indexed" %} - |
+ {% trans "Section or article type" %} | +{% trans "Public Submissions" %} | +{% trans "Peer Reviewed" %} | +{% trans "Indexed" %} | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- {{ section.name }} - |
+ {{ section.name }} | {% if section.public_submissions %} - + + {% trans 'has public submissions' %} {% else %} - + + {% trans 'does not have public submissions' %} {% endif %} | {% if section.number_of_reviewers > 0 %} - + + {% trans 'is peer reviewed' %} {% else %} - + + {% trans 'is not peer reviewed' %} {% endif %} | {% if section.indexing %} - + + {% trans 'is indexed' %} {% else %} - + + {% trans 'is not indexed' %} {% endif %} | diff --git a/src/themes/clean/templates/elements/sections_block.html b/src/themes/clean/templates/elements/sections_block.html index fd76f9dd95..85d43bf4fa 100644 --- a/src/themes/clean/templates/elements/sections_block.html +++ b/src/themes/clean/templates/elements/sections_block.html @@ -1,25 +1,26 @@
{% trans 'Section or article type' %} | -{% trans 'Public Submissions' %} | -{% trans 'Peer Reviewed' %} | -{% trans 'Indexed' %} | +{% trans 'Section or article type' %} | +{% trans 'Public Submissions' %} | +{% trans 'Peer Reviewed' %} | +{% trans 'Indexed' %} | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ section.name }} | +{{ section.name }} | {% if section.public_submissions %} {% trans 'Yes' %}{% else %} {% trans 'No' %}{% endif %} | {% if section.number_of_reviewers > 0 %} {% trans 'Yes' %}{% else %} {% trans 'No' %}{% endif %} | {% if section.indexing %} {% trans 'Yes' %}{% else %} - {% trans 'No' %}}{% endif %} | + {% trans 'No' %}{% endif %}
- {% trans "Section or article type" %} - |
-
- {% trans "Public Submissions" %} - |
-
- {% trans "Peer Reviewed" %} - |
-
- {% trans "Indexed" %} - |
+ {% trans "Section or article type" %} | +{% trans "Public Submissions" %} | +{% trans "Peer Reviewed" %} | +{% trans "Indexed" %} | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- {{ section.name }} - |
+ {{ section.name }} |
{% if section.public_submissions %}
diff --git a/src/themes/material/templates/journal/article.html b/src/themes/material/templates/journal/article.html
index 3283b7f9df..fb3d4c985d 100644
--- a/src/themes/material/templates/journal/article.html
+++ b/src/themes/material/templates/journal/article.html
@@ -306,52 +306,53 @@
{% if article.has_publication_details %}
{% trans "Publication details" %}+ {# TableA11y header cells in first column, ambiguous data #}
|