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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-4 / +26 lines)
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 200-213 $(document).ready(function() { Link Here
200
    <fieldset class="rows">
223
    <fieldset class="rows">
201
    <legend>Output format</legend>
224
    <legend>Output format</legend>
202
        <ol><li>
225
        <ol><li>
203
            <label for="output_format">File format: </label>
226
            <label for="output_format_auth">File format: </label>
204
            <select id="output_format" name="output_format">
227
            <select id="output_format_auth" name="output_format_auth">
205
                <option value="marc">marc</option>
228
                <option value="marc">marc</option>
206
                <option value="xml">xml</option>
229
                <option value="xml">xml</option>
207
            </select>
230
            </select>
208
        </li>
231
        </li>
209
        <li>
232
        <li>
210
        <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
233
        <label for="filename_auth">File name:</label><input id="filename_auth" type="text" name="filename_auth" value="koha.mrc" />
211
        </li></ol>
234
        </li></ol>
212
    </fieldset>
235
    </fieldset>
213
    <input type="hidden" name="op" value="export" />
236
    <input type="hidden" name="op" value="export" />
214
- 

Return to bug 14647