Bug 35177 - StripWhitespaceChars can break/depends on how data is copied
Summary: StripWhitespaceChars can break/depends on how data is copied
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 23.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-27 15:42 UTC by Esther Melander
Modified: 2023-10-27 15:42 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Highlighted text (83.94 KB, image/png)
2023-10-27 15:42 UTC, Esther Melander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Esther Melander 2023-10-27 15:42:29 UTC
Created attachment 157991 [details]
Highlighted text

This refers to bug 30358 The enhancement generally works system wide but it depends on how data is copied to the clipboard.

To confirm it works:
1. Enable the system preference to strip white spaces.
2. Find a biblio with an item that has a barcode.
3. Highlight the barcode starting from the end of the barcode to the first character and release the mouse button.
4. Copy the highlighted barcode to the clipboard and paste somewhere in Koha. See there are no white spaces in front of the barcode.

To see it break:
1. Repeat the steps but highlight the barcode from the end of the barcode but allow the cursor to travel beyond the first digit of the barcode before releasing the mouse button. The screen will show the highlight only includes the barcode, but in reality additional white spaces are included.
2.Copy this "highlight" and paste it somewhere in Koha.
3. See that white spaces are included despite the system preference being enabled.

Very often when highlighting data to copy to the clipboard, the "highlight" or mouse movement incorporates more than the visible data in an attempt to make sure everything is highlighted.