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

(-)a/admin/preferences.pl (+5 lines)
Lines 102-107 sub _get_chunk { Link Here
102
            } elsif ( $options{choices} eq 'patron-categories' ) {
102
            } elsif ( $options{choices} eq 'patron-categories' ) {
103
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search->as_list };
103
                $options{choices} = { map { $_->categorycode => $_->description } Koha::Patron::Categories->search->as_list };
104
                $add_blank = 1;
104
                $add_blank = 1;
105
            } elsif ( $options{'choices'} eq 'authval' ){
106
                if( $options{'source'} ){
107
                    $options{'choices'} = { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list };
108
                    $add_blank = 1;
109
                }
105
            } else {
110
            } else {
106
                die 'Unrecognized source of preference values: ' . $options{'choices'};
111
                die 'Unrecognized source of preference values: ' . $options{'choices'};
107
            }
112
            }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-3 / +11 lines)
Lines 131-139 Link Here
131
                    [% ELSIF ( CHUNK.type_modalselect ) %]
131
                    [% ELSIF ( CHUNK.type_modalselect ) %]
132
                        <input type="text" name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="modalselect preference preference-[% CHUNK.type | html %]" data-source="[% CHUNK.source | html %]" data-required="[% CHUNK.required | html %]" data-exclusions="[% CHUNK.exclusions | html %]" readonly="readonly" value="[% CHUNK.value | html %]"/>
132
                        <input type="text" name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="modalselect preference preference-[% CHUNK.type | html %]" data-source="[% CHUNK.source | html %]" data-required="[% CHUNK.required | html %]" data-exclusions="[% CHUNK.exclusions | html %]" readonly="readonly" value="[% CHUNK.value | html %]"/>
133
                    [% ELSIF ( CHUNK.type_multiple ) %]
133
                    [% ELSIF ( CHUNK.type_multiple ) %]
134
                    <select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple">
134
                        <select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple">
135
                        [% FOREACH CHOICE IN CHUNK.CHOICES %][% IF ( CHOICE.selected ) %]<option value="[% CHOICE.value | html %]" selected="selected">[% ELSE %]<option value="[% CHOICE.value | html %]">[% END %][% CHOICE.text | html %]</option>[% END %]
135
                            [% FOREACH CHOICE IN CHUNK.CHOICES %]
136
                    </select>
136
                                [% IF ( CHOICE.selected ) %]
137
                                    <option value="[% CHOICE.value | html %]" selected="selected">
138
                                [% ELSE %]
139
                                    <option value="[% CHOICE.value | html %]">
140
                                [% END %]
141
                                    [% CHOICE.text | html %]
142
                                </option>
143
                            [% END %]
144
                        </select>
137
                    [% ELSIF ( CHUNK.type_textarea )%]
145
                    [% ELSIF ( CHUNK.type_textarea )%]
138
                        [% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
146
                        [% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %]
139
                            <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>
147
                            <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/circulation.pref (-1 / +6 lines)
Lines 1285-1294 Circulation: Link Here
1285
        -
1285
        -
1286
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=LOST">LOST</a> authorized value
1286
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=LOST">LOST</a> authorized value
1287
            - pref: BundleLostValue
1287
            - pref: BundleLostValue
1288
              choices: authval
1289
              source: LOST
1288
            - to represent 'missing from bundle' at return.
1290
            - to represent 'missing from bundle' at return.
1289
        -
1291
        -
1290
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=NOT_LOAN">NOT_LOAN</a> authorized value
1292
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=NOT_LOAN">NOT_LOAN</a> authorized value
1291
            - pref: BundleNotLoanValue
1293
            - pref: BundleNotLoanValue
1294
              choices: authval
1295
              source: NOT_LOAN
1292
            - to represent 'added to bundle' when an item is attached to bundle.
1296
            - to represent 'added to bundle' when an item is attached to bundle.
1293
1297
1294
    Return claims:
1298
    Return claims:
Lines 1304-1309 Circulation: Link Here
1304
        -
1308
        -
1305
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=LOST">LOST</a> authorized value
1309
            - Use the <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=LOST">LOST</a> authorized value
1306
            - pref: ClaimReturnedLostValue
1310
            - pref: ClaimReturnedLostValue
1311
              choices: authval
1312
              source: LOST
1307
            - to represent 'claims returned'.
1313
            - to represent 'claims returned'.
1308
        -
1314
        -
1309
            - Warn librarians that a patron has excessive return claims if the patron has claimed the return of more than
1315
            - Warn librarians that a patron has excessive return claims if the patron has claimed the return of more than
1310
- 

Return to bug 31731