Lines 210-223
Link Here
|
210 |
<fieldset class="rows"> |
210 |
<fieldset class="rows"> |
211 |
<legend>Output format</legend> |
211 |
<legend>Output format</legend> |
212 |
<ol><li> |
212 |
<ol><li> |
213 |
<label for="output_format">File format: </label> |
213 |
<label for="output_format_auth">File format: </label> |
214 |
<select id="output_format" name="output_format"> |
214 |
<select id="output_format_auth" name="output_format_auth"> |
215 |
<option value="marc">marc</option> |
215 |
<option value="marc">marc</option> |
216 |
<option value="xml">xml</option> |
216 |
<option value="xml">xml</option> |
217 |
</select> |
217 |
</select> |
218 |
</li> |
218 |
</li> |
219 |
<li> |
219 |
<li> |
220 |
<label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" /> |
220 |
<label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" /> |
221 |
</li></ol> |
221 |
</li></ol> |
222 |
</fieldset> |
222 |
</fieldset> |
223 |
<input type="hidden" name="op" value="export" /> |
223 |
<input type="hidden" name="op" value="export" /> |
Lines 316-321
Link Here
|
316 |
e.preventDefault(); |
316 |
e.preventDefault(); |
317 |
$(".branch_select").prop("checked",0); |
317 |
$(".branch_select").prop("checked",0); |
318 |
}); |
318 |
}); |
|
|
319 |
|
320 |
$('#output_format').change(function(){ |
321 |
var filename = $('#filename').val(); |
322 |
var file_name = filename.split("."); |
323 |
var extension = $(this).val(); |
324 |
if (extension == "iso2709") { |
325 |
extension = "mrc"; |
326 |
} |
327 |
$('#filename').val(file_name[0] + "." + extension); |
328 |
}); |
329 |
$('#output_format_auth').change(function(){ |
330 |
var filename_auth = $('#filename_auth').val(); |
331 |
var file_name_auth = filename_auth.split("."); |
332 |
var extension = $(this).val(); |
333 |
if (extension == "iso2709") { |
334 |
extension = "mrc"; |
335 |
} |
336 |
$('#filename_auth').val(file_name_auth[0] + "." + extension); |
337 |
}); |
319 |
}); |
338 |
}); |
320 |
</script> |
339 |
</script> |
321 |
[% END %] |
340 |
[% END %] |
322 |
- |
|
|