#!/usr/bin/perl
use strict;
use warnings;
use C4::Context;
my $dbh = C4::Context->dbh;
$dbh->do("INSERT IGNORE INTO systempreferences (variable,type,options,value,explanation) VALUES('NewsAuthorDisplay','Choice','none|opac|staff|both','none','Display the author name for news items.')");
print "Upgrade done (Adding author display options for news into systempreferences).\n"
- 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"