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

(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 479-484 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
479
('OPACDetailQRCode','0','','Enable the display of a QR Code on the OPAC detail page','YesNo'),
479
('OPACDetailQRCode','0','','Enable the display of a QR Code on the OPAC detail page','YesNo'),
480
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
480
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
481
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
481
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
482
('OpacEnableLocalLogin','1','','If ON enables local login for the OPAC','YesNo'),
482
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
483
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
483
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
484
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
484
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
485
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
Lines 738-743 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
738
('SpineLabelFormat','<itemcallnumber><copynumber>','30|10','This preference defines the format for the quick spine label printer. Just list the fields you would like to see in the order you would like to see them, surrounded by <>, for example <itemcallnumber>.','Textarea'),
739
('SpineLabelFormat','<itemcallnumber><copynumber>','30|10','This preference defines the format for the quick spine label printer. Just list the fields you would like to see in the order you would like to see them, surrounded by <>, for example <itemcallnumber>.','Textarea'),
739
('SpineLabelShowPrintOnBibDetails','0','','If turned on, a \"Print label\" link will appear for each item on the bib details page in the staff interface.','YesNo'),
740
('SpineLabelShowPrintOnBibDetails','0','','If turned on, a \"Print label\" link will appear for each item on the bib details page in the staff interface.','YesNo'),
740
('staffClientBaseURL','',NULL,'Specify the base URL of the staff interface starting with http:// or https://. Do not include a trailing slash in the URL. (This must be filled in correctly for CAS, svc, and load_testing to work.)','free'),
741
('staffClientBaseURL','',NULL,'Specify the base URL of the staff interface starting with http:// or https://. Do not include a trailing slash in the URL. (This must be filled in correctly for CAS, svc, and load_testing to work.)','free'),
742
('StaffEnableLocalLogin','1','','If ON enables local login for the staff interface','YesNo'),
741
('StaffHighlightedWords','1','','Highlight search terms on staff interface','YesNo'),
743
('StaffHighlightedWords','1','','Highlight search terms on staff interface','YesNo'),
742
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
744
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
743
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
745
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 990-995 OPAC: Link Here
990
            - "fields (separate values with |). Tabs appear in the order listed.<br/>"
990
            - "fields (separate values with |). Tabs appear in the order listed.<br/>"
991
            - "<em>Currently supported values</em>: Item types (<strong>itemtypes</strong>), Collection, (<strong>ccode</strong>) and Shelving location (<strong>loc</strong>)."
991
            - "<em>Currently supported values</em>: Item types (<strong>itemtypes</strong>), Collection, (<strong>ccode</strong>) and Shelving location (<strong>loc</strong>)."
992
    Authentication:
992
    Authentication:
993
        -
994
            - pref: OpacEnableLocalLogin
995
              choices:
996
                  1: Allow
997
                  0: "Don't allow"
998
            - patrons to log in using local user/password.
993
        -
999
        -
994
            - pref: OPACShibOnly
1000
            - pref: OPACShibOnly
995
              choices:
1001
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (+6 lines)
Lines 191-196 Staff interface: Link Here
191
                  0: "Don't show"
191
                  0: "Don't show"
192
            - a search field pulldown for 'Search the catalog' boxes.
192
            - a search field pulldown for 'Search the catalog' boxes.
193
    Authentication:
193
    Authentication:
194
        -
195
            - pref: StaffEnableLocalLogin
196
              choices:
197
                  1: Allow
198
                  0: "Don't allow"
199
            - staff to log in using local user/password.
194
        -
200
        -
195
            - pref: staffShibOnly
201
            - pref: staffShibOnly
196
              choices:
202
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (+4 lines)
Lines 120-129 Link Here
120
                </a>
120
                </a>
121
            </p>
121
            </p>
122
        [% END %]
122
        [% END %]
123
        [% IF Koha.Preference('StaffEnableLocalLogin') %]
123
            <hr/>
124
            <hr/>
124
            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
125
            <p>If you do not have an external account, but do have a local account, you can still log in: </p>
126
        [% END %]
125
    [% END # /IF  identity_providers.size %]
127
    [% END # /IF  identity_providers.size %]
126
128
129
    [% IF Koha.Preference('StaffEnableLocalLogin') %]
127
        <form action="[% script_name | html %]" method="post" name="loginform" id="loginform" class="validated">
130
        <form action="[% script_name | html %]" method="post" name="loginform" id="loginform" class="validated">
128
            [% INCLUDE 'csrf-token.inc' %]
131
            [% INCLUDE 'csrf-token.inc' %]
129
            <input type="hidden" name="op" value="cud-login" />
132
            <input type="hidden" name="op" value="cud-login" />
Lines 193-198 Link Here
193
196
194
        <p class="submit"><input id="submit-button" type="submit" class="btn btn-primary" value="Log in" tabindex="4" /></p>
197
        <p class="submit"><input id="submit-button" type="submit" class="btn btn-primary" value="Log in" tabindex="4" /></p>
195
        </form>
198
        </form>
199
    [% END %]
196
200
197
    [% IF ( casAuthentication ) %]
201
    [% IF ( casAuthentication ) %]
198
        <h4>CAS login</h4>
202
        <h4>CAS login</h4>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (+4 lines)
Lines 426-434 Link Here
426
                                        </a>
426
                                        </a>
427
                                    </p>
427
                                    </p>
428
                                [% END %]
428
                                [% END %]
429
                                [% IF Koha.Preference('OpacEnableLocalLogin') %]
429
                                    <hr/>
430
                                    <hr/>
430
                                    <p>If you do not have an external account, but do have a local account, you can still log in: </p>
431
                                    <p>If you do not have an external account, but do have a local account, you can still log in: </p>
432
                                [% END %]
431
                            [% END # /IF  identity_providers.size %]
433
                            [% END # /IF  identity_providers.size %]
434
                            [% IF Koha.Preference('OpacEnableLocalLogin') %]
432
                                <input type="hidden" name="koha_login_context" value="opac" />
435
                                <input type="hidden" name="koha_login_context" value="opac" />
433
                                <fieldset class="brief">
436
                                <fieldset class="brief">
434
                                    <div class="local-login">
437
                                    <div class="local-login">
Lines 456-461 Link Here
456
                                    [% END %]
459
                                    [% END %]
457
                                </fieldset>
460
                                </fieldset>
458
                            [% END %]
461
                            [% END %]
462
                        [% END %]
459
                    </div>
463
                    </div>
460
                </form> <!-- /#auth -->
464
                </form> <!-- /#auth -->
461
            </div> <!-- /.modal-content -->
465
            </div> <!-- /.modal-content -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-2 / +4 lines)
Lines 174-181 Link Here
174
                                        </a>
174
                                        </a>
175
                                    </p>
175
                                    </p>
176
                                [% END %]
176
                                [% END %]
177
                                [% IF Koha.Preference('OpacEnableLocalLogin') %]
177
                                    <hr/>
178
                                    <hr/>
178
                                    <p>If you do not have an external account, but do have a local account, you can still log in: </p>
179
                                    <p>If you do not have an external account, but do have a local account, you can still log in: </p>
180
                                [% END %]
179
                            [% END # /IF  identity_providers %]
181
                            [% END # /IF  identity_providers %]
180
182
181
                            [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
183
                            [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
Lines 209-215 Link Here
209
                            [% ELSE %]
211
                            [% ELSE %]
210
                                <p>You must contact the library to reset your password</p>
212
                                <p>You must contact the library to reset your password</p>
211
                            [% END %]
213
                            [% END %]
212
                        [% ELSIF !Koha.Preference('OPACShibOnly') or SCO_login or SCI_login %]
214
                        [% ELSIF (!Koha.Preference('OpacEnableLocalLogin') and !Koha.Preference('OPACShibOnly')) or SCO_login or SCI_login %]
213
                            [% IF SCO_login %]
215
                            [% IF SCO_login %]
214
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
216
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
215
                            [% ELSIF SCI_login %]
217
                            [% ELSIF SCI_login %]
Lines 265-271 Link Here
265
                                    </div>
267
                                    </div>
266
                                [% END %]
268
                                [% END %]
267
                            </form>
269
                            </form>
268
                        [% END # / IF password_has_expired / ELSIF !OPACShibOnly or SCO_login or SCI_login %]
270
                        [% END # / IF password_has_expired / ELSIF  (!OpacEnableLocalLogin and !OPACShibOnly) or SCO_login or SCI_login %]
269
                    [% END # / IF loginprompt %]
271
                    [% END # / IF loginprompt %]
270
272
271
                    [% ELSE %]
273
                    [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (+4 lines)
Lines 195-203 Link Here
195
                                                    </a>
195
                                                    </a>
196
                                                </p>
196
                                                </p>
197
                                            [% END %]
197
                                            [% END %]
198
                                            [% IF Koha.Preference('OpacEnableLocalLogin') %]
198
                                                <hr/>
199
                                                <hr/>
199
                                                <p>If you do not have an external account, but do have a local account, you can still log in: </p>
200
                                                <p>If you do not have an external account, but do have a local account, you can still log in: </p>
201
                                            [% END %]
200
                                        [% END # /IF  identity_providers.size %]
202
                                        [% END # /IF  identity_providers.size %]
203
                                        [% IF Koha.Preference('OpacEnableLocalLogin') %]
201
                                            <div class="local-login">
204
                                            <div class="local-login">
202
                                                <label for="userid">Login:</label>
205
                                                <label for="userid">Login:</label>
203
                                                <input class="form-control" type="text" id="userid" name="login_userid" autocomplete="off" />
206
                                                <input class="form-control" type="text" id="userid" name="login_userid" autocomplete="off" />
Lines 223-228 Link Here
223
                                                    <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
226
                                                    <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
224
                                                </div>
227
                                                </div>
225
                                            [% END %]
228
                                            [% END %]
229
                                        [% END %]
226
                                    </fieldset>
230
                                    </fieldset>
227
                                </form>
231
                                </form>
228
                            </div> <!-- /#login -->
232
                            </div> <!-- /#login -->

Return to bug 37715