[Koha-bugs] [Bug 35177] New: StripWhitespaceChars can break/depends on how data is copied

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 27 17:42:29 CEST 2023


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

            Bug ID: 35177
           Summary: StripWhitespaceChars can break/depends on how data is
                    copied
 Change sponsored?: ---
           Product: Koha
           Version: 23.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: esther.melander at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

Created attachment 157991
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157991&action=edit
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.

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


More information about the Koha-bugs mailing list