|
Lines 160-165
Link Here
|
| 160 |
[% END %] |
160 |
[% END %] |
| 161 |
</select> |
161 |
</select> |
| 162 |
</li> |
162 |
</li> |
|
|
163 |
<li> |
| 164 |
<label for="import_frameworkcode">Add new bibliographic records into this framework:</label> |
| 165 |
<select name="import_frameworkcode" id="import_frameworkcode"> |
| 166 |
<option value="">Default</option> |
| 167 |
[% FOREACH framework IN frameworks %] |
| 168 |
<option value="[% framework.frameworkcode | html %]">[% framework.frameworktext | html %]</option> |
| 169 |
[% END %] |
| 170 |
</select> |
| 171 |
</li> |
| 163 |
</ol></fieldset> |
172 |
</ol></fieldset> |
| 164 |
|
173 |
|
| 165 |
[% IF MarcModificationTemplatesLoop %] |
174 |
[% IF MarcModificationTemplatesLoop %] |
|
Lines 193-198
Link Here
|
| 193 |
<li><label for="overlay_action">Action if matching record found: </label> |
202 |
<li><label for="overlay_action">Action if matching record found: </label> |
| 194 |
[% INCLUDE 'tools-overlay-action.inc' %] |
203 |
[% INCLUDE 'tools-overlay-action.inc' %] |
| 195 |
</li> |
204 |
</li> |
|
|
205 |
<li> |
| 206 |
<label for="overlay_frameworkcode">When replacing records use this framework:</label> |
| 207 |
<select name="overlay_frameworkcode" id="overlay_frameworkcode"> |
| 208 |
<option value="_USE_ORIG_">Keep original framework</option> |
| 209 |
<option value="">Default</option> |
| 210 |
[% FOREACH framework IN frameworks %] |
| 211 |
<option value="[% framework.frameworkcode | html %]">[% framework.frameworktext | html %]</option> |
| 212 |
[% END %] |
| 213 |
</select> |
| 214 |
</li> |
| 196 |
<li><label for="nomatch_action">Action if no match is found: </label> |
215 |
<li><label for="nomatch_action">Action if no match is found: </label> |
| 197 |
[% INCLUDE 'tools-nomatch-action.inc' %] |
216 |
[% INCLUDE 'tools-nomatch-action.inc' %] |
| 198 |
</li> |
217 |
</li> |
|
Lines 298-304
Link Here
|
| 298 |
$("#marc_modification_template_id").val("").change(); |
317 |
$("#marc_modification_template_id").val("").change(); |
| 299 |
$("#matcher").val("").change(); |
318 |
$("#matcher").val("").change(); |
| 300 |
$("#overlay_action").val('replace').change(); |
319 |
$("#overlay_action").val('replace').change(); |
|
|
320 |
$("#overlay_frameworkcode").val('').change(); |
| 301 |
$("#nomatch_action").val('create_new').change(); |
321 |
$("#nomatch_action").val('create_new').change(); |
|
|
322 |
$("#import_frameworkcode").val('').change(); |
| 302 |
$("#parse_itemsyes").prop("checked", true).change(); |
323 |
$("#parse_itemsyes").prop("checked", true).change(); |
| 303 |
$("#item_action").val('always_add').change(); |
324 |
$("#item_action").val('always_add').change(); |
| 304 |
$("#profile_name").val('').keyup(); |
325 |
$("#profile_name").val('').keyup(); |
|
Lines 315-321
Link Here
|
| 315 |
$("#marc_modification_template_id").val(profile.template_id).change(); |
336 |
$("#marc_modification_template_id").val(profile.template_id).change(); |
| 316 |
$("#matcher").val(profile.matcher_id).change(); |
337 |
$("#matcher").val(profile.matcher_id).change(); |
| 317 |
$("#overlay_action").val(profile.overlay_action).change(); |
338 |
$("#overlay_action").val(profile.overlay_action).change(); |
|
|
339 |
$("#overlay_frameworkcode").val(profile.overlay_frameworkcode).change(); |
| 318 |
$("#nomatch_action").val(profile.nomatch_action).change(); |
340 |
$("#nomatch_action").val(profile.nomatch_action).change(); |
|
|
341 |
$("#import_frameworkcode").val(profile.import_frameworkcode).change(); |
| 319 |
$("input[name='parse_items'][value='"+(profile.parse_items?'1':'0')+"']").prop("checked", true).change(); |
342 |
$("input[name='parse_items'][value='"+(profile.parse_items?'1':'0')+"']").prop("checked", true).change(); |
| 320 |
$("#item_action").val(profile.item_action).change(); |
343 |
$("#item_action").val(profile.item_action).change(); |
| 321 |
$("#profile_name").val(profile.name).keyup(); |
344 |
$("#profile_name").val(profile.name).keyup(); |
|
Lines 358-364
Link Here
|
| 358 |
template_id: $("#marc_modification_template_id").val() || null, |
381 |
template_id: $("#marc_modification_template_id").val() || null, |
| 359 |
matcher_id: $("#matcher").val() || null, |
382 |
matcher_id: $("#matcher").val() || null, |
| 360 |
overlay_action: $("#overlay_action").val() || null, |
383 |
overlay_action: $("#overlay_action").val() || null, |
|
|
384 |
overlay_frameworkcode: $("#overlay_frameworkcode").val() || "", |
| 361 |
nomatch_action: $("#nomatch_action").val() || null, |
385 |
nomatch_action: $("#nomatch_action").val() || null, |
|
|
386 |
import_frameworkcode: $("#import_frameworkcode").val() || "", |
| 362 |
parse_items: !!parseInt($("input[name='parse_items']:checked").val()) || null, |
387 |
parse_items: !!parseInt($("input[name='parse_items']:checked").val()) || null, |
| 363 |
item_action: $("#item_action").val() || null, |
388 |
item_action: $("#item_action").val() || null, |
| 364 |
name: name |
389 |
name: name |