Bugzilla – Attachment 39362 Details for
Bug 14247
System preference for news author display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
DB update script and sysprefs file
0002-Bug-14247-Add-system-preference-for-news-display.patch (text/plain), 1.95 KB, created by
Martin Persson
on 2015-05-21 16:15:11 UTC
(
hide
)
Description:
DB update script and sysprefs file
Filename:
MIME Type:
Creator:
Martin Persson
Created:
2015-05-21 16:15:11 UTC
Size:
1.95 KB
patch
obsolete
>From 956c90636437da5bf575b56cbd42d535996ec4e8 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >Date: Thu, 21 May 2015 17:32:12 +0200 >Subject: [PATCH 2/3] Bug 14247: Add system preference for news display > >This patch adds a new system preference named 'NewsAuthorDisplay' >under the 'Tools' category. This allows global control of whether >news item should be shown with or without the name of the user >who authored it. > >Depends on patch for bug 14246. >--- > installer/data/mysql/atomicupdate/add_news_prefs.pl | 11 +++++++++++ > .../prog/en/modules/admin/preferences/tools.pref | 7 +++++++ > 2 files changed, 18 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/add_news_prefs.pl > >diff --git a/installer/data/mysql/atomicupdate/add_news_prefs.pl b/installer/data/mysql/atomicupdate/add_news_prefs.pl >new file mode 100644 >index 0000000..7e99c1b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/add_news_prefs.pl >@@ -0,0 +1,11 @@ >+#!/usr/bin/perl >+ >+use strict; >+use warnings; >+ >+use C4::Context; >+ >+my $dbh = C4::Context->dbh; >+$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,type,explanation) VALUES('NewsAuthorDisplay','','YesNo','Display the author name for news items.')"); >+ >+print "Upgrade done (Adding author display options for news into systempreferences).\n" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref >index 636a9f6..ff8727b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref >@@ -11,3 +11,10 @@ Tools: > - pref: ImageLimit > class: Integer > - images. >+ News: >+ - >+ - pref: NewsAuthorDisplay >+ choices: >+ yes: Show >+ no: "Don't show" >+ - "the author for news items." >-- >2.1.4 >
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 14247
:
39362
|
39414
|
39418
|
39440
|
39488
|
39527
|
43093
|
43538
|
43539
|
43540
|
43541
|
43542
|
43543
|
43724
|
43725
|
43914
|
43915