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

(-)a/installer/data/mysql/atomicupdate/bug_34188.pl (-5 / +7 lines)
Lines 1-14 Link Here
1
use Modern::Perl;
1
use Modern::Perl;
2
2
3
return {
3
return {
4
    bug_number => "34188",
4
    bug_number  => "34188",
5
    description => "Force staff to select a library when logging into the staff interface.",
5
    description => "Force staff to select a library when logging into the staff interface.",
6
    up => sub {
6
    up          => sub {
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        $dbh->do(q{
9
        $dbh->do(
10
            q{
10
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
11
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
11
                VALUES ('ForcedLibrarySelection', '0', NULL,'Force staff to select a library when logging into the staff interface.', 'YesNo')});
12
                VALUES ('ForceLibrarySelection', '0', NULL,'Force staff to select a library when logging into the staff interface.', 'YesNo')}
13
        );
12
14
13
        # sysprefs
15
        # sysprefs
14
        say $out "Added new system preference 'ForcedLibrarySelection'";
16
        say $out "Added new system preference 'ForcedLibrarySelection'";
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 258-264 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
258
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
258
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
259
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
259
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
260
('finesMode','off','off|production','Choose the fines mode, \'off\' (no charges), \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
260
('finesMode','off','off|production','Choose the fines mode, \'off\' (no charges), \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
261
('ForcedLibrarySelection','0',NULL,'Force staff to select a library when logging into the staff interface.','YesNo'),
261
('ForceLibrarySelection','0',NULL,'Force staff to select a library when logging into the staff interface.','YesNo'),
262
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
262
('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
263
('GenerateAuthorityField667', 'Machine generated authority record', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records', 'free'),
263
('GenerateAuthorityField667', 'Machine generated authority record', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 667$a field of MARC21 records', 'free'),
264
('GenerateAuthorityField670', 'Work cat.', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records', 'free'),
264
('GenerateAuthorityField670', 'Work cat.', NULL, 'When BiblioAddsAuthorities and AutoCreateAuthorities are enabled, use this as a default value for the 670$a field of MARC21 records', 'free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-2 / +1 lines)
Lines 116-122 Link Here
116
116
117
    [% UNLESS IndependentBranches %]
117
    [% UNLESS IndependentBranches %]
118
        <p>
118
        <p>
119
            [% IF Koha.Preference('ForcedLibrarySelection') %]
119
            [% IF Koha.Preference('ForceLibrarySelection') %]
120
                <label for="branch" class="required">Library:</label>
120
                <label for="branch" class="required">Library:</label>
121
                <select name="branch" id="branch" class="input" tabindex="3" required="required">
121
                <select name="branch" id="branch" class="input" tabindex="3" required="required">
122
                <option value=""></option>
122
                <option value=""></option>
123
- 

Return to bug 34188