Bugzilla – Attachment 43093 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]
Bug 14247: Add system preference for news display
Bug-14247-Add-system-preference-for-news-display.patch (text/plain), 2.27 KB, created by
Martin Persson
on 2015-10-04 13:52:31 UTC
(
hide
)
Description:
Bug 14247: Add system preference for news display
Filename:
MIME Type:
Creator:
Martin Persson
Created:
2015-10-04 13:52:31 UTC
Size:
2.27 KB
patch
obsolete
>From e39c97755f62fb6a1e536eb1a619b8245ed7b3e1 Mon Sep 17 00:00:00 2001 >From: Martin Persson <xarragon@gmail.com> >Date: Sun, 4 Oct 2015 15:51:06 +0200 >Subject: [PATCH] Bug 14247: Add system preference for news display > >Added default value for system preference. > >Test plan: > >* Apply dependant patch 14246 (if not done already). >* Apply current patch. >* Log into the Staff client, go to 'Administration' -> 'Global Preferences' -> 'Tools', a new section titled 'News' should appear with a single option named 'NewsAuthorDisplay'. Available values should be 'Not at all', 'OPAC only', 'Staff client only' and 'Both OPAC and staff client'. By default the value should be 'Not at all' (to mimic existing behaviour, important!). >* Change the value to something different and save the changes. >* Use the mysql command line client to connect to the Koha database: > $ mysql -u kohaadmin -p -D koha >* Enter the following query: > SELECT * FROM systempreferences WHERE variable = 'NewsAuthorDisplay'; >* Check to make sure that the 'value' column has changed to reflect the choice you made in the above step. > >Separate SQL testing (clean installation of Koha): >* Koha$ mysql -u root < create_koha_test_db.sql >* Koha$ mysql -u koha_test -D koha_test < installer/data/mysql/kohastructure.sql >* Koha$ mysql -u koha_test -D koha_test < installer/data/mysql/sysprefs.sql > >Testing the update script works the same way: >* Koha$ echo "DELETE FROM systempreferences WHERE variable = 'NewsAuthorDisplay';" | mysql -u koha_test -D koha_test >* Koha$ mysql -u koha_test -D koha_test < installer/data/mysql/atomicupdate/add_news_prefs.sql >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref | 1 + > 1 file changed, 1 insertion(+) > >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 5a3ddce..a075ce7 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 >@@ -15,6 +15,7 @@ Tools: > - > - "Show the author for news items:" > - pref: NewsAuthorDisplay >+ default: none > choices: > none: "Not at all" > opac: "OPAC only" >-- >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