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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/solr/indexes.tt (-9 / +40 lines)
Lines 129-147 Link Here
129
                  [% IF ( index.mandatory ) %]
129
                  [% IF ( index.mandatory ) %]
130
                    <input type="hidden" name="type" value="[% index.type %]" />
130
                    <input type="hidden" name="type" value="[% index.type %]" />
131
                  [% END %]
131
                  [% END %]
132
                  <select name="type"[% IF ( index.mandatory ) %] disabled="disabled"[% END %]>
132
                  [% IF ( index.mandatory ) %]
133
                    <option [% IF ( index.type == 'str' ) %] selected="selected"[% END %] value="str">String</option>
133
                    <select name="type" disabled="disabled">
134
                    <option [% IF ( index.type == 'ste' ) %] selected="selected"[% END %] value="ste">Simple Text</option>
134
                  [% ELSE %]
135
                    <option [% IF ( index.type == 'txt' ) %] selected="selected"[% END %] value="txt">Text</option>
135
                    <select name="type">
136
                    <option [% IF ( index.type == 'int' ) %] selected="selected"[% END %] value="int">Integer</option>
136
                  [% END %]
137
                    <option [% IF ( index.type == 'date') %] selected="selected"[% END %] value="date">Date</option>
137
                    [% IF ( index.type == 'str' ) %]
138
                        <option value="str" selected="selected">String</option>
139
                    [% ELSE %]
140
                        <option value="str">String</option>
141
                    [% END %]
142
                    [% IF ( index.type == 'ste' ) %]
143
                        <option value="ste" selected="selected">Simple Text</option>
144
                    [% ELSE %]
145
                        <option value="ste">Simple Text</option>
146
                    [% END %]
147
                    [% IF ( index.type == 'txt' ) %]
148
                        <option value="txt" selected="selected">Text</option>
149
                    [% ELSE %]
150
                        <option value="txt">Text</option>
151
                    [% END %]
152
                    [% IF ( index.type == 'int' ) %]
153
                        <option value="int" selected="selected">Integer</option>
154
                    [% ELSE %]
155
                        <option value="int">Integer</option>
156
                    [% END %]
157
                    [% IF ( index.type == 'date' ) %]
158
                        <option value="date" selected="selected">Date</option>
159
                    [% ELSE %]
160
                        <option value="date">Date</option>
161
                    [% END %]
138
                  </select>
162
                  </select>
139
                </td>
163
                </td>
140
                <td>
164
                <td>
141
                  <input name="sortable" type="checkbox" [% IF ( index.sortable ) %]checked="checked"[% END %] value="[% index.code %]" />
165
                  [% IF ( index.sortable ) %]
166
                    <input name="sortable" type="checkbox" checked="checked" value="[% index.code %]" />
167
                  [% ELSE %]
168
                    <input name="sortable" type="checkbox" value="[% index.code %]" />
169
                  [% END %]
142
                </td>
170
                </td>
143
                <td>
171
                <td>
144
                  <input name="facetable" type="checkbox" [% IF ( index.facetable ) %]checked="checked"[% END %] value="[% index.code %]" />
172
                  [% IF ( index.facetable ) %]
173
                    <input name="facetable" type="checkbox" checked="checked" value="[% index.code %]" />
174
                  [% ELSE %]
175
                    <input name="facetable" type="checkbox" value="[% index.code %]" />
176
                  [% END %]
145
                </td>
177
                </td>
146
                <td>
178
                <td>
147
                    <textarea name="mappings" class="contentEditable">[% FOREACH m IN index.mappings %][% m %]
179
                    <textarea name="mappings" class="contentEditable">[% FOREACH m IN index.mappings %][% m %]
148
- 

Return to bug 8385