@@ -, +, @@ $ mysql -u kohaadmin -p -D koha SELECT * FROM systempreferences WHERE variable = 'NewsAuthorDisplay'; --- installer/data/mysql/atomicupdate/add_news_prefs.sql | 2 ++ installer/data/mysql/sysprefs.sql | 1 + .../intranet-tmpl/prog/en/modules/admin/preferences/tools.pref | 10 ++++++++++ 3 files changed, 13 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/add_news_prefs.sql --- a/installer/data/mysql/atomicupdate/add_news_prefs.sql +++ a/installer/data/mysql/atomicupdate/add_news_prefs.sql @@ -0,0 +1,2 @@ +-- Add NewsAuthorDisplay system preference, bug 14247. +INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -217,6 +217,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'), ('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'), ('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''), +('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'), ('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'), ('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'), ('NoLoginInstructions', '', '60|10', 'Instructions to display on the OPAC login form when a patron is not logged in', 'Textarea'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref @@ -11,3 +11,13 @@ Tools: - pref: ImageLimit class: Integer - images. + News: + - + - "Show the author for news items:" + - pref: NewsAuthorDisplay + choices: + none: "Not at all" + opac: "OPAC only" + staff: "Staff client only" + both: "Both OPAC and staff client" + - --