Lines 126-132
sub _get_chunk {
Link Here
|
126 |
|
126 |
|
127 |
# Dynamic locale detection for facet sorting using Koha::I18N |
127 |
# Dynamic locale detection for facet sorting using Koha::I18N |
128 |
require Koha::I18N; |
128 |
require Koha::I18N; |
129 |
$chunk->{'CHOICES'} = Koha::I18N::available_locales(); |
129 |
my $locales = Koha::I18N::available_locales(); |
|
|
130 |
foreach my $locale (@$locales) { |
131 |
if ( $locale->{value} && $value && $locale->{value} eq $value ) { |
132 |
$locale->{selected} = 1; |
133 |
} |
134 |
} |
135 |
$chunk->{'CHOICES'} = $locales; |
130 |
$chunk->{'type'} = 'select'; |
136 |
$chunk->{'type'} = 'select'; |
131 |
} elsif ( $options{'choices'} ) { |
137 |
} elsif ( $options{'choices'} ) { |
132 |
my $add_blank; |
138 |
my $add_blank; |
133 |
- |
|
|