Bugzilla – Attachment 86553 Details for
Bug 13952
Import and export of authority types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13952: (follow-up) Fixing export on default biblio framework
Bug-13952-follow-up-Fixing-export-on-default-bibli.patch (text/plain), 2.51 KB, created by
Michal Denar
on 2019-03-12 20:35:25 UTC
(
hide
)
Description:
Bug 13952: (follow-up) Fixing export on default biblio framework
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2019-03-12 20:35:25 UTC
Size:
2.51 KB
patch
obsolete
>From 590367b79668fbd64763e039de9c1503599e4fca Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 24 Oct 2017 20:46:13 +0000 >Subject: [PATCH] Bug 13952: (follow-up) Fixing export on default biblio > framework > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > admin/import_export_framework.pl | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > >diff --git a/admin/import_export_framework.pl b/admin/import_export_framework.pl >index c0017fa97f..6bfc58ffbb 100755 >--- a/admin/import_export_framework.pl >+++ b/admin/import_export_framework.pl >@@ -40,8 +40,7 @@ unless ($auth_status eq 'ok') { > exit 0; > } > >-my $framework_name = $input->param('frameworkcode') || 'default'; >-my $frameworkcode = ($framework_name eq 'default') ? q{} : $framework_name; >+my $frameworkcode = $input->param('frameworkcode') || 'default'; > my $action = $input->param('action') || 'export'; > > ## Exporting >@@ -59,23 +58,23 @@ if ($action eq 'export' && $input->request_method() eq 'GET') { > > # Correctly set the encoding to output plain text in UTF-8 > binmode(STDOUT,':encoding(UTF-8)'); >- print $input->header(-type => 'application/vnd.ms-excel', -attachment => 'export_' . $framework_name . '.csv'); >+ print $input->header(-type => 'application/vnd.ms-excel', -attachment => 'export_' . $frameworkcode . '.csv'); > print $strXml; > } elsif ($format eq 'excel') { > # Excel-xml file >- print $input->header(-type => 'application/excel', -attachment => 'export_' . $framework_name . '.xml'); >+ print $input->header(-type => 'application/excel', -attachment => 'export_' . $frameworkcode . '.xml'); > print $strXml; > } else { > # ODS file > my $strODS = ''; > createODS($strXml, 'en', \$strODS); >- print $input->header(-type => 'application/vnd.oasis.opendocument.spreadsheet', -attachment => 'export_' . $framework_name . '.ods'); >+ print $input->header(-type => 'application/vnd.oasis.opendocument.spreadsheet', -attachment => 'export_' . $frameworkcode . '.ods'); > print $strODS; > } > ## Importing > } elsif ($input->request_method() eq 'POST') { > my $ok = -1; >- my $fieldname = 'file_import_' . $framework_name; >+ my $fieldname = 'file_import_' . $frameworkcode; > my $filename = $input->param($fieldname); > # upload the input file > if ($filename && $filename =~ /\.(csv|ods|xml)$/i) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13952
:
44770
|
47326
|
47360
|
47364
|
50046
|
53065
|
53066
|
54840
|
54899
|
54900
|
57873
|
59831
|
64421
|
67914
|
67915
|
68299
|
68300
|
68301
|
68502
|
68512
|
68513
|
68514
|
68515
|
68556
|
69940
|
69941
|
69942
|
69943
|
69944
|
76665
|
76666
|
76667
|
76668
|
80794
|
80795
|
80796
|
80797
|
81248
|
82853
|
82854
|
82855
|
82856
|
82895
|
83024
|
83025
|
83026
|
83027
|
83028
|
85073
|
86549
|
86550
|
86551
|
86552
|
86553
|
86554
|
86555
|
103610
|
103611
|
103612
|
103613
|
103614
|
103615
|
103616
|
114170
|
114171
|
114172
|
114173
|
114174
|
114175
|
114176
|
114177
|
115379
|
115381
|
115382
|
115383
|
115384
|
115385
|
115386
|
115387
|
115388
|
125383
|
125384
|
125385
|
125386
|
125387
|
125388
|
125389
|
125390
|
128316
|
128317
|
128318
|
128319
|
128320
|
128321
|
128322
|
128323
|
128324
|
128325
|
128326
|
128327
|
128328
|
128329
|
128330
|
128331
|
130587
|
130917
|
130918
|
130919
|
130920
|
130921
|
130922
|
130923
|
130924
|
130925