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

(-)a/Koha/REST/V1/ERM/EHoldings/Titles/Local.pm (-1 / +1 lines)
Lines 285-291 sub import_from_kbart_file { Link Here
285
        if ( $file->{filename} !~ /\.csv$/ && $file->{filename} !~ /\.tsv$/ ) {
285
        if ( $file->{filename} !~ /\.csv$/ && $file->{filename} !~ /\.tsv$/ ) {
286
            return $c->render(
286
            return $c->render(
287
                status  => 201,
287
                status  => 201,
288
                openapi => { invalid_filetype => 1 }
288
                openapi => { warnings => { invalid_filetype => 1 } }
289
            );
289
            );
290
        }
290
        }
291
291
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesKBARTImport.vue (-4 / +4 lines)
Lines 86-94 import { ref, inject } from "vue" Link Here
86
86
87
export default {
87
export default {
88
    setup() {
88
    setup() {
89
        const { setMessage } = inject("mainStore")
89
        const { setMessage, setWarning } = inject("mainStore")
90
        return {
90
        return {
91
            setMessage,
91
            setMessage,
92
            setWarning,
92
        }
93
        }
93
    },
94
    },
94
    data() {
95
    data() {
Lines 171-181 export default { Link Here
171
                        )}</p>`
172
                        )}</p>`
172
                        this.setMessage(message, true)
173
                        this.setMessage(message, true)
173
                    }
174
                    }
174
                    if (success.invalid_filetype) {
175
                    if (success.warnings.invalid_filetype) {
175
                        message += `<p>${this.$__(
176
                        message += `<p>${this.$__(
176
                            "The file must be in .tsv or .csv format, please convert your file and try again."
177
                            "The file must be in .tsv or .csv format, please convert your file and try again."
177
                        )}</p>`
178
                        )}</p>`
178
                        setWarning(message)
179
                        this.setWarning(message)
179
                    }
180
                    }
180
                },
181
                },
181
                error => {}
182
                error => {}
182
- 

Return to bug 38466