From a6d3611855a1cb886e5ed181a3706aa7c1f15030 Mon Sep 17 00:00:00 2001 From: Wainui Witika-Park Date: Wed, 16 Jun 2021 02:16:00 +0000 Subject: [PATCH] Bug 28243: tools 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 tools 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 --- .../prog/en/modules/tools/access_files.tt | 1 + .../tools/automatic_item_modification_by_age.tt | 2 +- .../prog/en/modules/tools/batchMod-del.tt | 5 ++++ .../prog/en/modules/tools/batchMod-edit.tt | 3 +++ .../prog/en/modules/tools/batch_delete_records.tt | 2 ++ .../en/modules/tools/batch_extend_due_dates.tt | 2 ++ .../en/modules/tools/batch_record_modification.tt | 2 ++ .../prog/en/modules/tools/csv-profiles.tt | 1 + .../prog/en/modules/tools/holidays.tt | 29 +++++++++++----------- .../prog/en/modules/tools/inventory.tt | 1 + .../prog/en/modules/tools/koha-news.tt | 1 + .../intranet-tmpl/prog/en/modules/tools/letter.tt | 3 +++ .../prog/en/modules/tools/manage-marc-import.tt | 4 +++ .../modules/tools/marc_modification_templates.tt | 2 ++ .../prog/en/modules/tools/modborrowers.tt | 2 ++ .../prog/en/modules/tools/overduerules.tt | 1 + .../prog/en/modules/tools/problem-reports.tt | 1 + .../prog/en/modules/tools/quotes-upload.tt | 1 + .../intranet-tmpl/prog/en/modules/tools/quotes.tt | 1 + .../prog/en/modules/tools/scheduler.tt | 3 ++- .../prog/en/modules/tools/stockrotation.tt | 2 ++ .../intranet-tmpl/prog/en/modules/tools/upload.tt | 1 + .../intranet-tmpl/prog/en/modules/tools/viewlog.tt | 1 + 23 files changed, 55 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt index 154b713771..f9fc02a5d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt @@ -38,6 +38,7 @@ [% ELSE %] [% IF ( files_loop ) %] + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt index 39b91853f8..18d77f43bd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt @@ -187,8 +187,8 @@ [% ELSIF rules %]
-

List of rules

Files
Name
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 5269cf003e..b7739184f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -42,6 +42,7 @@ [% IF ( itemresults ) %]

Warning, the following barcodes were not found:

[% ELSE %]

Warning: no barcodes were found

[% END %]
List of rules
Age
+ @@ -57,6 +58,7 @@ [% IF ( itemresults ) %]

Warning, the following itemnumbers were not found:

[% ELSE %]

Warning: no itemnumbers were found

[% END %]
Barcodes not found
Barcodes not found
+ @@ -73,6 +75,7 @@

Warning, the following items cannot be deleted:

Itemnumbers not found
Itemnumbers not found
+ @@ -111,6 +114,7 @@

Cannot be deleted
Cannot be deleted
+ [% IF ( show ) %][% END %] @@ -260,6 +264,7 @@

[% not_deleted_items | html %] item(s) could not be deleted: [% FOREACH not_deleted_itemnumber IN not_deleted_itemnumbers %][% not_deleted_itemnumber.itemnumber | html %][% END %]

[% IF ( not_deleted_loop ) %]
Items
 
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index dee7d79998..f58f86ffaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -74,6 +74,7 @@
Items
Itemnumber
+ @@ -97,6 +98,7 @@
Barcodes not found
Barcodes not found
+ @@ -152,6 +154,7 @@

Itemnumbers not found
Itemnumbers not found
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt index 14341364b6..9e7dd78ac5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt @@ -143,6 +143,7 @@
Items
 
+ @@ -175,6 +176,7 @@
Biblios
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt index 66ba593bf6..c4796a0545 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt @@ -129,6 +129,7 @@ | Clear all
Authorities
+ @@ -178,6 +179,7 @@
Checkouts
 
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index 268f6b6b7f..771f7ffffb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -183,6 +183,7 @@ | Clear all
Checkouts results
Due date
+ @@ -211,6 +212,7 @@ | Clear all
Biblios
 
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt index 70c27de5f6..d7dfdd4cfd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt @@ -294,6 +294,7 @@ [% IF csv_profiles %]
Authorities
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt index ba52fce510..9804b5a751 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt @@ -238,15 +238,12 @@

+

Holidays

[% IF ( EXCEPTION_HOLIDAYS_LOOP ) %] -

Exceptions

-
CSV profiles
CSV profile ID Name
+ @@ -264,14 +261,18 @@ - [% END %] + [% END %]
Exceptions
Date Title[% EXCEPTION_HOLIDAYS_LOO.TITLE | html %] [% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION | html %]
+ [% END %] [% IF ( WEEK_DAYS_LOOP ) %] -

Weekly - Repeatable holidays

+ @@ -293,8 +294,8 @@ [% END %] [% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %] -

Yearly - Repeatable holidays

Weekly - Repeatable holidays
Day of week
+ [% IF ( dateformat == "metric" ) %] @@ -321,12 +322,8 @@ [% END %] [% IF ( HOLIDAYS_LOOP ) %] -

Unique holidays

-
Yearly - Repeatable holidays
+ @@ -345,9 +342,13 @@ - [% END %] + [% END %]
Unique holidays
Date[% HOLIDAYS_LOO.TITLE | html %] [% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', '
') | html %]
+ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index 8edc3739b4..bfcae86deb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -235,6 +235,7 @@ [% END %] + [% UNLESS uploadedbarcodesflag %][% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index 5ab5ac5bd7..bc46bb3e33 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -143,6 +143,7 @@ [% IF ( opac_news_count ) %]
Inventory
Seen
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index fd98cdeca9..90ad8c8433 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -172,6 +172,7 @@ [% IF letter %]
News
  Location
+ @@ -488,6 +489,7 @@ [% IF letter.content && letter.content.length > 0 %][% letter.content.length | html %][% ELSE %]0[% END %]/160 characters [% END %]
Letter
Library
+
SQL
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 9c44024ccf..74a804fe57 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -275,6 +275,7 @@ [% IF ( did_commit ) %]
Completed import of records
Notice to delete
Library
+ @@ -307,6 +308,7 @@ [% IF ( did_revert ) %]
Success: Import reversed
Import information
Number of records added [% num_added | html %]
+ @@ -342,6 +344,7 @@ [% END %]
Import reverse information
Number of records deleted [% num_deleted | html %]
+ @@ -411,6 +414,7 @@ [% IF import_batch_id && !did_clean %]
Batch list
# File name
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index d7673761ee..8c162cb563 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -84,6 +84,7 @@

MARC modification templates [% template_id | html %]

Records
#
+ @@ -111,6 +112,7 @@ [% IF ( ActionsLoop ) %]
Templates
Template
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 55d4bb1388..6ced61d10c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -98,6 +98,7 @@ [% IF ( notfoundcardnumbers ) %]

Warning, the following cardnumbers were not found:

Template actions
Change order
+ @@ -140,6 +141,7 @@
Cardnumbers not found
Cardnumbers not found
+ [% IF ( op == 'show' ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt index 118b7dd7f7..d606c07cb8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt @@ -80,6 +80,7 @@ [% FOR tab IN tabs %]
Patrons
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt index 2bc746507c..9c69f5b311 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt @@ -70,6 +70,7 @@
Rules
 
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt index 299480b6e1..306b8bbe82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt @@ -76,6 +76,7 @@
Problem reports
 
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index a4a3b87878..62d1fba37b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -104,6 +104,7 @@

Quotes

[% IF quotes_count > 0 %] + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt index 775e68ca47..c1c5f051c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt @@ -76,8 +76,9 @@
-[% IF ( JOBS ) %]

Jobs already entered

+[% IF ( JOBS ) %]
Quotes
ID
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt index b73d736f10..bc27126999 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -99,6 +99,7 @@ [% IF existing_rotas.size > 0 %]
Jobs already entered
Date/Time Action
+ @@ -438,6 +439,7 @@ [% IF items.count > 0 %]
Stock rotation
Name
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt index e61e82d81d..b70df90fb0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -191,6 +191,7 @@ [% BLOCK table_results %]
Stock rotation manage items
Barcode
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index e870276099..0dfef56fb9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -303,6 +303,7 @@
Upload results
Filename
+ -- 2.11.0
Logs
Date