|
Lines 17-22
$(document).ready(function() {
Link Here
|
| 17 |
$("#bibs li.csv_profiles").hide(); |
17 |
$("#bibs li.csv_profiles").hide(); |
| 18 |
} |
18 |
} |
| 19 |
}); |
19 |
}); |
|
|
20 |
|
| 21 |
|
| 22 |
$('#output_format').change(function(){ |
| 23 |
var filename = $('#filename').val(); |
| 24 |
var file_name = filename.split("."); |
| 25 |
var extension = $(this).val(); |
| 26 |
if (extension == "iso2709") { |
| 27 |
extension = "mrc"; |
| 28 |
} |
| 29 |
$('#filename').val(file_name[0] + "." + extension); |
| 30 |
}); |
| 31 |
|
| 32 |
$('#output_format_auth').change(function(){ |
| 33 |
var filename_auth = $('#filename_auth').val(); |
| 34 |
var file_name_auth = filename_auth.split("."); |
| 35 |
var extension = $(this).val(); |
| 36 |
if (extension == "iso2709") { |
| 37 |
extension = "mrc"; |
| 38 |
} |
| 39 |
$('#filename_auth').val(file_name_auth[0] + "." + extension); |
| 40 |
}); |
| 41 |
|
| 42 |
|
| 20 |
}); |
43 |
}); |
| 21 |
//]]> |
44 |
//]]> |
| 22 |
</script> |
45 |
</script> |
|
Lines 130-137
$(document).ready(function() {
Link Here
|
| 130 |
Output format |
153 |
Output format |
| 131 |
</legend> |
154 |
</legend> |
| 132 |
<ol><li> |
155 |
<ol><li> |
| 133 |
<label for="output_format">File format: </label> |
156 |
<label for="output_format_auth">File format: </label> |
| 134 |
<select id="output_format" name="output_format"> |
157 |
<select id="output_format_auth" name="output_format_auth"> |
| 135 |
<option value="iso2709">marc</option> |
158 |
<option value="iso2709">marc</option> |
| 136 |
<option value="xml">xml</option> |
159 |
<option value="xml">xml</option> |
| 137 |
<option value="csv">csv</option> |
160 |
<option value="csv">csv</option> |
|
Lines 146-152
$(document).ready(function() {
Link Here
|
| 146 |
</select> |
169 |
</select> |
| 147 |
</li> |
170 |
</li> |
| 148 |
<li> |
171 |
<li> |
| 149 |
<label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" /> |
172 |
<label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" /> |
| 150 |
</li></ol> |
173 |
</li></ol> |
| 151 |
</fieldset> |
174 |
</fieldset> |
| 152 |
<input type="hidden" name="op" value="export" /> |
175 |
<input type="hidden" name="op" value="export" /> |
| 153 |
- |
|
|