[Koha-bugs] [Bug 27164] Double quotes everywhere in item search CSV export

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 8 16:36:36 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27164

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #114233|0                           |1
        is obsolete|                            |
 Attachment #114261|0                           |1
        is obsolete|                            |

--- Comment #4 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 114262
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114262&action=edit
Bug 27164: Fix item search CSV export

In item search CSV export, data cells are exported with double quotes.
There should also be double quotes in header cells.
Also some spaces can be removed.
Delimiter must be from system preference 'delimiter'.
TT filter must be $raw not html, only double quotes must be espaped by
duplication of it.

This may help to open the CSV with any table/calc software.

Test plan :
1.0) Create a record with title : Laurel & "Hardy"
1.2) Create an item on this record
2.0) Without patch
2.1) Perform an item search on title 'Laurel'
2.2) Export as a CSV file and save the file locally
2.3) Open the file with a table/calc software
3.0) Apply patch
3.1) Perform same item search
3.2) Export as a CSV file and save the file locally
3.3) Open the file with a table/calc software
4.0) Compare files with diff/meld
=> you see only double quotes arround header cells
   and removal of space after coma
4.1) Check that delimiter is from system preference 'delimiter'
4.2) In table/calc software they should look the same

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list