Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/templates/common/elements/a11y/a11y_options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% load i18n %}
<h2>{% trans 'Accessibility Options' %}</h2>
<p>
The accessibility options may be accessed from the Accessibility Menu <i class="fa fa-universal-access" aria-hidden="true"></i> at the top of each page.
</p>

<h3>{% trans 'Text' %}</h3>
<p>
{% blocktrans %}
The Reading Options bar lets you customise how text is displayed. It is available on text-heavy pages
and targets large areas of text, such as journal articles, rather than surrounding page elements,
so the reading area stays focused.
{% endblocktrans %}
</p>

<h3>{% trans 'Accessibility Mode' %}</h3>
<p>
{% blocktrans %}
Accessibility Mode is a user-enabled theme built from the ground up to be accessible. The current
themes are built on older technologies, and it is not possible to make them fully accessible without
substantial changes. It will take time to move all existing presses onto the new accessible theme,
so in the short term we are offering Accessibility Mode for any user who needs those features.
{% endblocktrans %}
</p>

<h3>{% trans 'Preference Storage' %}</h3>
<p>
{% blocktrans %}
If you are logged in, your preferences for both the Reading Options bar and Accessibility Mode are
saved to your account and applied on every visit. If you are not logged in, preferences are stored
for your current session and may need to be re-entered if your session expires, you clear cookies,
or you switch devices.
{% endblocktrans %}
</p>
2 changes: 1 addition & 1 deletion src/templates/common/elements/a11y/janeway.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>{% trans 'Janeway' %}</h2>
{% endblocktrans%}
</p>
<p>
{% trans 'Full details of the work done and that planned are in our' %}
{% trans 'Full details of the work done and that planned are in the Janeway ' %}
<a href="https://github.com/orgs/openlibhums/projects/49/views/1?pane=info" target="_blank">
{% trans 'Accessibility Project.' %}
{% include "elements/icons/link_external.html" %}
Expand Down
2 changes: 2 additions & 0 deletions src/templates/common/elements/a11y/vpat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
{% for theme_key, theme_data in vpat_data.items %}
{% if theme_key == theme %}

<div lang="en">
{% include "common/elements/a11y/vpat_table.html" with wcag_level="A" %}
{% include "common/elements/a11y/vpat_table.html" with wcag_level="AA" %}
</div>

{% endif %}
{% endfor %}
2 changes: 2 additions & 0 deletions src/themes/OLH/templates/core/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<div id="main_article">
<h1 id="cms-title">{% trans "Accessibility" %} </h1>
<hr aria-hidden="true" />
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/journal.html" %}
{% include "common/elements/a11y/janeway.html" %}
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="olh" %}
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/themes/OLH/templates/press/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
<div id="main_article">
<h1 id="cms-title">{% trans "Accessibility" %} </h1>
<hr aria-hidden="true" />
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/janeway.html" %}

{% if not journal_themes or journal_themes|length == 1 and 'olh' in journal_themes %}
<h3>VPAT</h3>
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="olh" %}
{% else %}
<p>
Expand Down
2 changes: 2 additions & 0 deletions src/themes/clean/templates/core/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

{% block body %}
<h1> {% trans "Accessibility" %} </h1>
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/journal.html" %}
{% include "common/elements/a11y/janeway.html" %}
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="clean" %}
{% endblock body %}
3 changes: 2 additions & 1 deletion src/themes/clean/templates/press/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

{% block body %}
<h1> {% trans "Accessibility" %} </h1>
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/janeway.html" %}

{% if not journal_themes or journal_themes|length == 1 and 'clean' in journal_themes %}
<h3>VPAT</h3>
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="clean" %}
{% else %}
<p>
Expand Down
2 changes: 2 additions & 0 deletions src/themes/material/templates/core/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

{% block body %}
<h1> {% trans "Accessibility" %} </h1>
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/journal.html" %}
{% include "common/elements/a11y/janeway.html" %}
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="material" %}

{% endblock body %}
3 changes: 2 additions & 1 deletion src/themes/material/templates/press/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

{% block body %}
<h1> {% trans "Accessibility" %} </h1>
{% include "common/elements/a11y/a11y_options.html" %}
{% include "common/elements/a11y/press.html" %}
{% include "common/elements/a11y/janeway.html" %}

{% if not journal_themes or journal_themes|length == 1 and 'material' in journal_themes %}
<h3>VPAT</h3>
<h3 lang="en">VPAT</h3>
{% include "common/elements/a11y/vpat.html" with vpat_data=vpat_data theme="material" %}
{% else %}
<p>
Expand Down
Loading