@@ -, +, @@ format --- ...g_13412-add_GenerateAuthorityField_syspref.pl | 16 ++++++++++++++++ ..._13412-add_GenerateAuthorityField_syspref.sql | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl delete mode 100644 installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql --- a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl +++ a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl @@ -0,0 +1,16 @@ +use Modern::Perl; + +return { + bug_number => "13412", + description => "Add GenerateAuthorityField667 and GenerateAuthorityField670 system preferences", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ( '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' ) + }); + }, +}; --- a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql +++ a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql @@ -1,3 +0,0 @@ -INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES -( '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' ) --