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

(-)a/admin/preferences.pl (+17 lines)
Lines 161-168 sub _get_chunk { Link Here
161
              }
161
              }
162
              keys %{ $options{multiple} }
162
              keys %{ $options{multiple} }
163
        ];
163
        ];
164
    } elsif ( $options{'multiple_sortable'} ) {
165
        my @values;
166
        @values = split /,/, $value if defined($value);
167
        $chunk->{type}    = 'multiple_sortable';
168
        $chunk->{CHOICES} = [
169
            sort { $a->{'text'} cmp $b->{'text'} }
170
              map {
171
                my $option_value = $_;
172
                {
173
                    text     => $options{multiple_sortable}->{$option_value},
174
                    value    => $option_value,
175
                    selected => (grep { $_ eq $option_value } @values) ? 1 : 0,
176
                }
177
              }
178
              keys %{ $options{multiple_sortable} }
179
        ];
164
    }
180
    }
165
181
182
166
    $chunk->{ 'type_' . $chunk->{'type'} } = 1;
183
    $chunk->{ 'type_' . $chunk->{'type'} } = 1;
167
184
168
    return $chunk;
185
    return $chunk;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (+14 lines)
Lines 151-156 Link Here
151
                                </option>
151
                                </option>
152
                            [% END %]
152
                            [% END %]
153
                        </select>
153
                        </select>
154
                    [% ELSIF ( CHUNK.type_multiple_sortable ) %]
155
                        <ul class="sortable" style="max-width: 30em;">
156
                            [% FOREACH CHOICE IN CHUNK.CHOICES %]
157
                                <li>
158
                                    <i class="fa-solid fa-fw fa-grip-vertical" aria-hidden="true" style="color:#B7B7B7"></i>
159
                                    <label for="pref_[% CHUNK.name | html %]_[% CHOICE.value | html %]">[% CHOICE.text | html %]</label>
160
                                    [% IF ( CHOICE.selected ) %]
161
                                        <input type="checkbox" id="pref_[% CHUNK.name | html %]_[% CHOICE.value | html %]" name="pref_[% CHUNK.name | html %]" value="[% CHOICE.value | html %]" checked="checked" class="preference preference-checkbox">
162
                                    [% ELSE %]
163
                                        <input type="checkbox" id="pref_[% CHUNK.name | html %]_[% CHOICE.value | html %]" name="pref_[% CHUNK.name | html %]" value="[% CHOICE.value | html %]" class="preference preference-checkbox">
164
                                    [% END %]
165
                                </li>
166
                            [% END %]
167
                        </ul>
154
                    [% ELSIF ( CHUNK.type_textarea )%]
168
                    [% ELSIF ( CHUNK.type_textarea )%]
155
                        [% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
169
                        [% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
156
                            <textarea name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "short" | html %] mce" rows="20" cols="60">[% CHUNK.value | html %]</textarea>
170
                            <textarea name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "short" | html %] mce" rows="20" cols="60">[% CHUNK.value | html %]</textarea>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 527-533 OPAC: Link Here
527
        -
527
        -
528
            - "Display the following information for authors and contributors to the detail pages in the OPAC."
528
            - "Display the following information for authors and contributors to the detail pages in the OPAC."
529
            - pref: OPACAuthorIdentifiersAndInformation
529
            - pref: OPACAuthorIdentifiersAndInformation
530
              multiple:
530
              multiple_sortable:
531
                activity: Activity (372$a$s$t)
531
                activity: Activity (372$a$s$t)
532
                address: Address (371$a$b$d$e)
532
                address: Address (371$a$b$d$e)
533
                associated_group: Associated group (373$a$s$t$u$v$0)
533
                associated_group: Associated group (373$a$s$t$u$v$0)
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt (-1 / +2 lines)
Lines 185-191 Link Here
185
                        <div class="author_identifier_info">
185
                        <div class="author_identifier_info">
186
                            <span>Identifiers/information</span>
186
                            <span>Identifiers/information</span>
187
                            <ul>
187
                            <ul>
188
                            [% FOR info IN author_information.keys %]
188
                            [% FOR info IN Koha.Preference( 'OPACAuthorIdentifiersAndInformation' ).split(',') %]
189
                                [% NEXT IF author_information.keys.grep(info).size <= 0 %]
189
                                [% PROCESS "authority-information.inc" information => author_information.$info, info_type => info %]
190
                                [% PROCESS "authority-information.inc" information => author_information.$info, info_type => info %]
190
                            [% END %]
191
                            [% END %]
191
                            </ul>
192
                            </ul>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +2 lines)
Lines 949-955 Link Here
949
                                    <div class="author_information">
949
                                    <div class="author_information">
950
                                        <span class="author_name"><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% author.authid | uri %]">[% author.name | html %]</a></span>
950
                                        <span class="author_name"><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% author.authid | uri %]">[% author.name | html %]</a></span>
951
                                        <ul>
951
                                        <ul>
952
                                        [% FOR info IN author.information.keys %]
952
                                        [% FOR info IN Koha.Preference( 'OPACAuthorIdentifiersAndInformation' ).split(',') %]
953
                                            [% NEXT IF author.information.keys.grep(info).size <= 0 %]
953
                                            [% PROCESS "authority-information.inc" information => author.information.$info, info_type => info %]
954
                                            [% PROCESS "authority-information.inc" information => author.information.$info, info_type => info %]
954
                                        [% END %]
955
                                        [% END %]
955
                                        </ul>
956
                                        </ul>
956
- 

Return to bug 29948