Bug 40880

Summary: Exporting Item search results to csv, columns after Damaged Status are misaligned
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Staff interfaceAssignee: Nick Clemens (kidclamp) <nick>
Status: Needs documenting --- QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P5 - low CC: baptiste.wojtkowski, gmcharlt, m.de.rooy
Version: MainKeywords: rel_25_05_candidate
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.05
Circulation function:
Bug Depends on: 33729    
Bug Blocks:    
Attachments: Bug 40880: Correct columns headers for CSV export from item search
Bug 40880: Correct columns headers for CSV export from item search

Description Nick Clemens (kidclamp) 2025-09-25 18:51:25 UTC
Looks like a bad copy paste in the the headers template:

"[% t("Damaged status") | html %]"[% t("Date accessioned") | html %]"[%- delimiter | $raw -%]"[%- delimiter | $raw -%]"
Comment 1 Nick Clemens (kidclamp) 2025-09-25 18:53:05 UTC
Created attachment 186934 [details] [review]
Bug 40880: Correct columns headers for CSV export from item search

To test:
1 - Do an item search, select some rows
2 - Export selected rows as 'CSV'
3 - IMport into a spreadsheet or view and note missing/doubled delimiters after damaged status
4 - Apply patch
5 - Repeat export
6 - It works!
Comment 2 Nick Clemens (kidclamp) 2025-09-25 18:54:52 UTC
Simple self SO
Comment 3 Marcel de Rooy 2025-09-26 06:34:33 UTC
(In reply to Nick Clemens (kidclamp) from comment #2)
> Simple self SO

Too simple, without signoff line? Will correct.
Comment 4 Marcel de Rooy 2025-09-26 06:38:58 UTC
Created attachment 186954 [details] [review]
Bug 40880: Correct columns headers for CSV export from item search

To test:
1 - Do an item search, select some rows
2 - Export selected rows as 'CSV'
3 - IMport into a spreadsheet or view and note missing/doubled delimiters after damaged status
4 - Apply patch
5 - Repeat export
6 - It works!

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 5 Lucas Gass (lukeg) 2025-09-26 16:42:03 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 6 Paul Derscheid 2025-10-23 21:11:17 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 7 Baptiste Wojtkowski (bwoj) 2025-10-31 14:52:55 UTC
Depends on non backported Bug 33729, not backported