@@ -, +, @@ frameworks --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt | 3 +-- koha-tmpl/intranet-tmpl/prog/js/biblio_framework.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -258,7 +258,7 @@ @@ -291,7 +291,6 @@ /* Set some variable needed in biblio_framework.js */ var MSG_IMPORT_ERROR = _("Error importing the framework"); var MSG_SELECT_FILE_FORMAT = _("Please select a CSV (.csv), ODS (.ods) or XML (.xml) spreadsheet file."); - var MSG_OVERWRITE_WARNING = _("Do you really want to import the framework fields and subfields? This will overwrite the current configuration. For safety reasons please use the export option to make a backup"); var MSG_IMPORTING_TO_FRAMEWORK = _("Importing to framework: %s. Importing from file: %s."); var template_path = "[% interface | html %]/[% theme | html %]"; --- a/koha-tmpl/intranet-tmpl/prog/js/biblio_framework.js +++ a/koha-tmpl/intranet-tmpl/prog/js/biblio_framework.js @@ -52,8 +52,9 @@ var id = $(this).attr('id'); var obj = $('#' + id + ' input:file'); if (/(?:\.csv|\.ods|\.xml)$/.test(obj.val())) { + var frameworkcode = $('#' + id + ' input:hidden[name=frameworkcode]').val(); + var MSG_OVERWRITE_WARNING = _("Are you sure you want to import the " + frameworkcode + " framework structure? This will overwrite the current configuration. For safety reasons, it is recommended to use the export option to make a backup first."); if (confirm( MSG_OVERWRITE_WARNING )) { - var frameworkcode = $('#' + id + ' input:hidden[name=frameworkcode]').val(); $('#importing_' + frameworkcode).find("span").html(MSG_IMPORTING_TO_FRAMEWORK.format("" + frameworkcode + "", "" + obj.val().replace(new RegExp("^.+[/\\\\]"),"") + "")); if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) { var timestamp = new Date().getTime(); --