Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Martin Persson ed0ac0cf2d Bug 14247: Add system preference for news display
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

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-10-27 16:20:33 -03:00
..
acquisitions.pref Bug 11458: Improve confusing description of syspref 'gist' 2015-06-22 11:05:44 -03:00
admin.pref Bug 13585: Add a cronjob which send UsageStats monthly. 2015-09-07 10:47:06 -03:00
authorities.pref Bug 11611: Rephrase description and examples of 5 MARC related sysprefs 2014-02-20 19:08:11 +00:00
cataloguing.pref Bug 12357: Enhancements to RIS and BibTeX exporting 2015-09-07 13:58:39 -03:00
circulation.pref Bug 11759: (QA followup) Sysprefs should be kosher 2015-10-20 10:46:42 -03:00
enhanced_content.pref Bug 14318: iDreamBooks doesn't work when Koha is using https 2015-06-07 18:39:48 -03:00
i18n_l10n.pref Bug 12137: Extend CalendarFirstDayOfWeek to be any day 2015-07-20 10:43:35 -03:00
labs.pref Bug 11559: (QA followup) switch to new delimiter, fix minor issues 2015-10-27 12:18:00 -03:00
local_use.pref
logs.pref Bug 13948: Add ability to dump template toolkit variables to html comment 2015-07-28 10:29:43 -03:00
opac.pref Bug 11584: Introduce UseWYSIWYGinSystemPreferences syspref 2015-08-28 10:29:39 -03:00
patrons.pref Bug 6810: Add new systempreference (MembershipExpiryDaysNotice) 2015-10-06 11:13:19 -03:00
searching.pref Bug 13528: Use the different isbn variations on search on the isbn index (nb) 2015-04-16 13:44:57 -03:00
serials.pref Bug 9958: Improve RoutingSerials sys pref description 2014-12-28 20:32:37 -03:00
staff_client.pref Bug 11584: (QA followup) add missing newline at end of YAML file 2015-08-31 12:22:18 -03:00
tools.pref Bug 14247: Add system preference for news display 2015-10-27 16:20:33 -03:00
web_services.pref Bug 3206: (QA followup) OAI repository deleted records support. 2015-07-08 14:55:17 -03:00