Bugzilla – Attachment 46956 Details for
Bug 14647
When exporting records, the file name extension should match the selected export format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
14647 - Make the file name extension dynamic on exporting records Test - 1. Go to /cgi-bin/koha/tools/export.pl and locate the Output format form 2. Change the file format from dropdown and notice the change in the 'File name' 3. Type a random name into '
14647---Make-the-file-name-extension-dynamic-on-ex.patch (text/plain), 1.34 KB, created by
Gus Ellerm
on 2016-01-19 22:53:54 UTC
(
hide
)
Description:
14647 - Make the file name extension dynamic on exporting records Test - 1. Go to /cgi-bin/koha/tools/export.pl and locate the Output format form 2. Change the file format from dropdown and notice the change in the 'File name' 3. Type a random name into '
Filename:
MIME Type:
Creator:
Gus Ellerm
Created:
2016-01-19 22:53:54 UTC
Size:
1.34 KB
patch
obsolete
>From 5138056218ac78c995b4e5a89dff9032aaa15a9e Mon Sep 17 00:00:00 2001 >From: Gus <gel1163@stacmail.net> >Date: Tue, 19 Jan 2016 22:48:44 +0000 >Subject: [PATCH] 14647 - Make the file name extension dynamic on exporting > records Test - 1. Go to /cgi-bin/koha/tools/export.pl and > locate the Output format form 2. Change the file format > from dropdown and notice the change in the 'File name' 3. > Type a random name into 'file name' and change 'File > format' 4. Notice the change in file name > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >index 83bc50a..95f8bbf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >@@ -17,6 +17,17 @@ $(document).ready(function() { > $("#bibs li.csv_profiles").hide(); > } > }); >+ >+ $('#output_format').change(function(){ >+ var filename = $('#filename').val(); >+ var file_name = filename.split("."); >+ var extension = $(this).val(); >+ if (extension == "iso2709") { >+ extension = "mrc"; >+ } >+ $('#filename').val(file_name[0] + "." + extension); >+ }); >+ > }); > //]]> > </script> >-- >1.7.10.4
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 14647
:
46956
|
46963
|
47047
|
47048
|
47275
|
64943
|
98541
|
98542
|
98627
|
98631
|
98632
|
98633
|
99287
|
99288
|
99289
|
99290