View | Details | Raw Unified | Return to bug 33766
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_33766-a11y_fix_ambiguous_form-field_in_opac-auth.tt (-1 / +1 lines)
Lines 9-15 return { Link Here
9
9
10
        # Do you stuffs here
10
        # Do you stuffs here
11
        $dbh->do(
11
        $dbh->do(
12
            q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','Cardnumber')  }
12
            q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','cardnumber')  }
13
        );
13
        );
14
14
15
        # sysprefs
15
        # sysprefs
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-4 / +3 lines)
Lines 186-194 OPAC: Link Here
186
            - pref: OPACLoginLabelTextContent
186
            - pref: OPACLoginLabelTextContent
187
              default: Cardnumber
187
              default: Cardnumber
188
              choices:
188
              choices:
189
                  Cardnumber: Cardnumber
189
                  cardnumber: Cardnumber
190
                  Username: Username
190
                  username: Username
191
                  "Cardnumber or Username": Cardnumber or Username
191
                  cardnumberorusername: Cardnumber or Username
192
            - "as the text content of the userid input field's label."
192
            - "as the text content of the userid input field's label."
193
        -
193
        -
194
            - pref: OPACShowMusicalInscripts
194
            - pref: OPACShowMusicalInscripts
Lines 542-548 OPAC: Link Here
542
              type: textarea
542
              type: textarea
543
              syntax: text/html
543
              syntax: text/html
544
              class: code
544
              class: code
545
546
        -
545
        -
547
            - pref: OpacBrowseSearch
546
            - pref: OpacBrowseSearch
548
              default: 0
547
              default: 0
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc (+11 lines)
Lines 168-170 Link Here
168
        </li>
168
        </li>
169
    [% END %]
169
    [% END %]
170
[% END %]
170
[% END %]
171
172
[% BLOCK login_label %]
173
    [%- SET preference_value = Koha.Preference('OPACLoginLabelTextContent') %]
174
    [%- SET label = "Cardnumber" %]
175
    [%- IF preference_value == "username" %]
176
        [%- SET label = "Username" %]
177
    [%- ELSIF preference_value == "cardnumberorusername" %]
178
        [%- SET label = "Cardnumber or Username" %]
179
    [%- END %]
180
    <label for="[% for | html %]">[% label | html %]:</label>
181
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +1 lines)
Lines 434-440 Link Here
434
                            <input type="hidden" name="koha_login_context" value="opac" />
434
                            <input type="hidden" name="koha_login_context" value="opac" />
435
                            <fieldset class="brief">
435
                            <fieldset class="brief">
436
                                <div class="local-login">
436
                                <div class="local-login">
437
                                    <label for="muserid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label><input type="text" id="muserid" name="login_userid" autocomplete="off" />
437
                                    [% PROCESS login_label for="muserid" %]<input type="text" id="muserid" name="login_userid" autocomplete="off" />
438
                                    <label for="mpassword">Password:</label><input type="password" id="mpassword" name="login_password" autocomplete="off" />
438
                                    <label for="mpassword">Password:</label><input type="password" id="mpassword" name="login_password" autocomplete="off" />
439
                                    <fieldset class="action">
439
                                    <fieldset class="action">
440
                                        <input type="hidden" name="op" value="cud-login" />
440
                                        <input type="hidden" name="op" value="cud-login" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-1 / +1 lines)
Lines 231-237 Link Here
231
                                            <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
231
                                            <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
232
                                        [% END %]
232
                                        [% END %]
233
                                        <div class="form-group">
233
                                        <div class="form-group">
234
                                            <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
234
                                            [% PROCESS login_label for="userid" %]
235
                                            <input class="form-control" type="text"  size="25" id="userid"  name="login_userid" autocomplete="off" />
235
                                            <input class="form-control" type="text"  size="25" id="userid"  name="login_userid" autocomplete="off" />
236
                                        </div>
236
                                        </div>
237
                                        <div class="form-group">
237
                                        <div class="form-group">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (-1 / +1 lines)
Lines 199-205 Link Here
199
                                            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
199
                                            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
200
                                        [% END # /IF  identity_providers.size %]
200
                                        [% END # /IF  identity_providers.size %]
201
                                        <div class="local-login">
201
                                        <div class="local-login">
202
                                            <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
202
                                            [% PROCESS login_label for='userid' %]
203
                                            <input class="form-control" type="text" id="userid" name="login_userid" autocomplete="off" />
203
                                            <input class="form-control" type="text" id="userid" name="login_userid" autocomplete="off" />
204
                                            <label for="password">Password:</label>
204
                                            <label for="password">Password:</label>
205
                                            <input class="form-control" type="password" id="password" name="login_password" autocomplete="off" />
205
                                            <input class="form-control" type="password" id="password" name="login_password" autocomplete="off" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt (-1 / +2 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Categories %]
3
[% USE Categories %]
4
[% USE AdditionalContents %]
4
[% USE AdditionalContents %]
5
[% PROCESS 'html_helpers.inc' %]
5
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
Lines 132-138 Link Here
132
                            <p>To reset your password, enter your login or your email address.</p>
133
                            <p>To reset your password, enter your login or your email address.</p>
133
                            <fieldset class="brief">
134
                            <fieldset class="brief">
134
                                <div class="form-group">
135
                                <div class="form-group">
135
                                    <label for="username">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
136
                                    [% PROCESS login_label for="username" %]
136
                                    <input class="form-control" type="text" id="username" size="40" name="username" value="[% username | html %]" />
137
                                    <input class="form-control" type="text" id="username" size="40" name="username" value="[% username | html %]" />
137
                                </div>
138
                                </div>
138
139
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt (-1 / +2 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE AdditionalContents %]
3
[% USE AdditionalContents %]
4
[% PROCESS 'html_helpers.inc' %]
4
[% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => news_lang, library => logged_in_user.branchcode || default_branch ) %]
5
[% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => news_lang, library => logged_in_user.branchcode || default_branch ) %]
5
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
Lines 108-114 Link Here
108
                                    <input type="hidden" name="koha_login_context" value="opac" />
109
                                    <input type="hidden" name="koha_login_context" value="opac" />
109
                                    <fieldset class="brief">
110
                                    <fieldset class="brief">
110
                                        <legend>Log in to your account:</legend>
111
                                        <legend>Log in to your account:</legend>
111
                                        <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
112
                                        [% PROCESS login_label for="userid" %]
112
                                        [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
113
                                        [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
113
                                            <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
114
                                            <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
114
                                        [% ELSE %]
115
                                        [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt (-1 / +1 lines)
Lines 75-81 Link Here
75
75
76
                            <fieldset class="brief">
76
                            <fieldset class="brief">
77
                                <div class="form-group">
77
                                <div class="form-group">
78
                                    <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
78
                                    [% PROCESS login_label for="userid" %]
79
                                    <input class="form-control" autocomplete="off" type="text"  size="25" id="userid"  name="userid" />
79
                                    <input class="form-control" autocomplete="off" type="text"  size="25" id="userid"  name="userid" />
80
                                </div>
80
                                </div>
81
                                <div class="form-group">
81
                                <div class="form-group">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 / +2 lines)
Lines 8-13 Link Here
8
[% USE AdditionalContents %]
8
[% USE AdditionalContents %]
9
[% USE Branches %]
9
[% USE Branches %]
10
[% SET SCOMainUserBlock = AdditionalContents.get( location => "SCOMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10
[% SET SCOMainUserBlock = AdditionalContents.get( location => "SCOMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11
[% PROCESS 'html_helpers.inc' %]
11
[% INCLUDE 'doc-head-open.inc' %]
12
[% INCLUDE 'doc-head-open.inc' %]
12
<title>Self checkout &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %]</title>
13
<title>Self checkout &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %]</title>
13
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
14
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Lines 461-467 Link Here
461
                                    <fieldset>
462
                                    <fieldset>
462
                                        [% IF ( Koha.Preference('SelfCheckoutByLogin') ) %]
463
                                        [% IF ( Koha.Preference('SelfCheckoutByLogin') ) %]
463
                                            <legend>Log in to your account</legend>
464
                                            <legend>Log in to your account</legend>
464
                                            <label for="patronlogin">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
465
                                            [% PROCESS login_label for="patronlogin" %]
465
                                            <input type="text" id="patronlogin" class="focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/>
466
                                            <input type="text" id="patronlogin" class="focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/>
466
                                            <label for="patronpw">Password:</label>
467
                                            <label for="patronpw">Password:</label>
467
                                            <input type="password" id="patronpw" size="20" name="patronpw" autocomplete="off"/>
468
                                            <input type="password" id="patronpw" size="20" name="patronpw" autocomplete="off"/>
468
- 

Return to bug 33766