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

(-)a/Koha/Schema/Result/SearchField.pm (+4 lines)
Lines 152-157 __PACKAGE__->has_many( Link Here
152
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-02 12:47:22
152
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-02 12:47:22
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EbUa4eprgxeUkoOUiXO/Cg
153
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EbUa4eprgxeUkoOUiXO/Cg
154
154
155
__PACKAGE__->add_columns(
156
    '+mandatory' => { is_boolean => 1 },
157
);
158
155
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");
159
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");
156
160
157
1;
161
1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-5 / +3 lines)
Lines 190-201 a.add, a.delete { Link Here
190
                      [% END %]
190
                      [% END %]
191
                    <tr>
191
                    <tr>
192
                      <td>
192
                      <td>
193
                        <input type="text" name="search_field_name" value="[% search_field.name | html %]" [% is_readonly %]/>
193
                        <input type="text" name="search_field_name" value="[% search_field.name | html %]" [% is_readonly | html %]/>
194
                      </td>
194
                      </td>
195
                      <td>
195
                      <td>
196
                        <input type="text" name="search_field_label" value="[% search_field.label | html %]" [% is_readonly %]/>
196
                        <input type="text" name="search_field_label" value="[% search_field.label | html %]" [% is_readonly | html %]/>
197
                      <td>
197
                      <td>
198
<<<<<<< HEAD
199
                        [% IF is_readonly %]
198
                        [% IF is_readonly %]
200
                            <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
199
                            <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
201
                            <select name="search_field_type" disabled>
200
                            <select name="search_field_type" disabled>
Lines 386-392 a.add, a.delete { Link Here
386
                                    <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
385
                                    <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
387
                                </td>
386
                                </td>
388
                                [% IF mapping.search_field_mandatory %]
387
                                [% IF mapping.search_field_mandatory %]
389
                                    <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
388
                                    <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
390
                                [% ELSE %]
389
                                [% ELSE %]
391
                                    <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
390
                                    <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td>
392
                                [% END %]
391
                                [% END %]
393
- 

Return to bug 19482