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

(-)a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
 
3
return {
4
    bug_number => "13412",
5
    description => "Add GenerateAuthorityField667 and GenerateAuthorityField670 system preferences",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
 
10
        $dbh->do(q{
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
12
            ( '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' ),
13
            ( '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' )
14
         });
15
    },
16
};
(-)a/installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql (-4 lines)
Lines 1-3 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
( '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' ),
3
( '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' )
4
- 

Return to bug 13412