Bugzilla – Attachment 121899 Details for
Bug 28243
Accessibility: Staff interface - add captions to tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28243: catalogue folder
Bug-28243-catalogue-folder.patch (text/plain), 11.69 KB, created by
wainuiwitikapark
on 2021-06-14 00:26:27 UTC
(
hide
)
Description:
Bug 28243: catalogue folder
Filename:
MIME Type:
Creator:
wainuiwitikapark
Created:
2021-06-14 00:26:27 UTC
Size:
11.69 KB
patch
obsolete
>From fe2eaeaf1d0b677d2e1652925917976d6b7ff611 Mon Sep 17 00:00:00 2001 >From: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> >Date: Thu, 10 Jun 2021 15:16:53 +0000 >Subject: [PATCH] Bug 28243: catalogue folder > >Added captions to tables for accessibility purposes, some of these >include class="sr-only" so that they are not visible, but they are still >present for those who use screen-readers. > >To test: >1) Apply patch and dependencies >2) Go to Staff Client >3) Go to catalogue >4) Go to each of the pages/files and check if they have tables >5) Check that each of the tables have captions to describe them (unless > they have special heading tags instead) - some of these will be >visible on the page and some will be hidden with "sr-only" > >Sponsored-by: Catalyst IT >--- > .../intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 10 +++++++++- > .../intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt | 1 + > .../prog/en/modules/catalogue/labeledMARCdetail.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 +++ > .../intranet-tmpl/prog/en/modules/catalogue/search-history.tt | 4 ++++ > .../intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt | 1 + > 8 files changed, 21 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >index 673c5cae5f..a66ec3495e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >@@ -174,6 +174,7 @@ > [% IF ( tab10XX ) %] > <div id="tab10XX"> > <table> >+ <caption class="sr-only">Items</caption> > <tr> > [% FOREACH header IN item_header_loop %] > <th>[% header | html %]</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >index 63431f591f..b8313ca72b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >@@ -169,6 +169,7 @@ > <div id="advsearch-[% advsearchloo.advanced_search_type | html %]" class="advsearch"> > <p><strong>Limit to any of the following:<strong></p> > <table> >+ <caption class="sr-only">Item types</caption> > <tr> > [% FOREACH itemtypeloo IN advsearchloo.code_loop %] > <td><input type="checkbox" id="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]" name="limit" value="mc-[% itemtypeloo.ccl | html %]:[% itemtypeloo.code | html %]"/><label for="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]">[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %][% IF ( itemtypeloo.imageurl ) %]<img src="[% itemtypeloo.imageurl | html %]" alt="[% itemtypeloo.description | html %]" />[% END %] [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index c6f78e85f3..5e82d721e4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -316,6 +316,7 @@ > [% END %] > </div> > <table class="items_table" id="[% tab | html %]_table"> >+ <caption class="sr-only">Items</caption> > <thead> > <tr> > [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %] >@@ -624,6 +625,7 @@ Note that permanent location is a code, and location may be an authval. > [% IF ( debug_display ) %] > <br /><br /> > <table> >+ <caption class="sr-only">Item data</caption> > <tr><td>itemdata_enumchron</td><td>[% itemdata_enumchron | html %]</td></tr> > <tr><td>itemdata_copynumber</td><td>[% itemdata_copynumber | html %]</td></tr> > <tr><td>serial</td><td>[% serial | html %]</td></tr> >@@ -700,6 +702,7 @@ Note that permanent location is a code, and location may be an authval. > [% IF ( subscription.latestserials ) %] > <p> The [% subscription.staffdisplaycount | html %] latest issues related to this subscription:</p> > <table> >+ <caption class="sr-only">Latest serials</caption> > <tr> > <th>Issue #</th> > <th>Date arrived</th> >@@ -741,6 +744,7 @@ Note that permanent location is a code, and location may be an authval. > <div id="acq_details"> > [% IF orders.count %] > <table id="orders"> >+ <caption class="sr-only">Orders</caption> > <thead> > <tr> > <th>Vendor</th> >@@ -833,6 +837,7 @@ Note that permanent location is a code, and location may be an authval. > <p>[% tnpx('pluralization', 'There is one archived suggestion.', 'There are {count} archived suggestions.', nb_archived_suggestions, { count = nb_archived_suggestions }) | $raw %] > [% END %] > <table id="suggestions" class="sorted"> >+ <caption class="sr-only">Suggestions</caption> > <thead> > <tr> > <th class="NoSort"> </th> >@@ -900,6 +905,7 @@ Note that permanent location is a code, and location may be an authval. > [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %] > <div id="editions"><h2>Editions</h2> > <table> >+ <caption class="sr-only">Editions</caption> > [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %] > [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %] > <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %] >@@ -977,7 +983,9 @@ Note that permanent location is a code, and location may be an authval. > > <div id="export" style="margin-top: 1em;"> > <form method="get" action="/cgi-bin/koha/catalogue/export.pl"> >-<table> <tr> >+<table> >+ <caption class="sr-only">Export</caption> >+ <tr> > <th>Save record</th> </tr> > <tr><td> Select download format: <select name="format"> > <option value="mods">MODS (XML)</option> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >index e5c6c704fb..298251fd0f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >@@ -49,6 +49,7 @@ > <h2>Checked out [% checkouts.size | html %] times</h2> > <table id="table_issues"> > <thead><tr> >+ <caption class="sr-only">Check outs</caption> > [% IF show_patron_column %] > <th>Patron</th> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >index e9cf924fda..a27376fe90 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >@@ -74,6 +74,7 @@ > <!-- div id="bibliotabs" class="toptabs numbered" --> > <div> > <table class="labeledmarc-table"> >+ <caption class="sr-only">MARC data</caption> > [% FOREACH marc_dat IN marc_data %] > <tr> > <td class="labeledmarc-label">[% marc_dat.label | html %]</td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index b8f87647c7..d50248206b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -347,6 +347,7 @@ > <h1>Scan index:</h1> > <form action="/cgi-bin/koha/catalogue/search.pl" method="get"> > <table> >+ <caption class="sr-only">Scan index</caption> > <tr> > <td> > [% IF ( scan_search_term_to_use ) %] >@@ -393,6 +394,7 @@ > > <form action="/cgi-bin/koha/catalogue/search.pl" method="get"> > <table> >+ <caption class="sr-only">Search results</caption> > <tr> > <th>Term/Phrase</th> > <th>Count</th> >@@ -426,6 +428,7 @@ > > <!-- TABLE RESULTS START --> > <table> >+ <caption class="sr-only">Results</caption> > <tr> > [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] > <th> </th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt >index 30eea94edf..e2ee253bbf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt >@@ -55,6 +55,7 @@ > </p> > <input type="hidden" name="action" value="delete" /> > <table class="historyt"> >+ <caption class="sr-only">History</caption> > <thead> > <tr> > <th></th> >@@ -96,6 +97,7 @@ > </p> > <input type="hidden" name="action" value="delete" /> > <table class="historyt"> >+ <caption class="sr-only">History</caption> > <thead> > <tr> > <th></th> >@@ -139,6 +141,7 @@ > </p> > <input type="hidden" name="action" value="delete" /> > <table class="historyt"> >+ <caption class="sr-only">History</caption> > <thead> > <tr> > <th></th> >@@ -180,6 +183,7 @@ > </p> > <input type="hidden" name="action" value="delete" /> > <table class="historyt"> >+ <caption class="sr-only">History</caption> > <thead> > <tr> > <th></th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >index dd2f2a0235..8f3661eeae 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >@@ -43,6 +43,7 @@ > [% IF rotas.count > 0 && items.size > 0 %] > > <table class="items_table dataTable no-footer" role="grid"> >+ <caption class="sr-only">Items</caption> > <thead> > <tr> > <th>Barcode</th> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28243
:
121750
|
121895
|
121896
|
121898
| 121899 |
121900
|
121901
|
121902
|
121903
|
121904
|
121905
|
121942
|
121943
|
121944
|
121945
|
121946
|
121947
|
121948
|
121949
|
121950
|
121956
|
121957
|
121958
|
121959
|
121973
|
121974
|
122019
|
122020
|
122021