View | Details | Raw Unified | Return to bug 14247
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/add_news_prefs.pl (+11 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
use strict;
4
use warnings;
5
6
use C4::Context;
7
8
my $dbh = C4::Context->dbh;
9
$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.')");
10
11
print "Upgrade done (Adding author display options for news into systempreferences).\n"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref (-1 / +10 lines)
Lines 11-13 Tools: Link Here
11
            - pref: ImageLimit
11
            - pref: ImageLimit
12
              class: Integer
12
              class: Integer
13
            - images.
13
            - images.
14
- 
14
    News:
15
        -
16
            - "Show the author for news items:"
17
            - pref: NewsAuthorDisplay
18
              choices:
19
                  none: "Not at all"
20
                  opac: "OPAC only"
21
                  staff: "Staff client only"
22
                  both: "Both OPAC and staff client"
23
            -

Return to bug 14247