5 description => "Split and rename BiblioAddsAuthorities system preference",
8 my ($dbh, $out) = @$args{qw(dbh out)};
9 my $biblio_adds_authorities = C4::Context->preference('BiblioAddsAuthorities');
12 INSERT IGNORE INTO systempreferences
13 ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
14 ('RequireChoosingExistingAuthority',?,NULL,'Require selecting existing authority entry in controlled fields during cataloging.','YesNo'),
15 ('AutoLinkBiblios',?,NULL,'If enabled, link biblio to authorities on creation and edit','YesNo')
16 },undef,($biblio_adds_authorities eq '1' ? '0' : '1', $biblio_adds_authorities));
17 say $out "Added RequireChoosingExistingAuthority and AutoLinkBiblios";
18 $dbh->do(q{DELETE FROM systempreferences WHERE variable="BiblioAddsAuthorities";});
19 say $out "BiblioAddsAuthorities removed";