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

(-)a/admin/preferences.pl (-1 lines)
Lines 33-39 use File::Spec; Link Here
33
use IO::File;
33
use IO::File;
34
use YAML::Syck qw();
34
use YAML::Syck qw();
35
use List::MoreUtils qw(any);
35
use List::MoreUtils qw(any);
36
use C4::Sysprefs;
37
$YAML::Syck::ImplicitTyping = 1;
36
$YAML::Syck::ImplicitTyping = 1;
38
$YAML::Syck::ImplicitUnicode = 1;
37
$YAML::Syck::ImplicitUnicode = 1;
39
our $lang;
38
our $lang;
(-)a/installer/featurereleasetool.pl (-3 lines)
Lines 99-108 my @logs = `cd $logdir && ls -t | grep "updatedatabase_2*"`; Link Here
99
99
100
my $filename_suffix = $logs[0];
100
my $filename_suffix = $logs[0];
101
my $path = $logdir . '/' . $filename_suffix;
101
my $path = $logdir . '/' . $filename_suffix;
102
my $fh;
103
my $file;
102
my $file;
104
my $count = 0;
103
my $count = 0;
105
my $version;
106
$file = `cat $path`;
104
$file = `cat $path`;
107
$file = `echo "$file" | grep -Eo '?[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+?'`;
105
$file = `echo "$file" | grep -Eo '?[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+?'`;
108
106
Lines 135-141 elsif ( $op && $op eq 'save' ) { #Submit changed systempreferences Link Here
135
        foreach my $param ( $query->param() ) {
133
        foreach my $param ( $query->param() ) {
136
            my ( $prefname ) = ( $param =~ /pref_(.*)/ );
134
            my ( $prefname ) = ( $param =~ /pref_(.*)/ );
137
            next if ( !defined( $prefname ) );
135
            next if ( !defined( $prefname ) );
138
139
            my $wholevalue = join( ',', $query->param($param) );
136
            my $wholevalue = join( ',', $query->param($param) );
140
            my ($name, $value) = split(/,/,$wholevalue);
137
            my ($name, $value) = split(/,/,$wholevalue);
141
            C4::Context->set_preference( $name, $value );
138
            C4::Context->set_preference( $name, $value );
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/newsform.inc (-15 / +14 lines)
Lines 8-39 Link Here
8
    <input type="hidden" name="id" value="[% id %]" />
8
    <input type="hidden" name="id" value="[% id %]" />
9
    <input type="hidden" name="dbversion" value="[% dbversion %]" />
9
    <input type="hidden" name="dbversion" value="[% dbversion %]" />
10
    <input type="hidden" name="kohaversion" value="[% kohaversion %]" />
10
    <input type="hidden" name="kohaversion" value="[% kohaversion %]" />
11
			<fieldset class="rows">
11
    <fieldset class="rows">
12
            <legend>OPAC and Koha news</legend>
12
            <legend>OPAC and Koha news</legend>
13
           <ol> <li>
13
           <ol> <li>
14
            <label for="lang">Display location:</label>
14
            <label for="lang">Display location:</label>
15
            <select id="lang" name="lang">
15
            <select id="lang" name="lang">
16
                [% IF ( default_lang == "" ) %]
16
                [% IF ( default_lang == "" ) %]
17
                <option value="" selected="selected">All</option>
17
                    <option value="" selected="selected">All</option>
18
                [% ELSE %]
18
                [% ELSE %]
19
                <option value=""                    >All</option>
19
                    <option value="">All</option>
20
                [% END %]
20
                [% END %]
21
                [% IF ( default_lang == "koha" ) %]
21
                [% IF ( default_lang == "koha" ) %]
22
                <option value="koha" selected="selected">Librarian interface</option>
22
                   <option value="koha" selected="selected">Librarian interface</option>
23
                [% ELSE %]
23
                [% ELSE %]
24
                <option value="koha"                    >Librarian interface</option>
24
                    <option value="koha">Librarian interface</option>
25
                [% END %]
25
                [% END %]
26
                [% IF ( default_lang == "slip" ) %]
26
                [% IF ( default_lang == "slip" ) %]
27
                <option value="slip" selected="selected">Slip</option>
27
                    <option value="slip" selected="selected">Slip</option>
28
                [% ELSE %]
28
                [% ELSE %]
29
                <option value="slip"                    >Slip</option>
29
                    <option value="slip">Slip</option>
30
                [% END %]
30
                [% END %]
31
                [% FOREACH lang_lis IN lang_list %]
31
                [% FOREACH lang_lis IN lang_list %]
32
                [% IF ( lang_lis.language == default_lang ) %]
32
                    [% IF ( lang_lis.language == default_lang ) %]
33
                    <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
33
                        <option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>
34
                [% ELSE %]
34
                    [% ELSE %]
35
                    <option value="[% lang_lis.language %]" >OPAC ([% lang_lis.language %])</option>
35
                        <option value="[% lang_lis.language %]" >OPAC ([% lang_lis.language %])</option>
36
                [% END %]
36
                    [% END %]
37
                [% END %]
37
                [% END %]
38
            </select>
38
            </select>
39
            </li>
39
            </li>
Lines 54-65 Link Here
54
            <li>
54
            <li>
55
                <label for="from">Publication date: </label>
55
                <label for="from">Publication date: </label>
56
                <input id="from" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" class="datepickerfrom" />
56
                <input id="from" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" class="datepickerfrom" />
57
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
57
    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
58
            </li>
58
            </li>
59
            <li>
59
            <li>
60
                <label for="to">Expiration date: </label>
60
                <label for="to">Expiration date: </label>
61
                <input id="to" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" class="datepickerto" />
61
                <input id="to" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" class="datepickerto" />
62
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
62
    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
63
            </li>
63
            </li>
64
            <li>
64
            <li>
65
                <label for="number">Appear in position: </label>
65
                <label for="number">Appear in position: </label>
66
- 

Return to bug 19247