Bug 34188: (follow-up) Rename pref to 'ForceLibrarySelection' and tidy
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9603f11883
commit
5a5c034b8d
3 changed files with 9 additions and 7 deletions
|
@ -1,14 +1,16 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "34188",
|
||||
bug_number => "34188",
|
||||
description => "Force staff to select a library when logging into the staff interface.",
|
||||
up => sub {
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
$dbh->do(q{
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
$dbh->do(
|
||||
q{
|
||||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
|
||||
VALUES ('ForcedLibrarySelection', '0', NULL,'Force staff to select a library when logging into the staff interface.', 'YesNo')});
|
||||
VALUES ('ForceLibrarySelection', '0', NULL,'Force staff to select a library when logging into the staff interface.', 'YesNo')}
|
||||
);
|
||||
|
||||
# sysprefs
|
||||
say $out "Added new system preference 'ForcedLibrarySelection'";
|
||||
|
|
|
@ -265,7 +265,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('FinesIncludeGracePeriod','1',NULL,'If enabled, fines calculations will include the grace period.','YesNo'),
|
||||
('FinesLog','1',NULL,'If ON, log fines','YesNo'),
|
||||
('finesMode','off','off|production','Choose the fines mode, \'off\' (no charges), \'production\' (accrue overdue fines). Requires accruefines cronjob.','Choice'),
|
||||
('ForcedLibrarySelection','0',NULL,'Force staff to select a library when logging into the staff interface.','YesNo'),
|
||||
('ForceLibrarySelection','0',NULL,'Force staff to select a library when logging into the staff interface.','YesNo'),
|
||||
('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'),
|
||||
('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'),
|
||||
('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'),
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
|
||||
[% UNLESS IndependentBranches %]
|
||||
<p>
|
||||
[% IF Koha.Preference('ForcedLibrarySelection') %]
|
||||
[% IF Koha.Preference('ForceLibrarySelection') %]
|
||||
<label for="branch" class="required">Library:</label>
|
||||
<select name="branch" id="branch" class="input" tabindex="3" required="required">
|
||||
<option value=""></option>
|
||||
|
|
Loading…
Reference in a new issue