Bug 28242: added captions to tables and legends to forms

Ensured that in the OPAC, all tables have relevant captions and all forms have relevant legends.

Many of these have class="sr-only" so they are not visible but will be
available for people who use screen-readers.

To test:
1) Go to OPAC
2) Apply patch and dependencies
3) Check that on all pages, any tables have a caption (many of them will
    not be visible, but will be in the markup code)
4) Check that on all pages, any forms have a legend (many of them will
    not be visible, but will be in the markup code)
5) Check that the captions are appropriate and relevant
6) Check that the legends are appropriate and relevant

Sponsored-by: Catalyst IT

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Wainui Witika-Park 2021-05-02 09:52:18 +00:00 committed by Kyle M Hall
parent c265428e13
commit b650b026ff
40 changed files with 90 additions and 15 deletions

View file

@ -5,6 +5,7 @@
<h2>Clubs currently enrolled in</h2>
<table id="clubs-table-enrolled" class="table table-bordered table-striped">
<caption class="sr-only">Clubs</caption>
<thead>
<tr>
<th>Name</th>

View file

@ -7,6 +7,7 @@
<div class="container">
<form id="patron-enrollment-form">
<legend class="sr-only">Enrollment</legend>
<input type="hidden" name="id" value="[% club.id | html %]" />
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
<fieldset class="rows">

View file

@ -40,6 +40,7 @@
<div id="labeledmarc">
<table id="marc" class="table table-bordered table-striped">
<caption class="sr-only">MARC details</caption>
[% FOREACH tab0X IN tab0XX %]
<tr><th colspan="2">[% tab0X.tag | html %]</th></tr>
[% FOREACH subfiel IN tab0X.subfield %]

View file

@ -89,6 +89,7 @@
[% IF ( total ) %]
<div class="searchresults">
<table class="table table-bordered table-striped">
<caption class="sr-only">Authority search results</caption>
<thead>
<tr>
<th colspan="2">Authorized headings</th>

View file

@ -257,6 +257,7 @@
<form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form">
<table id="itemst" class="table table-bordered table-striped">
<caption class="sr-only">Items in your cart</caption>
<thead>
<tr>
<th class="noprint">&nbsp;</th>

View file

@ -41,6 +41,7 @@
<h1>Browse search</h1>
<form>
<legend class="sr-only">Browse search</legend>
<div class="form-row">
<div class="col">
<label for="browse-searchterm">Search for:</label>

View file

@ -50,6 +50,7 @@
[% END %]
<li style="list-style-type: none;">
<table class="table table-bordered table-striped">
<caption class="sr-only">Items in catalog</caption>
<tr>
[% FOREACH LEVEL_LOO IN LEVEL_LOOP %]
<td>

View file

@ -59,6 +59,7 @@
[% IF ( course_reserves ) %]
<table id="course-items-table" class="table table-bordered table-striped table-condensed">
<caption class="sr-only">Courses</caption>
<thead>
<tr>
<th class="anti-the">Title</th>

View file

@ -34,6 +34,7 @@
<h1>Courses</h1>
<table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
<caption class="sr-only">Courses</caption>
<thead>
<tr>
<th>Name</th>

View file

@ -365,6 +365,7 @@
[% IF ( TagsInputEnabled ) %]
[% IF ( loggedinusername ) %]
<form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
<legend class="sr-only">Tags</legend>
<div class="form-row">
<div class="col-3">
<label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
@ -426,6 +427,7 @@
[% IF ( OpacStarRatings != 'disable' ) %]
<form method="post" action="/cgi-bin/koha/opac-ratings.pl">
<legend class="sr-only">Star ratings</legend>
<div class="results_summary ratings">
[% SET rating_avg = ratings.get_avg_rating() %]
@ -594,6 +596,7 @@
[% IF ( serialcollection ) %]
<div id="serialcollection">
<table id="serialcollectiont" class="table table-bordered table-striped">
<caption class="sr-only">Serial collections</caption>
<thead>
<tr>
<th id="serial_library">Library</th>
@ -820,6 +823,7 @@
[% IF ( subscription.latestserials ) %]
<p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
<table class="table table-bordered table-striped" id="subscriptionst">
<caption class="sr-only">Latest serials</caption>
<thead>
<tr>
<th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
@ -960,6 +964,7 @@
<div id="editions">
<h2>Other editions of this work</h2>
<table class="table table-bordered table-striped">
<caption class="sr-only">Other editions</caption>
[% FOREACH XISBN IN XISBNS %]
<tr>
<td>
@ -1211,6 +1216,7 @@
[% BLOCK items_table %]
<table class="table table-bordered table-striped" id="[% table_id | html %]">
<caption class="sr-only">Holdings</caption>
<thead>
<tr>

View file

@ -58,6 +58,7 @@
<form method="post" action="/cgi-bin/koha/opac-downloadshelf.pl">
<fieldset>
<select name="format" id="dlformat" required="required">
<legend>Choose format</legend>
<option value="">-- Choose format --</option>
<option value="ris">RIS (Zotero, EndNote, others)</option>
<option value="bibtex">BibTeX</option>
@ -71,6 +72,7 @@
</fieldset>
<fieldset class="action">
<legend class="sr-only">Choose action</legend>
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
<input type="submit" name="save" class="btn btn-primary" value="Go" />
<a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]" class="cancel close" data-dismiss="modal">Cancel</a>

View file

@ -75,7 +75,7 @@
<div id="searchfacetscontainer">
<div id="search-facets">
<form action="/cgi-bin/koha/opac-serial-issues.pl" id="filterform">
<h2><a href="#" class="menu-collapse-toggle">Refine your search</a></h2>
<legend><h2><a href="#" class="menu-collapse-toggle">Refine your search</a></h2></legend>
<ul class="menu-collapse">
<li>
<label for="libraryfilter">Library: </label>
@ -121,6 +121,7 @@
<div class="yeardata tabsub" id="show[% year.year | html %]" style="display:none">
[% END %]
<table class="subscriptionstclass table table-bordered table-striped">
<caption class="sr-only">Subscriptions</caption>
<thead>
<tr>
<th>Date</th>

View file

@ -84,6 +84,7 @@
[% END %]
</div>
<table id="table_holdshistory" class="table table-bordered table-striped">
<caption class="sr-only">Holds history</caption>
<thead>
<tr>
<th class="anti-the">Title</th>

View file

@ -26,6 +26,7 @@
<h1 class="role" title="Click to expand this role">[% role.role_name | html %] ([% role.count | html %])</h1>
<div class="docs">
<table>
<caption class="sr-only">[% role.role_name | html %]</caption>
<thead>
<tr>
<th>Citation</th>

View file

@ -87,6 +87,7 @@
[% INCLUDE messages %]
[% IF backends %]
<form method="post" id="illrequestcreate-form" novalidate="novalidate">
<legend class="sr-only">Backends</legend>
<fieldset class="rows">
<label for="backend">Provider:</label>
<select name="backend">
@ -126,6 +127,7 @@
</div>
<table id="illrequestlist" class="table table-bordered table-striped">
<caption class="sr-only">Requests</caption>
<thead>
<tr>
<th>Request ID</th>
@ -242,8 +244,8 @@
[% ELSIF method == 'availability' %]
<h1>Interlibrary loan item availability</h1>
<div id="results">
<h2>Displaying availability results</h2>
<form method="POST" action="/cgi-bin/koha/opac-illrequests.pl">
<legend><h2>Displaying availability results</h2></legend>
[% FOREACH key IN whole.keys %]
[% value = whole.$key %]
[% IF key != 'custom_key' && key != 'custom_value' %]

View file

@ -38,6 +38,7 @@
Issue notes have not been enabled. Please contact the library.
[% ELSE %]
<form id="issue-note" action="/cgi-bin/koha/opac-issue-note.pl" method="post">
<legend class="sr-only">Edit issue note</legend>
<fieldset>
<label for="note" class="required">Note:</label>
<input type="text" name="note" value="[% note | html %]">

View file

@ -71,6 +71,7 @@
[% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]
[% UNLESS news_item %]
<form id="news-branch-select" class="form-inline" name="news-branch-select" method="get" action="/cgi-bin/koha/opac-main.pl">
<legend class="sr-only">News</legend>
<label for="news-branch">Display news for: </label>
<select id="news-branch" name="branch">
[% IF ( branchcode == "" ) %]

View file

@ -42,6 +42,7 @@
<input type="hidden" name="modify" value="yes" />
<table class="table table-bordered table-condensed table-striped">
<caption class="sr-only">Your messaging settings</caption>
<thead>
<tr>
<th>&nbsp;</th>

View file

@ -62,6 +62,7 @@
[% IF logged_in_user.category.effective_change_password %]
[% IF ( Ask_data ) %]
<form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off">
<legend class="sr-only">Change your password</legend>
<fieldset>
[% IF ( logged_in_user.category.effective_require_strong_password ) %]
<div class="alert alert-info">Your password must contain at least [% logged_in_user.category.effective_min_password_length | html %] characters, including UPPERCASE, lowercase and numbers.</div>

View file

@ -117,6 +117,7 @@
<div class="alert alert-info">You can't reset your password.</div>
[% ELSIF (password_recovery) %]
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off">
<legend class="sr-only">Password recovery</legend>
<input type="hidden" name="koha_login_context" value="opac" />
<p>To reset your password, enter your login or your email address.</p>
<fieldset class="brief">
@ -138,6 +139,7 @@
[% ELSIF (new_password) %]
[% UNLESS ( errLinkNotValid ) %]
<form id="mainform" name="mainform" action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off">
<legend class="sr-only">Password not valid</legend>
<input type="hidden" name="koha_login_context" value="opac" />
<fieldset class="brief">
[% IF ( RequireStrongPassword ) %]

View file

@ -44,7 +44,7 @@
<form action="/cgi-bin/koha/opac-patron-consent.pl" method="post">
[% IF Koha.Preference('GDPR_Policy') %]
<h2 id="GDPR_consents">GDPR consents</h2>
<legend><h2 id="GDPR_consents">GDPR consents</h2></legend>
<input type="hidden" name="op" value="gdpr_proc_save"/>
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
<fieldset>

View file

@ -57,6 +57,7 @@
<p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
<p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
<legend class="sr-only">Privacy rule</legend>
<input type="hidden" name="op" value="update_privacy" />
<fieldset>
<label for="privacy">Please choose your privacy rule:</label>
@ -137,6 +138,7 @@
<h2>Immediate deletion</h2>
<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
<legend class="sr-only">Immediate deletion</legend>
<input type="hidden" name="op" value="delete_record" />
<p>Whatever your privacy rule you choose, you can delete all your checkout history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
<fieldset class="action">

View file

@ -84,6 +84,7 @@
[% END %]
<div id="tabs-container" style="overflow:hidden">
<table id="readingrec" class="table table-bordered table-striped">
<caption class="sr-only">Checkout history</caption>
<thead>
<tr>
<th style="display:none;" class="noExport">Type</th>

View file

@ -52,6 +52,7 @@
<div id="reportproblem" class="maincontent toptabs">
<form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post">
<legend class="sr-only">Report a problem</legend>
<input type="hidden" name="op" value="addreport" />
<fieldset class="rows">
<ol>

View file

@ -39,6 +39,7 @@
<h1>Place article request for [% biblio.title | html %]</h1>
<form id="place-article-request" method="post" action="/cgi-bin/koha/opac-request-article.pl">
<legend class="sr-only">Place article request</legend>
<input type="hidden" name="action" value="create" />
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblio.biblionumber | html %]" />

View file

@ -157,9 +157,10 @@
</div>
[% END %]
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
<input type="hidden" name="place_reserve" value="1"/>
<!-- These values are set dynamically by js -->
<form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
<legend class="sr-only">Hold requests</legend>
<input type="hidden" name="place_reserve" value="1"/>
<!-- These values are set dynamically by js -->
<input type="hidden" name="biblionumbers" id="biblionumbers"/>
<input type="hidden" name="selecteditems" id="selections"/>
<div id="bigloop">

View file

@ -164,6 +164,7 @@
<div class="searchresults">
<form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form">
<legend class="sr-only">Sort</legend>
[% IF ( searchdesc ) %]
[% FOREACH QUERY_INPUT IN QUERY_INPUTS %]
<input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/>
@ -301,6 +302,7 @@
<!-- TABLE RESULTS START -->
<table class="table table-striped">
<caption class="sr-only">Results</caption>
<!-- Actual Search Results -->
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
@ -647,6 +649,7 @@
</form> <!-- / #bookbag_form -->
<form id="hold_form" name="hold_form" method="get" action="/cgi-bin/koha/opac-reserve.pl">
<legend class="sr-only">Pages</legend>
<!-- The value will be set by holdBiblioNums() in basket.js -->
<input id="hold_form_biblios" type="hidden" name="biblionumbers" value=""/>
</form>

View file

@ -43,6 +43,7 @@
<h2>Comments on <em>[% INCLUDE 'biblio-title.inc' %]</em></h2>
[% IF ( biblio.author ) %]<h3>[% biblio.author | html %]</h3>[% END %]
<form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
<legend class="sr-only">Comments</legend>
<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
[% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
<fieldset>

View file

@ -45,6 +45,7 @@
<p id="routing-list-intro">You are subscribed to the routing lists for following serial titles. If you wish to make changes, please contact the library.</p>
<table class="table table-bordered table-striped" id="routingtable">
<caption class="sr-only">Routing lists</caption>
<thead>
<tr>
<th>Subscription title</th>

View file

@ -58,10 +58,12 @@
[% IF ( current_biblio_searches ) %]
<h2>Current session</h2>
<form action="/cgi-bin/koha/opac-search-history.pl" method="post">
<legend class="sr-only">Toolbar control</legend>
[% INCLUDE 'toolbar_controls' %]
<input type="hidden" name="action" value="delete" />
<table class="historyt table table-bordered table-striped">
<caption class="sr-only">Current session</caption>
<thead>
<tr>
<th></th>
@ -101,10 +103,12 @@
[% IF ( previous_biblio_searches ) %]
<h2>Previous sessions</h2>
<form action="/cgi-bin/koha/opac-search-history.pl" method="post">
<legend class="sr-only">Toolbar control</legend>
[% INCLUDE 'toolbar_controls' %]
<input type="hidden" name="action" value="delete" />
<table class="historyt table table-bordered table-striped">
<caption class="sr-only">Previous sessions</caption>
<thead>
<tr>
<th></th>
@ -152,9 +156,11 @@
[% IF ( current_authority_searches ) %]
<h2>Current session</h2>
<form action="/cgi-bin/koha/opac-search-history.pl" method="post">
<legend class="sr-only">Toolbar control</legend>
[% INCLUDE 'toolbar_controls' %]
<input type="hidden" name="action" value="delete" />
<table class="historyt table table-bordered table-striped">
<caption class="sr-only">Current session</caption>
<thead>
<tr>
<th></th>
@ -187,9 +193,11 @@
[% IF ( previous_authority_searches ) %]
<h2>Previous sessions</h2>
<form action="/cgi-bin/koha/opac-search-history.pl" method="post">
<legend class="sr-only">Toolbar control</legend>
[% INCLUDE 'toolbar_controls' %]
<input type="hidden" name="action" value="delete" />
<table class="historyt table table-bordered table-striped">
<caption class="sr-only">Previous sessions</caption>
<thead>
<tr>
<th></th>

View file

@ -27,8 +27,8 @@
[% END %]
[% ELSE %]
<h1>Sending your cart</h1>
<form action="/cgi-bin/koha/opac-sendbasket.pl" method="post" id="sendbasketform">
<legend><h1>Sending your cart</h1></legend>
<fieldset>
<label for="email_add">Email address:</label>
<input type="text" id="email_add" name="email_add" size="43" class="focus" />

View file

@ -30,8 +30,8 @@
</div>
<p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelfid | html %]">Back to lists</a></p>
[% ELSE %]
<h1>Sending your list</h1>
<form action="/cgi-bin/koha/opac-sendshelf.pl" method="post" id="sendshelfform">
<legend><h1>Sending your list</h1></legend>
<fieldset>
<label for="email">Email address:</label>
<input type="text" id="email" name="email" size="43" class="focus" />

View file

@ -53,7 +53,7 @@
<form method="post" name="f">
[% FOREACH subscription_LOO IN subscription_LOOP %]
<div id="subscriptionline[% subscription_LOO.subscriptionid | html %]" class="subscriptionline">
<h2>Subscription information for [% subscription_LOO.bibliotitle | html %]</h2>
<caption><h2>Subscription information for [% subscription_LOO.bibliotitle | html %]</h2><caption>
<p>
The current subscription began on [% subscription_LOO.startdate | html %] and is issued
[% IF ( subscription_LOO.periodicity1 ) %]

View file

@ -76,6 +76,7 @@
[% ELSIF op=='invite' %]
<div id="invite">
<form id="share_list">
<legend class="sr-only">Share list</legend>
<fieldset class="rows">
<input type="hidden" name="op" value="conf_invite"/>
<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]"/>

View file

@ -735,6 +735,11 @@
[% IF shelves.count %]
<table class="table">
[% IF category == PRIVATE %]
<caption class="sr-only">Your lists</caption>
[% ELSIF category == PUBLIC %]
<caption class="sr-only">Public lists</caption>
[% END %]
<thead>
<tr>
<th>List name</th>

View file

@ -37,6 +37,7 @@
<div id="showreviews" class="searchresults maincontent">
<h1>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink" aria-label="Subscribe to recent comments"><i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to recent comments"></i></a></h1>
<table class="table table-striped">
<caption class="sr-only">Comments</caption>
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
[% FOREACH review IN reviews %]

View file

@ -349,6 +349,7 @@
[% END %]
<table id="suggestt" class="table table-bordered table-striped">
<caption class="sr-only">Your purchase suggestions<caption>
<thead>
<tr>
[% IF ( loggedinusername ) %]<th>&nbsp;</th>[% END %]

View file

@ -166,6 +166,7 @@
[% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
<form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
<legend class="sr-only">Auto-renewal</legend>
<label for="yes-autorenew_checkouts">
Allow auto-renewal:
</label>
@ -231,6 +232,7 @@
<div id="opac-user-checkouts">
[% IF ( issues_count ) %]
<form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
<legend class="sr-only">Renew selected</legend>
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
<input type="hidden" name="from" value="opac_user" />
<table id="checkoutst" class="table table-bordered table-striped">
@ -456,6 +458,7 @@
[% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
<form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post">
<legend class="sr-only">Renew</legend>
<input type="hidden" name="from" value="opac_user" />
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
[% FOREACH ISSUE IN ISSUES %]
@ -468,6 +471,7 @@
[% END %]
[% ELSE %]
<table class="table table-bordered table-striped">
<caption class="sr-only">Checked out</caption>
<tr><td>You have nothing checked out</td></tr>
</table>
[% END # IF issues_count %]
@ -482,8 +486,9 @@
[% IF ( OPACFinesTab ) %]
<!-- FINES BOX -->
[% IF ( amountoutstanding > 0 ) %]
<div id="opac-user-fines"> <h2>Charges</h2>
<div id="opac-user-fines">
<table class="table table-bordered table-striped">
<caption>Charges</caption>
<thead><tr><th colspan="2">Amount</th></tr></thead>
<tbody>
<tr>
@ -496,8 +501,9 @@
[% END %]
[% IF ( amountoutstanding < 0 ) %]
<div id="opac-user-fines"> <h2>Credits</h2>
<div id="opac-user-fines">
<table class="table table-bordered table-striped">
<caption>Credits</caption>
<thead><tr><th colspan="2">Amount</th></tr></thead>
<tbody>
<tr>
@ -509,8 +515,9 @@
[% END %]
[% IF relatives_with_fines %]
<div id="opac-user-relative-fines"> <h2>Fines and charges</h2>
<div id="opac-user-relative-fines">
<table class="table table-bordered table-striped">
<caption>Fines and charges</caption>
<thead>
<tr>
<th colspan="2">Amount</th>
@ -532,6 +539,7 @@
[% IF relatives %]
<div id="opac-user-relative-issues">
<table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
<caption class="sr-only">Relative issues</caption>
<thead>
<tr>
<th class="anti-the">Title</th>
@ -792,6 +800,7 @@
<td class="article-request-cancel">
<span class="tdlabel">Cancel:</span>
<form action="/cgi-bin/koha/opac-article-request-cancel.pl" id="delete_article_request_[% ar.id | html %]">
<legend class="sr-only">Cancel article request</legend>
<input type="hidden" name="id" value="[% ar.id | html %]" />
<button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
</form>
@ -802,6 +811,7 @@
</table>
[% ELSE %]
<table class="table table-bordered table-striped">
<caption class="sr-only">Article requests</caption>
<tr><td>You have no article requests currently.</td></tr>
</table>
[% END # IF article_requests_current.count %]

View file

@ -75,8 +75,8 @@
[%# We have results from a check-in attempt %]
<div id="checkins" class="sci_results_list">
[% IF ( success && success.size > 0 || errors && errors.size > 0 ) %]
<h2>Results</h2>
<table id="sci_bcheckins_table" class="table table-bordered table-striped dataTable no-footer">
<caption><h2>Results</h2></caption>
<thead>
<th>Barcode</th>
<th>Status</th>
@ -98,6 +98,7 @@
</table>
<div>
<form method="post" action="#" id="finish_form">
<legend class="sr-only">Finish</legend>
<button id="sci_finish_button" type="submit" class="btn btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Finish</button>
</form>
</div>
@ -111,6 +112,7 @@
[%# Prompt for barcodes %]
<div id="new_checkins" class="sci_entry">
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sci/sci-main.pl">
<legend class="sr-only">Scan</legend>
<div class="row">
<div class="col-auto">
<label for="barcode_input">Scan the item or enter its barcode:</label>
@ -128,6 +130,7 @@
<div class="col">
<div class="sci_input_append">
<table id="sci_barcodes_table" class="table table-bordered table-striped dataTable no-footer" style="display: none;">
<caption class="sr-only">Barcodes</caption>
<thead>
<th class="barcodes_column">Barcode</th>
</thead>

View file

@ -97,6 +97,7 @@
[% IF ( returnitem && Koha.Preference('SCOAllowCheckin') ) %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
<legend class="sr-only">Return</legend>
<input type="hidden" name="op" value="returnbook" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% barcode | html %]" />
@ -106,6 +107,7 @@
[% END %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post">
<legend class="sr-only">Error</legend>
<input type="hidden" name="op" value="" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% barcode | html %]" />
@ -124,6 +126,7 @@
[% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
<legend class="sr-only">Return</legend>
<input type="hidden" name="op" value="returnbook" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% barcode | html %]" />
@ -135,6 +138,7 @@
[% UNLESS ( renew ) %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
<legend class="sr-only">Renew</legend>
<input type="hidden" name="op" value="renew" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% barcode | html %]" />
@ -144,6 +148,7 @@
</form>
[% ELSE %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
<legend class="sr-only">Renew</legend>
<input type="hidden" name="op" value="renew" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% barcode | html %]" />
@ -154,6 +159,7 @@
[% END %]
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post">
<legend class="sr-only">Cancel</legend>
<input type="hidden" name="op" value="" />
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="newissues" value="[% newissues | html %]" />
@ -234,13 +240,13 @@
[% IF ( validuser ) %]
<div id="newcheckout" class="sco_entry">
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');">
<h2>
<legend><h2>
[% IF ( Koha.Preference('SCOAllowCheckin') ) %]
Check out, return, or renew an item:
[% ELSE %]
Check out or renew an item:
[% END %]
</h2>
</h2></legend>
<div class="row">
<div class="col">
<label for="barcode">Scan a new item or enter its barcode:</label>
@ -335,6 +341,7 @@
[% END %]
<td>
<form action="/cgi-bin/koha/sco/sco-main.pl" method="post">
<legend class="sr-only">Issue renews</legend>
<input type="hidden" name="patronid" value="[% patronid | html %]" />
<input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" />
<input type="hidden" name="newissues" value="[% newissues | html %]" />