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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-1 / +1 lines)
Lines 471-477 Link Here
471
                $('#fileuploadbutton').show();
471
                $('#fileuploadbutton').show();
472
                $("#fileuploadcancel").hide();
472
                $("#fileuploadcancel").hide();
473
                var filename=$('#fileToUpload').prop('files')[0].name;
473
                var filename=$('#fileToUpload').prop('files')[0].name;
474
                if( filename.match( new RegExp(/\.[^.]+xml$/) ) ) {
474
                if( filename.match( new RegExp(/[^.]+\.xml$/) ) ) {
475
                    $('#format').val('MARCXML');
475
                    $('#format').val('MARCXML');
476
                }
476
                }
477
                $("#processfile").show();
477
                $("#processfile").show();
(-)a/t/cypress/integration/Tools/ManageMarcImport_spec.ts (-6 / +3 lines)
Lines 27-34 describe("loads the manage MARC import page", () => { Link Here
27
    it("upload a MARC record", () => {
27
    it("upload a MARC record", () => {
28
        cy.visit("/cgi-bin/koha/tools/stage-marc-import.pl");
28
        cy.visit("/cgi-bin/koha/tools/stage-marc-import.pl");
29
29
30
        cy.fixture("sample.mrc", null).as("sample_mrc");
30
        cy.fixture("sample.xml", null).as("sample_xml");
31
        cy.get("input[type=file]").selectFile("@sample_mrc");
31
        cy.get("input[type=file]").selectFile("@sample_xml");
32
        cy.get("#fileuploadbutton").click();
32
        cy.get("#fileuploadbutton").click();
33
33
34
        cy.get("#fileuploadstatus").contains("100%");
34
        cy.get("#fileuploadstatus").contains("100%");
Lines 51-59 describe("loads the manage MARC import page", () => { Link Here
51
            "always_add"
51
            "always_add"
52
        );
52
        );
53
53
54
        cy.get('select[name="format"]')
54
        cy.get('select[name="format"]').should("have.value", "MARCXML");
55
            .select("MARCXML", { force: true })
56
            .should("have.value", "MARCXML");
57
55
58
        //select some new options
56
        //select some new options
59
        cy.get("#matcher").select("3", { force: true });
57
        cy.get("#matcher").select("3", { force: true });
60
- 

Return to bug 40046