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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc (-1 / +8 lines)
Lines 10-16 Link Here
10
[% DEFAULT class = '' size = 20 %]
10
[% DEFAULT class = '' size = 20 %]
11
11
12
[% IF avs %]
12
[% IF avs %]
13
  <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" >
13
  [% IF required %]
14
      <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" required="required">
15
  [% ELSE %]
16
      <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]">
17
  [% END %]
18
  [% IF blank %]
19
    <option value="">None</option>
20
  [% END %]
14
  [% FOR av IN avs %]
21
  [% FOR av IN avs %]
15
    [% IF av.authorised_value == default %]
22
    [% IF av.authorised_value == default %]
16
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
23
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-3 / +2 lines)
Lines 166-176 Link Here
166
                                            <li>
166
                                            <li>
167
                                            [% IF ( itemtype_required ) %]
167
                                            [% IF ( itemtype_required ) %]
168
                                                <label for="itemtype" class="required">Item type:</label>
168
                                                <label for="itemtype" class="required">Item type:</label>
169
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20 %]
169
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1 %]
170
                                                <span class="required">Required</span>
170
                                                <span class="required">Required</span>
171
                                            [% ELSE %]
171
                                            [% ELSE %]
172
                                                <label for="itemtype">Item type:</label>
172
                                                <label for="itemtype">Item type:</label>
173
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20 %]
173
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1 %]
174
                                            [% END %]
174
                                            [% END %]
175
                                            </li>
175
                                            </li>
176
                                        [% END %]
176
                                        [% END %]
177
- 

Return to bug 27297