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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-1 / +10 lines)
Lines 109-116 Link Here
109
                            <select name="[% kohafield | html %]" id="[%- mv.id | html -%]" class="input_marceditor select2 [% kohafield | html %]" data-category="[% mv.category | html %]" data-width="50%">
109
                            <select name="[% kohafield | html %]" id="[%- mv.id | html -%]" class="input_marceditor select2 [% kohafield | html %]" data-category="[% mv.category | html %]" data-width="50%">
110
                        [% END %]
110
                        [% END %]
111
111
112
                        [% SET matched = 0 %]
112
                        [% FOREACH aval IN mv.values %]
113
                        [% FOREACH aval IN mv.values %]
113
                            [% IF aval == mv.default %]
114
                            [% IF aval == mv.default %]
115
                                [% SET matched = 1 %]
114
                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
116
                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
115
                            [% ELSE %]
117
                            [% ELSE %]
116
                                [% IF subfield.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %]
118
                                [% IF subfield.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %]
Lines 122-128 Link Here
122
                                [% END %]
124
                                [% END %]
123
                            [% END %]
125
                            [% END %]
124
                        [% END %]
126
                        [% END %]
125
                        </select>
127
                        [% UNLESS matched || ( ( kohafield == 'items.damaged' || kohafield == 'items.itemlost' || kohafield == 'items.withdrawn' || kohafield == 'items.notforloan' ) && mv.default == '0' ) %]
128
                        [%# If the current value is not in the authorised list  and is not a field where 0 means unset #%]
129
                                <option value="[%- mv.default | html -%]" selected="selected">[%- mv.default | html -%]</option>
130
                            </select>
131
                            <span style="float:right;" title="The current value [% mv.default | html %] is not in the authorised value list"><i class="fa fa-exclamation-circle" aria-hidden="true"></i></span>
132
                        [% ELSE %]
133
                            </select>
134
                        [% END %]
126
                    [% ELSIF ( mv.type == 'text_auth' ) %]
135
                    [% ELSIF ( mv.type == 'text_auth' ) %]
127
                        [% IF mv.readonly %]
136
                        [% IF mv.readonly %]
128
                            <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
137
                            <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-1 / +11 lines)
Lines 1149-1162 function PopupMARCFieldDoc(field) { Link Here
1149
                                                        [% ELSE %]
1149
                                                        [% ELSE %]
1150
                                                            <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
1150
                                                            <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
1151
                                                        [% END %]
1151
                                                        [% END %]
1152
                                                            [% SET matched = 0 %]
1152
                                                            [% FOREACH aval IN mv.values %]
1153
                                                            [% FOREACH aval IN mv.values %]
1153
                                                                [% IF aval == mv.default %]
1154
                                                                [% IF aval == mv.default %]
1155
                                                                    [% SET matched = 1 %]
1154
                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
1156
                                                                <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
1155
                                                                [% ELSE %]
1157
                                                                [% ELSE %]
1156
                                                                <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
1158
                                                                <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
1157
                                                                [% END %]
1159
                                                                [% END %]
1160
1158
                                                            [% END %]
1161
                                                            [% END %]
1162
                                                            [% UNLESS matched # If the current value is not in the authorised list %]
1163
                                                                <option value="[%- mv.default | html -%]" selected="selected">[%- mv.default | html -%]</option>
1164
                                                            </select>
1165
                                                            <span style="float:right;" title="The current value [% mv.default | html %] is not in the authorised value list"><i class="fa fa-exclamation-circle" aria-hidden="true"></i></span>
1166
                                                            [% ELSE %]
1159
                                                            </select>
1167
                                                            </select>
1168
                                                            [% END %]
1169
                                                    [% UNLESS matched # If the current value is not in the authorised list %]
1170
                                                    [% END %]
1160
                                                        [% END  # /IF (mv.type...) %]
1171
                                                        [% END  # /IF (mv.type...) %]
1161
                                                    </div>
1172
                                                    </div>
1162
                                                    [% IF ( subfield_loo.mandatory ) %]
1173
                                                    [% IF ( subfield_loo.mandatory ) %]
1163
- 

Return to bug 19361