From 8f74a7b6d010bdca81d86018447d25b28585c8e5 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 21 Apr 2020 07:22:28 +0000 Subject: [PATCH] Bug 13952: (follow-up) Removing XML options --- admin/import_export_authtype.pl | 6 +----- koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt | 7 +++---- koha-tmpl/intranet-tmpl/prog/js/authtype.js | 8 ++++---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/admin/import_export_authtype.pl b/admin/import_export_authtype.pl index 7af823b3480..db72c29308f 100755 --- a/admin/import_export_authtype.pl +++ b/admin/import_export_authtype.pl @@ -61,10 +61,6 @@ if ($action eq 'export' && $input->request_method() eq 'GET') { binmode(STDOUT,':encoding(UTF-8)'); print $input->header(-type => 'application/vnd.ms-excel', -attachment => 'export_' . $authtypecode . '.csv'); print $strXml; - } elsif ($format eq 'excel') { - # Excel-xml file - print $input->header(-type => 'application/excel', -attachment => 'export_' . $authtypecode . '.xml'); - print $strXml; } else { # ODS file my $strODS = ''; @@ -81,7 +77,7 @@ if ($action eq 'export' && $input->request_method() eq 'GET') { } my $filename = $input->param($fieldname); # upload the input file - if ($filename && $filename =~ /\.(csv|ods|xml)$/i) { + if ($filename && $filename =~ /\.(csv|ods)$/i) { my $extension = $1; my $uploadFd = $input->upload($fieldname); if ($uploadFd && !$input->cgi_error) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index 4a7d8783e05..3ca5e208b81 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -158,9 +158,9 @@
  • Edit
  • [% IF authority_type.authtypecode %]
  • Delete
  • [% END %] -
  • Export
  • +
  • Export
  • -
  • Import
  • +
  • Import
  • @@ -176,7 +176,6 @@

    -

    @@ -195,7 +194,7 @@