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

(-)a/installer/data/mysql/atomicupdate/bug_15461.pl (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "15461",
5
    description => "Add system preference StaffLocationOnDetail",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        # Do you stuffs here
11
        $dbh->do(q{
12
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
13
            VALUES ('StaffLocationOnDetail','home','holding|home|both|column','In the staff interface, display the shelving location on its own column or under a library columns.','Choice')
14
        });
15
16
        say $out "Added new system preference 'StaffLocationOnDetail'";
17
    },
18
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 722-727 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
722
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
722
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
723
('StaffHighlightedWords','1','','Highlight search terms on staff interface','YesNo'),
723
('StaffHighlightedWords','1','','Highlight search terms on staff interface','YesNo'),
724
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
724
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
725
('StaffLocationOnDetail','home','holding|home|both|column','In the staff interface detail, display the shelving location on its own column or under a library columns.',  'Choice'),
725
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
726
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
726
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
727
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
727
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
728
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
728
- 

Return to bug 15461