Lines 33-38
use C4::Budgets qw(GetCurrency);
Link Here
|
33 |
use File::Spec; |
33 |
use File::Spec; |
34 |
use IO::File; |
34 |
use IO::File; |
35 |
use YAML::Syck qw(); |
35 |
use YAML::Syck qw(); |
|
|
36 |
use List::MoreUtils qw(any); |
36 |
$YAML::Syck::ImplicitTyping = 1; |
37 |
$YAML::Syck::ImplicitTyping = 1; |
37 |
our $lang; |
38 |
our $lang; |
38 |
|
39 |
|
Lines 120-125
sub TransformPrefsToHTML {
Link Here
|
120 |
my $tab = $data->{ $title }; |
121 |
my $tab = $data->{ $title }; |
121 |
$tab = { '' => $tab } if ( ref( $tab ) eq 'ARRAY' ); |
122 |
$tab = { '' => $tab } if ( ref( $tab ) eq 'ARRAY' ); |
122 |
|
123 |
|
|
|
124 |
my @override_syspref_names = split( /,/, $ENV{"OVERRIDE_SYSPREF_NAMES"} ); |
125 |
|
123 |
foreach my $group ( sort keys %$tab ) { |
126 |
foreach my $group ( sort keys %$tab ) { |
124 |
if ( $group ) { |
127 |
if ( $group ) { |
125 |
push @lines, { is_group_title => 1, title => $group }; |
128 |
push @lines, { is_group_title => 1, title => $group }; |
Lines 156-161
sub TransformPrefsToHTML {
Link Here
|
156 |
$name_entry->{'highlighted'} = 1; |
159 |
$name_entry->{'highlighted'} = 1; |
157 |
} |
160 |
} |
158 |
} |
161 |
} |
|
|
162 |
$name_entry->{'overridden'} = 1 if ( any { $name eq $_ } @override_syspref_names ); |
159 |
push @names, $name_entry; |
163 |
push @names, $name_entry; |
160 |
} else { |
164 |
} else { |
161 |
push @chunks, $piece; |
165 |
push @chunks, $piece; |
Lines 164-170
sub TransformPrefsToHTML {
Link Here
|
164 |
push @chunks, { type_text => 1, contents => $piece }; |
168 |
push @chunks, { type_text => 1, contents => $piece }; |
165 |
} |
169 |
} |
166 |
} |
170 |
} |
167 |
|
|
|
168 |
push @lines, { CHUNKS => \@chunks, NAMES => \@names, is_group_title => 0 }; |
171 |
push @lines, { CHUNKS => \@chunks, NAMES => \@names, is_group_title => 0 }; |
169 |
} |
172 |
} |
170 |
} |
173 |
} |