Lines 7-14
return {
Link Here
|
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(q{ |
10 |
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
10 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
11 |
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'), |
11 |
('ComponentSortField','title','call_number|pubdate|acqdate|title|author|biblionumber','Specify the default field used for sorting','Choice'), |
12 |
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice') |
12 |
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice') |
13 |
}); |
13 |
}); |
14 |
say $out "Added ComponentsSortField and ComponentsSortOrder sysprefs"; |
14 |
say $out "Added ComponentsSortField and ComponentsSortOrder sysprefs"; |