Line 0
Link Here
|
0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
|
3 |
return { |
4 |
bug_number => "33217", |
5 |
description => "Add option to specify sorting for author links", |
6 |
up => sub { |
7 |
my ($args) = @_; |
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
9 |
# Do you stuffs here |
10 |
$dbh->do(q{ |
11 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
12 |
('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'), |
13 |
('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice') |
14 |
}); |
15 |
say $out "Added new system preferences 'AuthorLinkSortBy' 'AuthorLinkSortOrder'"; |
16 |
}, |
17 |
}; |