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 (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "33766",
5
    description => "Add syspref to determine text content of userid input field's label.",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        # Do you stuffs here
11
        $dbh->do(
12
            q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','Cardnumber')  }
13
        );
14
15
        # sysprefs
16
        say $out "Added new system preference 'OPACLoginLabelTextContent'";
17
    },
18
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 481-486 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
481
('OPACLocalCoverImages','0','1','Display local cover images on OPAC search and details pages.','YesNo'),
481
('OPACLocalCoverImages','0','1','Display local cover images on OPAC search and details pages.','YesNo'),
482
('OpacLocationBranchToDisplay','holding','holding|home|both','In the OPAC, under location show which branch for Location in the record details.','Choice'),
482
('OpacLocationBranchToDisplay','holding','holding|home|both','In the OPAC, under location show which branch for Location in the record details.','Choice'),
483
('OpacLocationOnDetail','holding','holding|home|both|column','In the OPAC detail, display the shelving location on its own column or under a library columns.',  'Choice'),
483
('OpacLocationOnDetail','holding','holding|home|both|column','In the OPAC detail, display the shelving location on its own column or under a library columns.',  'Choice'),
484
('OPACLoginLabelTextContent','Cardnumber',NULL,NULL,NULL),
484
('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice'),
485
('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice'),
485
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
486
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
486
('OpacMaintenanceNotice','','','A user-defined block of HTML to appear on screen when OpacMaintenace is enabled','Textarea'),
487
('OpacMaintenanceNotice','','','A user-defined block of HTML to appear on screen when OpacMaintenace is enabled','Textarea'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+10 lines)
Lines 171-176 OPAC: Link Here
171
                  column: "on a separate column"
171
                  column: "on a separate column"
172
            - "for items on the OPAC record details page."
172
            - "for items on the OPAC record details page."
173
            - "<br />Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the <a href='/cgi-bin/koha/admin/columns_settings.pl'>configure columns</a> administration page."
173
            - "<br />Note: If 'on a separate column' is selected, you still need to enable the item_shelving_location display on the <a href='/cgi-bin/koha/admin/columns_settings.pl'>configure columns</a> administration page."
174
        -
175
            - Use
176
            - pref: OPACLoginLabelTextContent
177
              default: Cardnumber
178
              choices:
179
                  Cardnumber: Cardnumber
180
                  Username: Username
181
                  "Cardnumber or Username": Cardnumber or Username
182
            - "as the text content of the userid input field's label."
174
        -
183
        -
175
            - pref: OPACShowMusicalInscripts
184
            - pref: OPACShowMusicalInscripts
176
              default: 0
185
              default: 0
Lines 529-534 OPAC: Link Here
529
              type: textarea
538
              type: textarea
530
              syntax: text/html
539
              syntax: text/html
531
              class: code
540
              class: code
541
532
        -
542
        -
533
            - pref: OpacBrowseSearch
543
            - pref: OpacBrowseSearch
534
              default: 0
544
              default: 0
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +1 lines)
Lines 426-432 Link Here
426
                            <input type="hidden" name="koha_login_context" value="opac" />
426
                            <input type="hidden" name="koha_login_context" value="opac" />
427
                            <fieldset class="brief">
427
                            <fieldset class="brief">
428
                                <div class="local-login">
428
                                <div class="local-login">
429
                                    <label for="muserid">Login:</label><input type="text" id="muserid" name="userid" autocomplete="off" />
429
                                    <label for="muserid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label><input type="text" id="muserid" name="userid" autocomplete="off" />
430
                                    <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" autocomplete="off" />
430
                                    <label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" autocomplete="off" />
431
                                    <fieldset class="action">
431
                                    <fieldset class="action">
432
                                        <input type="submit" class="btn btn-primary" value="Log in" />
432
                                        <input type="submit" class="btn btn-primary" value="Log in" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-1 / +1 lines)
Lines 218-224 Link Here
218
                                            <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
218
                                            <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
219
                                        [% END %]
219
                                        [% END %]
220
                                        <div class="form-group">
220
                                        <div class="form-group">
221
                                            <label for="userid">Login:</label>
221
                                            <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
222
                                            <input class="form-control" type="text"  size="25" id="userid"  name="userid" autocomplete="off" />
222
                                            <input class="form-control" type="text"  size="25" id="userid"  name="userid" autocomplete="off" />
223
                                        </div>
223
                                        </div>
224
                                        <div class="form-group">
224
                                        <div class="form-group">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (-1 / +1 lines)
Lines 205-211 Link Here
205
                                            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
205
                                            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
206
                                        [% END # /IF  identity_providers.size %]
206
                                        [% END # /IF  identity_providers.size %]
207
                                        <div class="local-login">
207
                                        <div class="local-login">
208
                                            <label for="userid">Login:</label>
208
                                            <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
209
                                            <input class="form-control" type="text" id="userid" name="userid" autocomplete="off" />
209
                                            <input class="form-control" type="text" id="userid" name="userid" autocomplete="off" />
210
                                            <label for="password">Password:</label>
210
                                            <label for="password">Password:</label>
211
                                            <input class="form-control" type="password" id="password" name="password" autocomplete="off" />
211
                                            <input class="form-control" type="password" id="password" name="password" autocomplete="off" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt (-1 / +1 lines)
Lines 121-127 Link Here
121
                            <p>To reset your password, enter your login or your email address.</p>
121
                            <p>To reset your password, enter your login or your email address.</p>
122
                            <fieldset class="brief">
122
                            <fieldset class="brief">
123
                                <div class="form-group">
123
                                <div class="form-group">
124
                                    <label for="username">Login:</label>
124
                                    <label for="username">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
125
                                    <input class="form-control" type="text" id="username" size="40" name="username" value="[% username | html %]" />
125
                                    <input class="form-control" type="text" id="username" size="40" name="username" value="[% username | html %]" />
126
                                </div>
126
                                </div>
127
127
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt (-1 / +1 lines)
Lines 86-92 Link Here
86
                                    <input type="hidden" name="koha_login_context" value="opac" />
86
                                    <input type="hidden" name="koha_login_context" value="opac" />
87
                                    <fieldset class="brief">
87
                                    <fieldset class="brief">
88
                                        <legend>Log in to your account:</legend>
88
                                        <legend>Log in to your account:</legend>
89
                                        <label for="userid">Login:</label>
89
                                        <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
90
                                        [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
90
                                        [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
91
                                            <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
91
                                            <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
92
                                        [% ELSE %]
92
                                        [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt (-1 / +1 lines)
Lines 74-80 Link Here
74
74
75
                            <fieldset class="brief">
75
                            <fieldset class="brief">
76
                                <div class="form-group">
76
                                <div class="form-group">
77
                                    <label for="userid">Login:</label>
77
                                    <label for="userid">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
78
                                    <input class="form-control" autocomplete="off" type="text"  size="25" id="userid"  name="userid" />
78
                                    <input class="form-control" autocomplete="off" type="text"  size="25" id="userid"  name="userid" />
79
                                </div>
79
                                </div>
80
                                <div class="form-group">
80
                                <div class="form-group">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 / +1 lines)
Lines 419-425 Link Here
419
                                    <fieldset>
419
                                    <fieldset>
420
                                        [% IF ( Koha.Preference('SelfCheckoutByLogin') ) %]
420
                                        [% IF ( Koha.Preference('SelfCheckoutByLogin') ) %]
421
                                            <legend>Log in to your account</legend>
421
                                            <legend>Log in to your account</legend>
422
                                            <label for="patronlogin">Login:</label>
422
                                            <label for="patronlogin">[% Koha.Preference('OPACLoginLabelTextContent') | html %]:</label>
423
                                            <input type="text" id="patronlogin" class="focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/>
423
                                            <input type="text" id="patronlogin" class="focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off"/>
424
                                            <label for="patronpw">Password:</label>
424
                                            <label for="patronpw">Password:</label>
425
                                            <input type="password" id="patronpw" size="20" name="patronpw" autocomplete="off"/>
425
                                            <input type="password" id="patronpw" size="20" name="patronpw" autocomplete="off"/>
426
- 

Return to bug 33766