Bugzilla – Attachment 140345 Details for
Bug 31123
Add a simple way to add 'Harmful content warnings' to catalogue records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31123: Add `ContentWarningField` preference
Bug-31123-Add-ContentWarningField-preference.patch (text/plain), 3.28 KB, created by
Martin Renvoize (ashimema)
on 2022-09-08 15:55:57 UTC
(
hide
)
Description:
Bug 31123: Add `ContentWarningField` preference
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-09-08 15:55:57 UTC
Size:
3.28 KB
patch
obsolete
>From cc53854d8b192181d494a1c037a9b0380fd42c0c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 8 Sep 2022 16:38:16 +0100 >Subject: [PATCH] Bug 31123: Add `ContentWarningField` preference > >This patch adds a new `ContentWarningField` preference allowing the >library to define which 59X field to use to store harmful content >warning notes. >--- > installer/data/mysql/atomicupdate/bug_31123.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/cataloguing.pref | 5 +++++ > 3 files changed, 20 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_31123.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_31123.pl b/installer/data/mysql/atomicupdate/bug_31123.pl >new file mode 100644 >index 0000000000..2067bf8443 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_31123.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "31123", >+ description => "Add `ContentWarningField` preference", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >+ VALUES ('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free') >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 9a5cb2e0a8..23f35b6468 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -150,6 +150,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'), > ('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'), > ('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'), >+('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'), > ('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'), > ('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'), > ('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >index 4aad6fc775..6a201838ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >@@ -165,6 +165,11 @@ Cataloging: > - and record's last modifier name in MARC subfield > - pref: MarcFieldForModifierName > - ". <br/><strong>NOTE:</strong> Use a dollar sign between field and subfield like 123$a." >+ - >+ - Use MARC field >+ - pref: ContentWarningField >+ - for storing content warnings. >+ - "<br/><strong>NOTE:</strong> The field needs to appear in the MARC frameworks to be accessible." > Display: > - > - 'Separate main entry and subdivisions with ' >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31123
:
140345
|
140346
|
140347
|
140356
|
140357
|
140358
|
143880
|
143881
|
143882
|
147342
|
147343
|
147344
|
147345
|
147346
|
148992
|
148993
|
148994
|
148995
|
148996
|
148997