|
Lines 118-434
a.add, a.delete {
Link Here
|
| 118 |
</div> |
118 |
</div> |
| 119 |
|
119 |
|
| 120 |
<form id="es_mappings" method="post"> |
120 |
<form id="es_mappings" method="post"> |
| 121 |
<div id="tabs" class="toptabs"> |
121 |
|
| 122 |
<ul class="nav nav-tabs" role="tablist"> |
122 |
[% WRAPPER tabs id= "tabs" %] |
| 123 |
<li role="presentation" class="active"> |
123 |
|
| 124 |
<a href="#search_fields" data-tab="search_fields" aria-controls="search_fields" role="tab" data-toggle="tab" >Search fields</a> |
124 |
[% WRAPPER tabs_nav %] |
| 125 |
</li> |
125 |
[% WRAPPER tab_item tabname= "search_fields" bt_active= 1 %] Search fields [% END %] |
| 126 |
[% FOREACH index IN indexes %] |
126 |
[% FOREACH index IN indexes %] |
| 127 |
[% SWITCH index.index_name %] |
127 |
[% SWITCH index.index_name %] |
| 128 |
[% CASE 'biblios' %] |
128 |
[% CASE 'biblios' %] |
| 129 |
<li role="presentation"> |
129 |
[% WRAPPER tab_item tabname= "mapping_biblios" %] <span>Bibliographic records</span> [% END %] |
| 130 |
<a href="#mapping_biblios" data-tab="mapping_biblios" aria-controls="mapping_biblios" role="tab" data-toggle="tab">Bibliographic records</a> |
|
|
| 131 |
</li> |
| 132 |
[% CASE 'authorities' %] |
130 |
[% CASE 'authorities' %] |
| 133 |
<li role="presentation"> |
131 |
[% WRAPPER tab_item tabname= "mapping_authorities" %] <span>Authorities</span> [% END %] |
| 134 |
<a href="#mapping_authorities" data-tab="mapping_authorities" aria-controls="mapping_authorities" role="tab" data-toggle="tab">Authorities</a> |
|
|
| 135 |
</li> |
| 136 |
[% END %] |
132 |
[% END %] |
| 137 |
[% END %] |
133 |
[% END %] |
| 138 |
</ul> |
134 |
[% END # /WRAPPER tabs_nav %] |
| 139 |
<div class="tab-content"> |
135 |
|
| 140 |
<div id="search_fields" role="tabpanel" class="tab-pane active"> |
136 |
[% WRAPPER tab_panels %] |
|
|
137 |
[% WRAPPER tab_panel tabname="search_fields" bt_active= 1 %] |
| 141 |
<table class="search_fields" id="search_fields_table"> |
138 |
<table class="search_fields" id="search_fields_table"> |
| 142 |
<thead> |
139 |
<thead> |
| 143 |
<tr> |
|
|
| 144 |
<th>Name</th> |
| 145 |
<th>Aliases</th> |
| 146 |
<th>Label</th> |
| 147 |
<th>Type</th> |
| 148 |
<th>Weight</th> |
| 149 |
<th colspan="2">Searchable</th> |
| 150 |
</tr> |
| 151 |
<tr> |
| 152 |
<th colspan="5" class="NoSort"> </th> |
| 153 |
<th class="NoSort">Staff interface</th> |
| 154 |
<th class="NoSort">OPAC</th> |
| 155 |
</tr> |
| 156 |
</thead> |
| 157 |
<tbody> |
| 158 |
[% FOREACH search_field IN all_search_fields %] |
| 159 |
<tr> |
140 |
<tr> |
| 160 |
<td data-order="[% search_field.name | html %]"> |
141 |
<th>Name</th> |
| 161 |
[% IF search_field.mandatory %] |
142 |
<th>Aliases</th> |
| 162 |
<input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly /> |
143 |
<th>Label</th> |
| 163 |
[% ELSE %] |
144 |
<th>Type</th> |
| 164 |
<input type="text" name="search_field_name" value="[% search_field.name | html %]" /> |
145 |
<th>Weight</th> |
| 165 |
[% END %] |
146 |
<th colspan="2">Searchable</th> |
| 166 |
</td> |
|
|
| 167 |
<td> |
| 168 |
[% search_field.aliases.join(', ') | html %] |
| 169 |
</td> |
| 170 |
<td data-order="[% search_field.label | html %]"> |
| 171 |
[% IF search_field.mandatory %] |
| 172 |
<input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly /> |
| 173 |
[% ELSE %] |
| 174 |
<input type="text" name="search_field_label" value="[% search_field.label | html %]" /> |
| 175 |
[% END %] |
| 176 |
</td> |
| 177 |
<td data-order="[% search_field.type | html %]"> |
| 178 |
[% IF search_field.mandatory %] |
| 179 |
<input type="hidden" name="search_field_type" value="[% search_field.type | html %]" /> |
| 180 |
<select name="search_field_type" disabled> |
| 181 |
[% ELSE %] |
| 182 |
<select name="search_field_type"> |
| 183 |
[% END %] |
| 184 |
<option value=""></option> |
| 185 |
[% IF search_field.type == "string" %] |
| 186 |
<option value="string" selected="selected">String</option> |
| 187 |
[% ELSE %] |
| 188 |
<option value="string">String</option> |
| 189 |
[% END %] |
| 190 |
[% IF search_field.type == "date" %] |
| 191 |
<option value="date" selected="selected">Date</option> |
| 192 |
[% ELSE %] |
| 193 |
<option value="date">Date</option> |
| 194 |
[% END %] |
| 195 |
[% IF search_field.type == "year" %] |
| 196 |
<option value="year" selected="selected">Year</option> |
| 197 |
[% ELSE %] |
| 198 |
<option value="year">Year</option> |
| 199 |
[% END %] |
| 200 |
[% IF search_field.type == "number" %] |
| 201 |
<option value="number" selected="selected">Number</option> |
| 202 |
[% ELSE %] |
| 203 |
<option value="number">Number</option> |
| 204 |
[% END %] |
| 205 |
[% IF search_field.type == "boolean" %] |
| 206 |
<option value="boolean" selected="selected">Boolean</option> |
| 207 |
[% ELSE %] |
| 208 |
<option value="boolean">Boolean</option> |
| 209 |
[% END %] |
| 210 |
[% IF search_field.type == "sum" %] |
| 211 |
<option value="sum" selected="selected">Sum</option> |
| 212 |
[% ELSE %] |
| 213 |
<option value="sum">Sum</option> |
| 214 |
[% END %] |
| 215 |
[% IF search_field.type == "isbn" %] |
| 216 |
<option value="isbn" selected="selected">ISBN</option> |
| 217 |
[% ELSE %] |
| 218 |
<option value="isbn">ISBN</option> |
| 219 |
[% END %] |
| 220 |
[% IF search_field.type == "stdno" %] |
| 221 |
<option value="stdno" selected="selected">Std. Number</option> |
| 222 |
[% ELSE %] |
| 223 |
<option value="stdno">Std. Number</option> |
| 224 |
[% END %] |
| 225 |
[% IF search_field.type == "callnumber" %] |
| 226 |
<option value="callnumber" selected="selected">Call Number</option> |
| 227 |
[% ELSE %] |
| 228 |
<option value="callnumber">Call Number</option> |
| 229 |
[% END %] |
| 230 |
</select> |
| 231 |
</td> |
| 232 |
<td data-order="[% search_field.weight | html %]"> |
| 233 |
[% IF search_field.mapped_biblios %] |
| 234 |
<input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" /> |
| 235 |
[% ELSE %] |
| 236 |
<input type="text" name="search_field_weight" value=""> |
| 237 |
[% END %] |
| 238 |
</td> |
| 239 |
<td> |
| 240 |
<select name="search_field_staff_client"> |
| 241 |
[% IF search_field.staff_client %] |
| 242 |
<option value="1" selected="selected">Yes</option> |
| 243 |
<option value="0">No</option> |
| 244 |
[% ELSE %] |
| 245 |
<option value="1">Yes</option> |
| 246 |
<option value="0" selected="selected">No</option> |
| 247 |
[% END %] |
| 248 |
</select> |
| 249 |
</td> |
| 250 |
<td> |
| 251 |
<select name="search_field_opac"> |
| 252 |
[% IF search_field.opac %] |
| 253 |
<option value="1" selected="selected">Yes</option> |
| 254 |
<option value="0">No</option> |
| 255 |
[% ELSE %] |
| 256 |
<option value="1">Yes</option> |
| 257 |
<option value="0" selected="selected">No</option> |
| 258 |
[% END %] |
| 259 |
</select> |
| 260 |
</td> |
| 261 |
</tr> |
147 |
</tr> |
| 262 |
[% END %] |
148 |
<tr> |
| 263 |
</tbody> |
149 |
<th colspan="5" class="NoSort"> </th> |
| 264 |
</table> |
150 |
<th class="NoSort">Staff interface</th> |
| 265 |
</div> |
151 |
<th class="NoSort">OPAC</th> |
| 266 |
[% FOREACH index IN indexes %] |
|
|
| 267 |
<div id="mapping_[% index.index_name | html %]" role="tabpanel" class="tab-pane"> |
| 268 |
<table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table"> |
| 269 |
<thead> |
| 270 |
<tr class="nodrag nodrop"> |
| 271 |
<th>Search field</th> |
| 272 |
<th>Sortable</th> |
| 273 |
<th>Facetable</th> |
| 274 |
<th>Suggestible</th> |
| 275 |
<th>Searchable</th> |
| 276 |
<th>Mapping</th> |
| 277 |
<th> </th> |
| 278 |
</tr> |
152 |
</tr> |
| 279 |
</thead> |
153 |
</thead> |
| 280 |
<tbody> |
154 |
<tbody> |
| 281 |
[% FOREACH mapping IN index.mappings %] |
155 |
[% FOREACH search_field IN all_search_fields %] |
| 282 |
[% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %] |
|
|
| 283 |
<tr> |
156 |
<tr> |
| 284 |
<td> |
157 |
<td data-order="[% search_field.name | html %]"> |
| 285 |
<input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> |
158 |
[% IF search_field.mandatory %] |
| 286 |
<input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> |
159 |
<input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly /> |
| 287 |
[% mapping.search_field_label | html %] |
160 |
[% ELSE %] |
|
|
161 |
<input type="text" name="search_field_name" value="[% search_field.name | html %]" /> |
| 162 |
[% END %] |
| 288 |
</td> |
163 |
</td> |
| 289 |
<td> |
164 |
<td> |
| 290 |
[% IF mapping.sort == 0 %] |
165 |
[% search_field.aliases.join(', ') | html %] |
| 291 |
<input type="hidden" name="mapping_sort" value="0" readonly />No |
|
|
| 292 |
[% ELSE %] |
| 293 |
<input type="hidden" name="mapping_sort" value="1" readonly />Yes |
| 294 |
[% END %] |
| 295 |
</td> |
166 |
</td> |
| 296 |
<td> |
167 |
<td data-order="[% search_field.label | html %]"> |
| 297 |
<input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %] |
168 |
[% IF search_field.mandatory %] |
|
|
169 |
<input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly /> |
| 170 |
[% ELSE %] |
| 171 |
<input type="text" name="search_field_label" value="[% search_field.label | html %]" /> |
| 172 |
[% END %] |
| 298 |
</td> |
173 |
</td> |
| 299 |
<td> |
174 |
<td data-order="[% search_field.type | html %]"> |
| 300 |
<input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %] |
175 |
[% IF search_field.mandatory %] |
|
|
176 |
<input type="hidden" name="search_field_type" value="[% search_field.type | html %]" /> |
| 177 |
<select name="search_field_type" disabled> |
| 178 |
[% ELSE %] |
| 179 |
<select name="search_field_type"> |
| 180 |
[% END %] |
| 181 |
<option value=""></option> |
| 182 |
[% IF search_field.type == "string" %] |
| 183 |
<option value="string" selected="selected">String</option> |
| 184 |
[% ELSE %] |
| 185 |
<option value="string">String</option> |
| 186 |
[% END %] |
| 187 |
[% IF search_field.type == "date" %] |
| 188 |
<option value="date" selected="selected">Date</option> |
| 189 |
[% ELSE %] |
| 190 |
<option value="date">Date</option> |
| 191 |
[% END %] |
| 192 |
[% IF search_field.type == "year" %] |
| 193 |
<option value="year" selected="selected">Year</option> |
| 194 |
[% ELSE %] |
| 195 |
<option value="year">Year</option> |
| 196 |
[% END %] |
| 197 |
[% IF search_field.type == "number" %] |
| 198 |
<option value="number" selected="selected">Number</option> |
| 199 |
[% ELSE %] |
| 200 |
<option value="number">Number</option> |
| 201 |
[% END %] |
| 202 |
[% IF search_field.type == "boolean" %] |
| 203 |
<option value="boolean" selected="selected">Boolean</option> |
| 204 |
[% ELSE %] |
| 205 |
<option value="boolean">Boolean</option> |
| 206 |
[% END %] |
| 207 |
[% IF search_field.type == "sum" %] |
| 208 |
<option value="sum" selected="selected">Sum</option> |
| 209 |
[% ELSE %] |
| 210 |
<option value="sum">Sum</option> |
| 211 |
[% END %] |
| 212 |
[% IF search_field.type == "isbn" %] |
| 213 |
<option value="isbn" selected="selected">ISBN</option> |
| 214 |
[% ELSE %] |
| 215 |
<option value="isbn">ISBN</option> |
| 216 |
[% END %] |
| 217 |
[% IF search_field.type == "stdno" %] |
| 218 |
<option value="stdno" selected="selected">Std. Number</option> |
| 219 |
[% ELSE %] |
| 220 |
<option value="stdno">Std. Number</option> |
| 221 |
[% END %] |
| 222 |
[% IF search_field.type == "callnumber" %] |
| 223 |
<option value="callnumber" selected="selected">Call Number</option> |
| 224 |
[% ELSE %] |
| 225 |
<option value="callnumber">Call Number</option> |
| 226 |
[% END %] |
| 227 |
</select> |
| 301 |
</td> |
228 |
</td> |
|
|
229 |
<td data-order="[% search_field.weight | html %]"> |
| 230 |
[% IF search_field.mapped_biblios %] |
| 231 |
<input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" /> |
| 232 |
[% ELSE %] |
| 233 |
<input type="text" name="search_field_weight" value=""> |
| 234 |
[% END %] |
| 235 |
</td> |
| 302 |
<td> |
236 |
<td> |
| 303 |
<input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %] |
237 |
<select name="search_field_staff_client"> |
|
|
238 |
[% IF search_field.staff_client %] |
| 239 |
<option value="1" selected="selected">Yes</option> |
| 240 |
<option value="0">No</option> |
| 241 |
[% ELSE %] |
| 242 |
<option value="1">Yes</option> |
| 243 |
<option value="0" selected="selected">No</option> |
| 244 |
[% END %] |
| 245 |
</select> |
| 304 |
</td> |
246 |
</td> |
| 305 |
<td data-search="[% mapping.marc_field | html %]"> |
247 |
<td> |
| 306 |
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> |
248 |
<select name="search_field_opac"> |
|
|
249 |
[% IF search_field.opac %] |
| 250 |
<option value="1" selected="selected">Yes</option> |
| 251 |
<option value="0">No</option> |
| 252 |
[% ELSE %] |
| 253 |
<option value="1">Yes</option> |
| 254 |
<option value="0" selected="selected">No</option> |
| 255 |
[% END %] |
| 256 |
</select> |
| 307 |
</td> |
257 |
</td> |
| 308 |
<td> </td> |
|
|
| 309 |
</tr> |
258 |
</tr> |
| 310 |
[% ELSE %] |
259 |
[% END %] |
| 311 |
<tr> |
260 |
</tbody> |
|
|
261 |
</table> |
| 262 |
[% END %] |
| 263 |
[% FOREACH index IN indexes %] |
| 264 |
[% WRAPPER tab_panel tabname="mapping_${ index.index_name }" %] |
| 265 |
<table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table"> |
| 266 |
<thead> |
| 267 |
<tr class="nodrag nodrop"> |
| 268 |
<th>Search field</th> |
| 269 |
<th>Sortable</th> |
| 270 |
<th>Facetable</th> |
| 271 |
<th>Suggestible</th> |
| 272 |
<th>Searchable</th> |
| 273 |
<th>Mapping</th> |
| 274 |
<th> </th> |
| 275 |
</tr> |
| 276 |
</thead> |
| 277 |
<tbody> |
| 278 |
[% FOREACH mapping IN index.mappings %] |
| 279 |
[% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %] |
| 280 |
<tr> |
| 281 |
<td> |
| 282 |
<input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> |
| 283 |
<input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> |
| 284 |
[% mapping.search_field_label | html %] |
| 285 |
</td> |
| 286 |
<td> |
| 287 |
[% IF mapping.sort == 0 %] |
| 288 |
<input type="hidden" name="mapping_sort" value="0" readonly />No |
| 289 |
[% ELSE %] |
| 290 |
<input type="hidden" name="mapping_sort" value="1" readonly />Yes |
| 291 |
[% END %] |
| 292 |
</td> |
| 293 |
<td> |
| 294 |
<input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %] |
| 295 |
</td> |
| 296 |
<td> |
| 297 |
<input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %] |
| 298 |
</td> |
| 299 |
<td> |
| 300 |
<input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %] |
| 301 |
</td> |
| 302 |
<td data-search="[% mapping.marc_field | html %]"> |
| 303 |
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> |
| 304 |
</td> |
| 305 |
<td> </td> |
| 306 |
</tr> |
| 307 |
[% ELSE %] |
| 308 |
<tr> |
| 309 |
<td> |
| 310 |
<input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> |
| 311 |
<input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> |
| 312 |
[% mapping.search_field_label | html %] |
| 313 |
</td> |
| 314 |
<td> |
| 315 |
<select name="mapping_sort"> |
| 316 |
[% IF mapping.sort == 0 %] |
| 317 |
<option value="0" selected="selected">No</option> |
| 318 |
<option value="1">Yes</option> |
| 319 |
[% ELSE %] |
| 320 |
<option value="0">No</option> |
| 321 |
<option value="1" selected="selected">Yes</option> |
| 322 |
[% END %] |
| 323 |
</select> |
| 324 |
</td> |
| 325 |
<td> |
| 326 |
[% IF mapping.is_facetable %] |
| 327 |
<select name="mapping_facet"> |
| 328 |
[% IF mapping.facet %] |
| 329 |
<option value="0">No</option> |
| 330 |
<option value="1" selected="selected">Yes</option> |
| 331 |
[% ELSE %] |
| 332 |
<option value="0" selected="selected">No</option> |
| 333 |
<option value="1">Yes</option> |
| 334 |
[% END %] |
| 335 |
</select> |
| 336 |
[% ELSE %] |
| 337 |
<input type="hidden" name="mapping_facet" value="0" /> |
| 338 |
No |
| 339 |
[% END %] |
| 340 |
</td> |
| 341 |
<td> |
| 342 |
<select name="mapping_suggestible"> |
| 343 |
[% IF mapping.suggestible %] |
| 344 |
<option value="0">No</option> |
| 345 |
<option value="1" selected="selected">Yes</option> |
| 346 |
[% ELSE %] |
| 347 |
<option value="0" selected="selected">No</option> |
| 348 |
<option value="1">Yes</option> |
| 349 |
[% END %] |
| 350 |
</select> |
| 351 |
</td> |
| 352 |
<td> |
| 353 |
<select name="mapping_search"> |
| 354 |
[% IF mapping.search %] |
| 355 |
<option value="0">No</option> |
| 356 |
<option value="1" selected="selected">Yes</option> |
| 357 |
[% ELSE %] |
| 358 |
<option value="0" selected="selected">No</option> |
| 359 |
<option value="1">Yes</option> |
| 360 |
[% END %] |
| 361 |
</select> |
| 362 |
</td> |
| 363 |
<td data-search="[% mapping.marc_field | html %]"> |
| 364 |
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> |
| 365 |
</td> |
| 366 |
[% IF mapping.search_field_mandatory %] |
| 367 |
<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> |
| 368 |
[% ELSE %] |
| 369 |
<td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> |
| 370 |
[% END %] |
| 371 |
</tr> |
| 372 |
[% END %] |
| 373 |
[% END %] |
| 374 |
</tbody> |
| 375 |
<tfoot> |
| 376 |
<tr class="nodrag nodrop"> |
| 312 |
<td> |
377 |
<td> |
| 313 |
<input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> |
378 |
<input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" /> |
| 314 |
<input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> |
379 |
<select data-id="mapping_search_field_name"> |
| 315 |
[% mapping.search_field_label | html %] |
380 |
[% FOREACH f IN all_search_fields %] |
|
|
381 |
<option value="[% f.name | html %]">[% f.name | html %]</option> |
| 382 |
[% END %] |
| 383 |
</select> |
| 316 |
</td> |
384 |
</td> |
| 317 |
<td> |
385 |
<td> |
| 318 |
<select name="mapping_sort"> |
386 |
<select data-id="mapping_sort"> |
| 319 |
[% IF mapping.sort == 0 %] |
387 |
<option value="undef">Undef</option> |
| 320 |
<option value="0" selected="selected">No</option> |
388 |
<option value="0">0</option> |
| 321 |
<option value="1">Yes</option> |
389 |
<option value="1">1</option> |
| 322 |
[% ELSE %] |
390 |
</select> |
| 323 |
<option value="0">No</option> |
|
|
| 324 |
<option value="1" selected="selected">Yes</option> |
| 325 |
[% END %] |
| 326 |
</select> |
| 327 |
</td> |
391 |
</td> |
| 328 |
<td> |
392 |
<td> |
| 329 |
[% IF mapping.is_facetable %] |
393 |
<select data-id="mapping_facet"> |
| 330 |
<select name="mapping_facet"> |
394 |
[% IF mapping.facet %] |
| 331 |
[% IF mapping.facet %] |
395 |
<option value="0">No</option> |
| 332 |
<option value="0">No</option> |
396 |
<option value="1" selected="selected">Yes</option> |
| 333 |
<option value="1" selected="selected">Yes</option> |
397 |
[% ELSE %] |
| 334 |
[% ELSE %] |
398 |
<option value="0" selected="selected">No</option> |
| 335 |
<option value="0" selected="selected">No</option> |
399 |
<option value="1">Yes</option> |
| 336 |
<option value="1">Yes</option> |
400 |
[% END %] |
| 337 |
[% END %] |
|
|
| 338 |
</select> |
401 |
</select> |
| 339 |
[% ELSE %] |
|
|
| 340 |
<input type="hidden" name="mapping_facet" value="0" /> |
| 341 |
No |
| 342 |
[% END %] |
| 343 |
</td> |
402 |
</td> |
| 344 |
<td> |
403 |
<td> |
| 345 |
<select name="mapping_suggestible"> |
404 |
<select data-id="mapping_suggestible"> |
| 346 |
[% IF mapping.suggestible %] |
405 |
[% IF mapping.suggestible %] |
| 347 |
<option value="0">No</option> |
406 |
<option value="0">No</option> |
| 348 |
<option value="1" selected="selected">Yes</option> |
407 |
<option value="1" selected="selected">Yes</option> |
| 349 |
[% ELSE %] |
408 |
[% ELSE %] |
| 350 |
<option value="0" selected="selected">No</option> |
409 |
<option value="0" selected="selected">No</option> |
| 351 |
<option value="1">Yes</option> |
410 |
<option value="1">Yes</option> |
| 352 |
[% END %] |
411 |
[% END %] |
| 353 |
</select> |
412 |
</select> |
| 354 |
</td> |
413 |
</td> |
| 355 |
<td> |
414 |
<td> |
| 356 |
<select name="mapping_search"> |
415 |
<select data-id="mapping_search"> |
| 357 |
[% IF mapping.search %] |
416 |
[% IF mapping.search %] |
| 358 |
<option value="0">No</option> |
417 |
<option value="0">No</option> |
| 359 |
<option value="1" selected="selected">Yes</option> |
418 |
<option value="1" selected="selected">Yes</option> |
| 360 |
[% ELSE %] |
419 |
[% ELSE %] |
| 361 |
<option value="0" selected="selected">No</option> |
420 |
<option value="0" selected="selected">No</option> |
| 362 |
<option value="1">Yes</option> |
421 |
<option value="1">Yes</option> |
| 363 |
[% END %] |
422 |
[% END %] |
| 364 |
</select> |
423 |
</select> |
| 365 |
</td> |
|
|
| 366 |
<td data-search="[% mapping.marc_field | html %]"> |
| 367 |
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> |
| 368 |
</td> |
424 |
</td> |
| 369 |
[% IF mapping.search_field_mandatory %] |
425 |
<td><input data-id="mapping_marc_field" type="text" /></td> |
| 370 |
<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> |
426 |
<td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td> |
| 371 |
[% ELSE %] |
|
|
| 372 |
<td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> |
| 373 |
[% END %] |
| 374 |
</tr> |
427 |
</tr> |
| 375 |
[% END %] |
428 |
</tfoot> |
| 376 |
[% END %] |
|
|
| 377 |
</tbody> |
| 378 |
<tfoot> |
| 379 |
<tr class="nodrag nodrop"> |
| 380 |
<td> |
| 381 |
<input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" /> |
| 382 |
<select data-id="mapping_search_field_name"> |
| 383 |
[% FOREACH f IN all_search_fields %] |
| 384 |
<option value="[% f.name | html %]">[% f.name | html %]</option> |
| 385 |
[% END %] |
| 386 |
</select> |
| 387 |
</td> |
| 388 |
<td> |
| 389 |
<select data-id="mapping_sort"> |
| 390 |
<option value="undef">Undef</option> |
| 391 |
<option value="0">0</option> |
| 392 |
<option value="1">1</option> |
| 393 |
</select> |
| 394 |
</td> |
| 395 |
<td> |
| 396 |
<select data-id="mapping_facet"> |
| 397 |
[% IF mapping.facet %] |
| 398 |
<option value="0">No</option> |
| 399 |
<option value="1" selected="selected">Yes</option> |
| 400 |
[% ELSE %] |
| 401 |
<option value="0" selected="selected">No</option> |
| 402 |
<option value="1">Yes</option> |
| 403 |
[% END %] |
| 404 |
</select> |
| 405 |
</td> |
| 406 |
<td> |
| 407 |
<select data-id="mapping_suggestible"> |
| 408 |
[% IF mapping.suggestible %] |
| 409 |
<option value="0">No</option> |
| 410 |
<option value="1" selected="selected">Yes</option> |
| 411 |
[% ELSE %] |
| 412 |
<option value="0" selected="selected">No</option> |
| 413 |
<option value="1">Yes</option> |
| 414 |
[% END %] |
| 415 |
</select> |
| 416 |
</td> |
| 417 |
<td> |
| 418 |
<select data-id="mapping_search"> |
| 419 |
[% IF mapping.search %] |
| 420 |
<option value="0">No</option> |
| 421 |
<option value="1" selected="selected">Yes</option> |
| 422 |
[% ELSE %] |
| 423 |
<option value="0" selected="selected">No</option> |
| 424 |
<option value="1">Yes</option> |
| 425 |
[% END %] |
| 426 |
</select> |
| 427 |
</td> |
| 428 |
<td><input data-id="mapping_marc_field" type="text" /></td> |
| 429 |
<td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td> |
| 430 |
</tr> |
| 431 |
</tfoot> |
| 432 |
</table> |
429 |
</table> |
| 433 |
|
430 |
|
| 434 |
[% IF index.index_name == 'biblios' %] |
431 |
[% IF index.index_name == 'biblios' %] |
|
Lines 476-485
a.add, a.delete {
Link Here
|
| 476 |
</table> |
473 |
</table> |
| 477 |
</div> |
474 |
</div> |
| 478 |
[% END %] |
475 |
[% END %] |
| 479 |
</div> |
476 |
[% END # /WRAPPER tab_panel#mapping_{ index.index_name} %] |
| 480 |
[% END %] |
477 |
[% END # /FOREACH index %] |
| 481 |
</div> <!-- /.tab-content --> |
478 |
[% END # /WRAPPER tab_panels %] |
| 482 |
</div> <!-- /#tabs --> |
479 |
[% END # /WRAPPER tabs %] |
|
|
480 |
|
| 483 |
<fieldset class="action"> |
481 |
<fieldset class="action"> |
| 484 |
<button class="btn btn-primary" type="submit" name="op" value="edit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button> |
482 |
<button class="btn btn-primary" type="submit" name="op" value="edit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button> |
| 485 |
<button class="btn btn-default" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button> |
483 |
<button class="btn btn-default" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button> |
| 486 |
- |
|
|