Koha/installer/data/mysql
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
..
atomicupdate Bug 14247: Add system preference for news display 2015-10-27 16:20:33 -03:00
de-DE Bug 14981: Remove ethnicity occurrences from sample patrons file 2015-10-23 10:10:46 -03:00
en Bug 14981: Remove ethnicity occurrences from sample patrons file 2015-10-23 10:10:46 -03:00
es-ES Bug 14981: Remove ethnicity occurrences from sample patrons file 2015-10-23 10:10:46 -03:00
fr-FR Bug 13632: Remove specific files 2015-10-19 09:38:04 -03:00
it-IT Bug 13632: QA follow-up: Tidy installer directories / update permissions.inc 2015-10-19 09:38:04 -03:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 14981: Remove ethnicity occurrences from sample patrons file 2015-10-23 10:10:46 -03:00
pl-PL Bug 14981: Remove ethnicity occurrences from sample patrons file 2015-10-23 10:10:46 -03:00
ru-RU Bug 13632: QA follow-up: Tidy installer directories / update permissions.inc 2015-10-19 09:38:04 -03:00
uk-UA Bug 13632: QA follow-up: Tidy installer directories / update permissions.inc 2015-10-19 09:38:04 -03:00
backfill_statistics.pl
kohastructure.sql Bug 14246: Add borrowernumber, altered SQL 2015-10-27 15:56:24 -03:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 14247: Add system preference for news display 2015-10-27 16:20:33 -03:00
update22to30.pl
updatedatabase.pl Bug 14246: DBRev 3.21.00.045 2015-10-27 16:20:27 -03:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00