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 'Sections' %}

+{# TableA11y superflous p tags, single row of headings, very ambiguous data -> single row and column headings and make icons screen-reader compatible #} - - - - + + + + {% for section in sections %} - + 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 'Sections' %}

+{# TableA11y single row headings, but very ambiguous data, should be one row and one column headings #}
-

{% 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 %}
- - - - + + + + {% for section in sections %} - + + {% trans 'No' %}{% endif %} {% empty %} {% endfor %} diff --git a/src/themes/material/templates/elements/sections_display.html b/src/themes/material/templates/elements/sections_display.html index 987ff1593e..03175adfb1 100644 --- a/src/themes/material/templates/elements/sections_display.html +++ b/src/themes/material/templates/elements/sections_display.html @@ -1,25 +1,16 @@ +{# TableA11y superfluous paragraph tags, single row headings, but very ambiguous data, should be one row and one column headings #}
{% trans 'Sections submission information' %}
{% 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 %}
- - - - + + + + {% for section in sections %} - +
-

{% 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 #} {% if article.page_range %} - + {% endif %} {% if article.article_number %} - + {% endif %} {% if article.publisher_name %} - + {% endif %} {% if article.publication_title %} - + {% endif %} {% if article.ISSN_override %} - + {% endif %} {% if journal_settings.article.display_date_submitted and article.date_submitted %} - + {% endif %} {% if journal_settings.article.display_date_accepted and article.date_accepted %} - + {% endif %} {% if article.date_published or proofing %} - + From 95c758a63603b11bf33c8136da50c6eadb447215 Mon Sep 17 00:00:00 2001 From: StephDriver <5330770+StephDriver@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:08:49 +0000 Subject: [PATCH 2/2] b-#4055 Front of House tables a11y update --- src/themes/OLH/templates/elements/section_block.html | 1 - src/themes/clean/templates/elements/sections_block.html | 1 - src/themes/material/templates/elements/sections_display.html | 1 - src/themes/material/templates/journal/article.html | 1 - 4 files changed, 4 deletions(-) diff --git a/src/themes/OLH/templates/elements/section_block.html b/src/themes/OLH/templates/elements/section_block.html index 7934605618..1ec146e517 100644 --- a/src/themes/OLH/templates/elements/section_block.html +++ b/src/themes/OLH/templates/elements/section_block.html @@ -1,5 +1,4 @@

{% trans 'Sections' %}

-{# TableA11y superflous p tags, single row of headings, very ambiguous data -> single row and column headings and make icons screen-reader compatible #} diff --git a/src/themes/clean/templates/elements/sections_block.html b/src/themes/clean/templates/elements/sections_block.html index 85d43bf4fa..740249aa4d 100644 --- a/src/themes/clean/templates/elements/sections_block.html +++ b/src/themes/clean/templates/elements/sections_block.html @@ -1,6 +1,5 @@

{% trans 'Sections' %}

-{# TableA11y single row headings, but very ambiguous data, should be one row and one column headings #}
diff --git a/src/themes/material/templates/elements/sections_display.html b/src/themes/material/templates/elements/sections_display.html index 03175adfb1..ce3e21e698 100644 --- a/src/themes/material/templates/elements/sections_display.html +++ b/src/themes/material/templates/elements/sections_display.html @@ -1,4 +1,3 @@ -{# TableA11y superfluous paragraph tags, single row headings, but very ambiguous data, should be one row and one column headings #}
{% trans 'Sections submission information' %}
diff --git a/src/themes/material/templates/journal/article.html b/src/themes/material/templates/journal/article.html index fb3d4c985d..1fa4cf47cf 100644 --- a/src/themes/material/templates/journal/article.html +++ b/src/themes/material/templates/journal/article.html @@ -306,7 +306,6 @@

{% if article.has_publication_details %}

{% trans "Publication details" %}

- {# TableA11y header cells in first column, ambiguous data #}

{% if article.page_range %}