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 155-160 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
155
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
155
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
156
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
156
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
157
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
157
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
158
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
158
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
159
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
159
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
160
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
160
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
161
('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 186-191 Cataloging: Link Here
186
                duplicate: "when editing records as new (duplicating)"
186
                duplicate: "when editing records as new (duplicating)"
187
                changed: "when changing the framework while editing the existing record"
187
                changed: "when changing the framework while editing the existing record"
188
                imported: "when importing a record via z39.50"
188
                imported: "when importing a record via z39.50"
189
        -
190
            - Use MARC field
191
            - pref: ContentWarningField
192
            - for storing content warnings.
193
            - "<br/><strong>NOTE:</strong> The field needs to appear in the MARC frameworks to be accessible."
189
    Display:
194
    Display:
190
        -
195
        -
191
            - 'Separate main entry and subdivisions with '
196
            - 'Separate main entry and subdivisions with '
192
- 

Return to bug 31123