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

(-)a/installer/data/mysql/atomicupdate/bug_31123.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "31123",
5
    description => "Add `ContentWarningField` preference",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
11
            VALUES ('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free')
12
        });
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 150-155 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
150
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
150
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
151
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
151
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
152
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
152
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
153
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
153
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
154
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
154
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
155
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
155
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
156
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-1 / +5 lines)
Lines 165-170 Cataloging: Link Here
165
            - and record's last modifier name in MARC subfield
165
            - and record's last modifier name in MARC subfield
166
            - pref: MarcFieldForModifierName
166
            - pref: MarcFieldForModifierName
167
            - ". <br/><strong>NOTE:</strong> Use a dollar sign between field and subfield like 123$a."
167
            - ". <br/><strong>NOTE:</strong> Use a dollar sign between field and subfield like 123$a."
168
        -
169
            - Use MARC field
170
            - pref: ContentWarningField
171
            - for storing content warnings.
172
            - "<br/><strong>NOTE:</strong> The field needs to appear in the MARC frameworks to be accessible."
168
    Display:
173
    Display:
169
        -
174
        -
170
            - 'Separate main entry and subdivisions with '
175
            - 'Separate main entry and subdivisions with '
171
- 

Return to bug 31123