Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility #35

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
8 changes: 8 additions & 0 deletions lib/defaultcfg/cfg.d/z_accessibility.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$c->{accessibilityemail} = undef;

# set default accessibility email if no email specified
if( !defined $c->{accessibilityemail} )
{
$c->{accessibilityemail} = $c->{adminemail};
}

99 changes: 99 additions & 0 deletions lib/defaultcfg/lang/en/static/accessibility.xpage
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE page SYSTEM "entities.dtd" >
<xpage:page xmlns="http://www.w3.org/1999/xhtml" xmlns:xpage="http://eprints.org/ep3/xpage" xmlns:epc="http://eprints.org/ep3/control">
<xpage:title>Accessibility statement for <epc:phrase ref="archive_name"/></xpage:title>
<xpage:body>

<p>This website is run by <epc:phrase ref="accessibility_institution"/>. We want as many people as possible to be able to use this website. For example, that means you should be able to:</p>

<ul>
<li>change colours, contrast levels and fonts</li>
<li>zoom in up to 300% without the text spilling off the screen</li>
<li>navigate most of the website using just a keyboard</li>
<li>navigate most of the website using speech recognition software</li>
<li>listen to most of the website using a screen reader (including the most recent versions of JAWS, NVDA and VoiceOver)</li>
</ul>

<p>We’ve also made the website text as simple as possible to understand.</p>

<p><a rel="external" href="https://mcmw.abilitynet.org.uk/">AbilityNet</a> has advice on making your device easier to use if you have a disability.</p>

<h3 id="how-accessible-this-website-is">Haow accessible this website is</h3>

<p>We know some parts of <epc:phrase ref="archive_name" /> are not fully accessible:</p>

<ul>
<li>most older PDF documents are not fully accessible to screen reader software</li>
<!-- Examples:
<li>the text will not reflow in a single column when you change the size of the browser window</li>
<li>you cannot modify the line height or spacing of text</li>
<li>most audio and video files do not have captions</li>
<li>some of our online forms are difficult to navigate using just a keyboard</li>
<li>you cannot skip to the main content when using a screen reader</li>
-->
</ul>

<h3 id="what-to-do-if-you-cannot-access-parts-of-this-website">What to do if you cannot access parts of this website</h3>

<p>If you need information on this website in a different format like accessible PDF, large print, easy read, audio recording or braille:</p>

<ul>
<li>email <a href="mailto:{$config{accessibilityemail}}"><epc:print expr="$config{accessibilityemail}" /></a></li>
</ul>

<p>We’ll consider your request and get back to you in <epc:phrase ref="accessibility_no_response_days"/> days.</p>

<h3 id="reporting-accessibility-problems-with-this-website">Reporting accessibility problems with this website</h3>

<p>We’re always looking to improve the accessibility of this website. If you find any problems not listed on this page or think we’re not meeting accessibility requirements, contact: <a href="mailto:{$config{accessibilityemail}}"><epc:print expr="$config{accessibilityemail}" /></a></p>

<h3 id="enforcement-procedure">Enforcement procedure</h3>

<p>The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’). If you’re not happy with how we respond to your complaint, <a rel="external" href="https://www.equalityadvisoryservice.com/">contact the Equality Advisory and Support Service (EASS)</a></p>

<h2 id="technical-information-about-this-websites-accessibility">Technical information about this website’s accessibility</h2>

<p><epc:phrase ref="accessibility_institution"/> is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.</p>

<p>This website is not compliant with the <a rel="external" href="https://www.w3.org/TR/WCAG21/">Web Content Accessibility Guidelines version 2.1</a> AA standard. The non-accessible sections are listed below.</p>

<h2 id="non-accessible-content">Non accessible content</h2>

<p>The content listed below is non-accessible for the following reasons.</p>

<h3 id="non-compliance-with-the-accessibility-regulations">Non compliance with the accessibility regulations</h3>

<p>[List accessibilty problems below]</p>

<h3 id="disproportionate-burden">Disproportionate burden</h3>

<p>[List accessibility problems whcih would be a disproportionate burden to fix below]</p>

<h3 id="content-thats-not-within-the-scope-of-the-accessibility-regulations">Content that’s not within the scope of the accessibility regulations</h3>

<h4 id="pdfs-and-other-documents">PDFs and other documents</h4>

<p>As <epc:phrase ref="archive_name" /> is an open access research repository, the principal content made available to users are research outputs such as articles, papers, posters and reports, many of which are PDF documents. Many PDF documents, especially older ones, are not fully accessible to screen reader software and do not contain other common accessibility features. In particular:</p>

<ul>
<li>many documents, especially older ones, do not conform to the PDF/A archiving format.</li>
<li>many lack bookmarks or document titles, therefore failing to meet WCAG 2.1 success criteria 2.4.5 and 2.4.2.</li>
<li>many discuss scientific or scholarly concepts which may be abbreviated with no mechanism for discovering the meaning of the abbreviations, or unusual words arising from scholarly discourse without definitions. These issues each fail WCAG 2.1 criteria 3.1.4 and 3.1.1 respectively.</li>
<li>there may be some documents that fail to specify their human language, thereby failing WCAG 2.1 success criterion 3.1.1.</li>
<li>many documents may not reflow satisfactorily. This fails WCAG 2.1 success criterion 1.4.10.</li>
</ul>

<h2 id="how-we-tested-this-website">How we tested this website</h2>

<p>This website was last tested on <epc:phrase ref="accessibility_last_tested_date"/> The test was carried out by <epc:phrase ref="accessibility_test_org"/>.</p>

<p>We used this approach to deciding on a sample of pages to test <epc:phrase ref="accessibility_explanation_link"/>.</p>

<h2 id="what-were-doing-to-improve-accessibility">What we’re doing to improve accessibility</h2>

<p>Our accessibility roadmap <epc:phrase ref="accessibility_roadmap_link"/> shows how and when we plan to improve accessibility on this website.</p>

<p>This statement was prepared on <b><epc:phrase ref="accessibility_statement_first_prepared_date"/></b>. It was last updated on <b><epc:phrase ref="accessibility_statement_last_updated_date"/></b>.</p>

</xpage:body>
</xpage:page>
12 changes: 4 additions & 8 deletions lib/defaultcfg/lang/en/static/policies.xpage
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
<xpage:title>Repository Policies</xpage:title>
<xpage:body>




<div class="ep_msg_warning"><div class="ep_msg_warning_content"><table><tbody><tr><td>
<img alt="Warning" src="{$config{rel_path}}/style/images/warning.png" /></td><td>
<div class="ep_msg ep_msg_warning"><div class="ep_msg_warning_content"><div class="table"><div class="table-row"><div class="table-cell msg-icon">
<img alt="Warning" src="{$config{rel_path}}/style/images/warning.png" /></div><div class="table-cell msg-content">
<p>No policies have been defined for this repository. </p>
<p>You can use the <a href="http://www.opendoar.org/tools/en/policies.php">OpenDOAR Policies Tool</a> to produce a standard policy page. Use the button below to define your policies.</p>
</td></tr></tbody></table></div></div>
</div></div></div></div></div>

<form method="post" action="http://www.opendoar.org/tools/policytool.php">
<textarea style='display: none' name='rName'><epc:phrase ref="archive_name" /></textarea>
<form method="post" action="http://sherpa.ac.uk/policytool/">
<input type="hidden" name="la" value="en" />
<input type="hidden" name="rUrl" value="{$config{base_url}}/" />
<input type="hidden" name="rOaiBaseUrl" value="{$config{perl_url}}/oai2" />
Expand Down
48 changes: 48 additions & 0 deletions lib/lang/en/phrases/accessibility.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE phrases SYSTEM "entities.dtd">
<epp:phrases xmlns="http://www.w3.org/1999/xhtml" xmlns:epp="http://eprints.org/ep3/phrase" xmlns:epc="http://eprints.org/ep3/control">

<epp:phrase id="accessibility_institution">[name of organisation]</epp:phrase>
<epp:phrase id="archive_name">[repository name]</epp:phrase>
<epp:phrase id="contact_number">[contact number]</epp:phrase>
<epp:phrase id="reports_contact">[reports contact email]</epp:phrase>
<epp:phrase id="accessibility_no_response_days">[number]</epp:phrase>
<epp:phrase id="accessibility_email">[accessibility email]</epp:phrase>
<epp:phrase id="accessibility_statement_first_prepared_date">[date]</epp:phrase>
<epp:phrase id="accessibility_statement_last_updated_date">[date]</epp:phrase>
<epp:phrase id="accessibility_test_org">CoSector, University of London</epp:phrase>
<epp:phrase id="accessibility_explanation_link">[testing approach]</epp:phrase>
<epp:phrase id="accessibility_roadmap_link">[accessibility roadmap]</epp:phrase>
<epp:phrase id="accessibility_last_tested_date">[date]</epp:phrase>
<epp:phrase id="steps_to_request">If you find any problems not listed on this page or need information in a different format like accessible pdf, large print, easy read, audio recording or braille, please contact: [email protected]</epp:phrase>
<epp:phrase id="responsible_person">Communication and Engagement team at LSHTM</epp:phrase>
<epp:phrase id="text_relay">[text relay response]</epp:phrase>
<epp:phrase id="how_to_contact">Information about contacting the team can be found at on the [link to contact page] contact us page</a>.</epp:phrase>

<epp:phrase id="homepage_link"> [<a rel ="external" href="[repo address]">homepage</a>]</epp:phrase>
<epp:phrase id="about_link"> <a rel ="external" href="[about page link]">about page</a></epp:phrase>
<epp:phrase id="browse_link"> <a rel ="external" href="[browse link]">browse items page</a></epp:phrase>
<epp:phrase id="summary_link"> item summary page</epp:phrase>
<epp:phrase id="item_detail_link"> item details page</epp:phrase>
<epp:phrase id="workflow_type_link"> 'type' stage of the deposit workflow</epp:phrase>
<epp:phrase id="workflow_upload_link"> 'upload' stage of the deposit workflow</epp:phrase>
<epp:phrase id="workflow_detail_link"> 'details' stage of the deposit workflow</epp:phrase>
<epp:phrase id="workflow_subject_link"> 'subjects' stage of the deposit workflow</epp:phrase>
<epp:phrase id="workflow_deposit_link"> 'deposit' stage of the deposit workflow</epp:phrase>
<epp:phrase id="search_link"> <a rel ="external" href="[repo base url] /cgi/search/simple">search page</a></epp:phrase>
<epp:phrase id="advanced_search_link"> <a rel ="external" href="[repo base url] /cgi/search/advanced">advanced search page</a></epp:phrase>
<epp:phrase id="login_link"> <a rel ="external" href="[repo base url] /cgi/users/login">user login and logout page</a></epp:phrase>
<epp:phrase id="profile_link"> user profile page</epp:phrase>
<epp:phrase id="manage_deposits_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Items">manage deposits page</a></epp:phrase>
<epp:phrase id="review_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Review">review page</a></epp:phrase>
<epp:phrase id="admin_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Admin">admin page</a></epp:phrase>
<epp:phrase id="ir_stats_link"> <a rel ="external" href="[repo base url] /cgi/stats/report">IR stats reports page</a></epp:phrase>
<epp:phrase id="reports_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Report">reports page</a></epp:phrase>
<epp:phrase id="history_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Staff%3A%3AHistorySearch">search history page</a></epp:phrase>
<epp:phrase id="phrase_editor_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Admin%3A%3APhrases">page phrase editor</a></epp:phrase>
<epp:phrase id="subject_editor_link"> <a rel ="external" href="[repo base url] /cgi/users/home?screen=Subject%3A%3AEdit">subject editor</a></epp:phrase>


<epp:phrase id="accessibility_testing_method">This repository was tested using WAVE's <a rel="external" href="https://wave.webaim.org">web accessibility tool</a>. This tool returns a comprehensive list of features that may limit the ability of users to access a website, especially those using assistive technology such as screen readers. We ran this tool on a version of the repository without branding customisation, covering the pages that users most frequently interact with. </epp:phrase>

</epp:phrases>
17 changes: 12 additions & 5 deletions lib/lang/en/phrases/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ For more information see <a href="http://eprints.org/d/?keyword=MetaFields">Meta
<epp:phrase id="lib/searchexpression:export_error_search"><p>The search failed to execute correctly.</p></epp:phrase>
<epp:phrase id="lib/searchexpression:export_error_format"><p>The requested output format is not available.</p></epp:phrase>
<epp:phrase id="lib/searchexpression:savesearch">Save search</epp:phrase>
<epp:phrase id="lib/searchexpression:merge">Merge</epp:phrase>

<!-- Search::Field (Used to be SearchField)-->

Expand Down Expand Up @@ -2032,10 +2033,16 @@ User Area CGI Scripts
<epc:pin name="problems"/>
<div class="ep_block">
<p>Please enter your username and password. <epc:pin name="reset_link" /></p>
<table style="margin:auto">
<tr><td>Username:</td><td><epc:pin name="input_username"/></td></tr>
<tr><td>Password:</td><td><epc:pin name="input_password"/></td><td><epc:pin name="login_button"/></td></tr>
</table>
<div style="margin:auto; display:table">
<div style="display:table-row">
<div style="display:table-cell"><label for="login_username">Username:</label></div>
<div style="display:table-cell; text-align:left"><epc:pin name="input_username"/></div>
</div>
<div style="display:table-row">
<div style="display:table-cell"><label for="login_password">Password:</label></div>
<div style="display:table-cell"><epc:pin name="input_password"/><epc:pin name="login_button"/></div>
</div>
</div>
<p>Note: you must have cookies enabled.</p>
</div>
</epp:phrase>
Expand Down Expand Up @@ -3772,7 +3779,7 @@ PY = 2006 and OG = (Cambridge)<br />
<epp:phrase id="template/navigation:home">Home</epp:phrase>
<epp:phrase id="template/navigation:about">About</epp:phrase>
<epp:phrase id="template/navigation:browse">Browse</epp:phrase>
<epp:phrase id="template:about_eprints"><div><epc:phrase ref="archive_name" /> is powered by <em><a href="http://eprints.org/software/">EPrints 3</a></em> which is developed by the <a href="http://www.ecs.soton.ac.uk/">School of Electronics and Computer Science</a> at the University of Southampton. <a href="{$config{http_url}}/eprints/">More information and software credits</a>.</div></epp:phrase>
<epp:phrase id="template:about_eprints"><div><epc:phrase ref="archive_name" /> is powered by <em>EPrints 3</em> which is developed by the <a href="http://www.ecs.soton.ac.uk/">School of Electronics and Computer Science</a> at the University of Southampton. <a href="{$config{http_url}}/eprints/">More information and software credits</a>.</div></epp:phrase>



Expand Down
6 changes: 3 additions & 3 deletions lib/lang/en/phrases/xapian_warning.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<!-- see https://github.com/eprints/eprints/issues/169 - can be removed when this issue fixed -->
<epp:phrase id="saved_search_xapian_warning">
<div class="ep_msg_warning"><div class="ep_msg_warning_content"><table><tbody><tr><td>
<img alt="Message" src="{$config{rel_path}}/style/images/warning.png" /></td><td>
<div class="ep_msg ep_msg_warning"><div class="ep_msg_warning_content"><div class="table"><div class="table-row"><div class="table-cell msg-icon">
<img alt="Message" src="{$config{rel_path}}/style/images/warning.png" /></div><div class="table-cell msg-content">
Please note: Email alerts for saved simple searches are not supported in this version.
</td></tr></tbody></table></div></div>
</div></div></div></div></div>
</epp:phrase>

</epp:phrases>
Loading