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

--- Comment #72 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211768
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211768&action=edit
Bug 41151: (QA follow-up) Keep a separator between repeated values in exports

Repeatable additional field values in a datatable are displayed as a
bulleted list. The CSV, Excel, copy and print exports read the text of
the rendered cell, so the list items ran together with nothing between
them ("ReferenceNon-fiction"), even though the column's render function
returns the plain comma separated value_str for anything but display.

Put that plain value_str on the list as data-export-value, and have the
shared export formatters use it in place of the list. Cells without the
attribute are exported exactly as before.

Add a Cypress test that exports the agreements table to CSV.

To test:
1. Apply the patches, yarn js:build
2. Load ERM > Agreements with an agreement that has a repeatable,
   searchable additional field with two values, e.g. "Reference" and
   "Non-fiction"
   => The table cell shows them as a bulleted list
3. Export the table as CSV (the export menu above the table)
   => The cell contains: "Reference, Non-fiction"
   => Before the patch: ReferenceNon-fiction
4. Repeat with the Excel, Copy and Print exports
5. Run the Cypress spec
   t/cypress/integration/AdditionalFields_spec.ts
   => The export test passes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to