{% trans "Display journal specific accessibility information." %}.
+ {% include "admin/elements/forms/field.html" with field=form.journal_a11y_info %} +From e3c079f1beb92a518d2462e93b3034d2e82da330 Mon Sep 17 00:00:00 2001 From: StephDriver <5330770+StephDriver@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:08:46 +0100 Subject: [PATCH 01/17] a11y: #4694 a11y-info create templates --- src/templates/common/elements/a11y/janeway.html | 2 ++ src/templates/common/elements/a11y/journal.html | 2 ++ src/templates/common/elements/a11y/press.html | 2 ++ src/themes/OLH/templates/core/a11y.html | 2 ++ src/themes/clean/templates/core/a11y.html | 2 ++ src/themes/material/templates/core/a11y.html | 2 ++ 6 files changed, 12 insertions(+) create mode 100644 src/templates/common/elements/a11y/janeway.html create mode 100644 src/templates/common/elements/a11y/journal.html create mode 100644 src/templates/common/elements/a11y/press.html create mode 100644 src/themes/OLH/templates/core/a11y.html create mode 100644 src/themes/clean/templates/core/a11y.html create mode 100644 src/themes/material/templates/core/a11y.html diff --git a/src/templates/common/elements/a11y/janeway.html b/src/templates/common/elements/a11y/janeway.html new file mode 100644 index 0000000000..3949b75622 --- /dev/null +++ b/src/templates/common/elements/a11y/janeway.html @@ -0,0 +1,2 @@ +
janeway a11y text
\ No newline at end of file diff --git a/src/templates/common/elements/a11y/journal.html b/src/templates/common/elements/a11y/journal.html new file mode 100644 index 0000000000..27fd3ade6b --- /dev/null +++ b/src/templates/common/elements/a11y/journal.html @@ -0,0 +1,2 @@ +journal specific a11y text
\ No newline at end of file diff --git a/src/templates/common/elements/a11y/press.html b/src/templates/common/elements/a11y/press.html new file mode 100644 index 0000000000..26608715c3 --- /dev/null +++ b/src/templates/common/elements/a11y/press.html @@ -0,0 +1,2 @@ +press a11y text as default for journals and repositories
\ No newline at end of file diff --git a/src/themes/OLH/templates/core/a11y.html b/src/themes/OLH/templates/core/a11y.html new file mode 100644 index 0000000000..c6ca5fc00a --- /dev/null +++ b/src/themes/OLH/templates/core/a11y.html @@ -0,0 +1,2 @@ +OLH Accessibility page placeholder
\ No newline at end of file diff --git a/src/themes/clean/templates/core/a11y.html b/src/themes/clean/templates/core/a11y.html new file mode 100644 index 0000000000..fdf2805d74 --- /dev/null +++ b/src/themes/clean/templates/core/a11y.html @@ -0,0 +1,2 @@ +Clean Accessibility page placeholder
\ No newline at end of file diff --git a/src/themes/material/templates/core/a11y.html b/src/themes/material/templates/core/a11y.html new file mode 100644 index 0000000000..1e6d2fbd81 --- /dev/null +++ b/src/themes/material/templates/core/a11y.html @@ -0,0 +1,2 @@ +Material Accessibility page placeholder
\ No newline at end of file From 6c1a227ae42db35add8dde34dcb9d4fa98a82363 Mon Sep 17 00:00:00 2001 From: StephDriver <5330770+StephDriver@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:48:35 +0100 Subject: [PATCH 02/17] a11y: #4694 a11y-info link footers to a11y pages --- src/journal/urls.py | 2 ++ src/journal/views.py | 18 ++++++++++++++++++ .../OLH/templates/elements/journal_footer.html | 1 + src/themes/OLH/templates/press/a11y.html | 2 ++ .../templates/press/elements/press_footer.html | 1 + .../templates/elements/journal_footer.html | 1 + .../clean/templates/elements/press_footer.html | 1 + src/themes/clean/templates/press/a11y.html | 2 ++ .../templates/elements/journal_footer.html | 1 + src/themes/material/templates/press/a11y.html | 2 ++ .../templates/press/elements/press_footer.html | 7 ++++++- 11 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/themes/OLH/templates/press/a11y.html create mode 100644 src/themes/clean/templates/press/a11y.html create mode 100644 src/themes/material/templates/press/a11y.html diff --git a/src/journal/urls.py b/src/journal/urls.py index cb79361678..5f9cf56ba1 100755 --- a/src/journal/urls.py +++ b/src/journal/urls.py @@ -287,6 +287,8 @@ re_path(r"^reviewer/$", views.become_reviewer, name="become_reviewer"), # Contact re_path(r"^contact/$", views.contact, name="contact"), + # Accessibility + re_path(r"^accessibility/$", views.accessibility, name="accessibility"), # Editorial team re_path(r"^editorialteam/$", views.editorial_team, name="editorial_team"), # Editorial team diff --git a/src/journal/views.py b/src/journal/views.py index 32109a44e9..fd594d6247 100755 --- a/src/journal/views.py +++ b/src/journal/views.py @@ -2121,6 +2121,24 @@ def contact(request): return render(request, template, context) +@decorators.frontend_enabled +def accessibility(request): + """ + Displays the accessibility information page. + :param request: HttpRequest object + :return: HttpResponse object + """ + if request.journal and request.journal.disable_front_end: + template = "admin/core/a11y.html" + elif request.journal: + template = "core/a11y.html" + else: + template = "press/a11y.html" + + context = {} + return render(request, template, context) + + @decorators.frontend_enabled def editorial_team(request, group_id=None): """ diff --git a/src/themes/OLH/templates/elements/journal_footer.html b/src/themes/OLH/templates/elements/journal_footer.html index 38b65fc38b..75af2ae946 100644 --- a/src/themes/OLH/templates/elements/journal_footer.html +++ b/src/themes/OLH/templates/elements/journal_footer.html @@ -41,6 +41,7 @@OLH Press Accessibility page placeholder
\ No newline at end of file diff --git a/src/themes/OLH/templates/press/elements/press_footer.html b/src/themes/OLH/templates/press/elements/press_footer.html index e6e9480803..0b056ab3f4 100644 --- a/src/themes/OLH/templates/press/elements/press_footer.html +++ b/src/themes/OLH/templates/press/elements/press_footer.html @@ -14,6 +14,7 @@ {% endif %}Clean Press Accessibility page placeholder
\ No newline at end of file diff --git a/src/themes/material/templates/elements/journal_footer.html b/src/themes/material/templates/elements/journal_footer.html index 8d47d55781..47e0752fb3 100644 --- a/src/themes/material/templates/elements/journal_footer.html +++ b/src/themes/material/templates/elements/journal_footer.html @@ -38,6 +38,7 @@ {% endif %}> {% trans "Privacy Policy" %}Material Press Accessibility page placeholder
\ No newline at end of file diff --git a/src/themes/material/templates/press/elements/press_footer.html b/src/themes/material/templates/press/elements/press_footer.html index 4797bc5247..ca33b26030 100644 --- a/src/themes/material/templates/press/elements/press_footer.html +++ b/src/themes/material/templates/press/elements/press_footer.html @@ -3,7 +3,12 @@{{ press.footer_description|default:""|safe }}
OLH Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +OLH Press Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +Clean Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +Clean Press Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +Material Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} +{% load materializecss %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +Material Press Accessibility page placeholder
\ No newline at end of file +{% extends "core/base.html" %} + +{% load static %} +{% load i18n %} +{% load materializecss %} + +{% block title %}{% trans "Accessibility" %}{% endblock %} + +{% block body %} +press a11y text as default for journals and repositories
\ No newline at end of file +{% if press.ally_info%} +{% trans "Display journal specific accessibility information." %}.
+ {% include "admin/elements/forms/field.html" with field=form.journal_a11y_info %} +journal specific a11y text
\ No newline at end of file +{% if request.journal.journal_a11y_info %} +{% trans "Display journal specific accessibility information." %}.
- {% include "admin/elements/forms/field.html" with field=form.journal_a11y_info %} -{% trans "Display journal specific accessibility information." %}.
+ {% include "admin/elements/forms/field.html" with field=form.journal_a11y_info %} +{% trans "Display journal specific accessibility information." %}.
- {% include "admin/elements/forms/field.html" with field=form.journal_a11y_info %} +{% trans "Display journal specific accessibility information." %}
+ {% include "admin/elements/forms/field.html" with field=edit_form.a11y_public_info %}