Bugzilla – Attachment 39465 Details for
Bug 14263
Export of CSV from item search form does only work in English
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14263: Fix export of item search results when translated
Bug-14263-Fix-export-of-item-search-results-when-t.patch (text/plain), 2.17 KB, created by
Jonathan Druart
on 2015-05-24 16:07:59 UTC
(
hide
)
Description:
Bug 14263: Fix export of item search results when translated
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-05-24 16:07:59 UTC
Size:
2.17 KB
patch
obsolete
>From 8017aee048675752eb396397cdacb82585d29334 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Sun, 24 May 2015 18:00:57 +0200 >Subject: [PATCH] Bug 14263: Fix export of item search results when translated > >This csv does not use the correct way to display headers. >They should be put in a separate file to get a correct display. >Without this patch, the first line of the generated file contains the >headers + data > >Test plan: >1/ choose a language and update + translate the templates >for instance: > cd misc/translate; > ./translate update es-ES; ./translate install es-ES >2/ Go to the item search form using this language >3/ Launch a search and select CSV to display the results. >The CSV headers should be correct >--- > .../intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt >new file mode 100644 >index 0000000..9ab1df4 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/csv_headers/catalogue/itemsearch.tt >@@ -0,0 +1,2 @@ >+Title, Publication Date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts >+ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt >index 45cfd32..49878c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt >@@ -1,4 +1,4 @@ >-Title, Publication Date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts >+[% INCLUDE csv_headers/catalogue/itemsearch.tt %] > [% FOREACH item IN results -%] > [%- INCLUDE 'catalogue/itemsearch_item.csv.inc' item = item -%] > [%- END -%] >-- >2.1.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 14263
:
39465
|
39532
|
39533
|
39718