[Koha-bugs] [Bug 30358] Strip leading/trailing whitespace characters from input fields when cataloguing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 13 21:00:40 CET 2023


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #144120|0                           |1
        is obsolete|                            |
 Attachment #144121|0                           |1
        is obsolete|                            |
 Attachment #144122|0                           |1
        is obsolete|                            |
 Attachment #144123|0                           |1
        is obsolete|                            |
 Attachment #144124|0                           |1
        is obsolete|                            |
 Attachment #144125|0                           |1
        is obsolete|                            |
 Attachment #144126|0                           |1
        is obsolete|                            |
 Attachment #144127|0                           |1
        is obsolete|                            |
 Attachment #144128|0                           |1
        is obsolete|                            |
 Attachment #144129|0                           |1
        is obsolete|                            |
 Attachment #144171|0                           |1
        is obsolete|                            |

--- Comment #63 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 145308
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145308&action=edit
Bug 30358: Strip leading/trailing whitespace characters from input fields when
cataloguing

This enhancement adds a system preference StripWhitespaceChars which,
when enabled, will strip leading and trailing whitespace characters from
all fields when cataloguing both bibliographic records and authority
records. Whitespace characters that will be stripped are:
- spaces
- newlines
- carriage returns
- tabs

To test:
1. Apply patch and install database updates
2. Go to Administration, system preferences, find the new
StripWhitespaceChars preference. It should be "Don't strip" by default.
Change it to "Strip".
3. Search for a biblio record and edit it. Put some leading or trailing
whitespace characters in input fields and textarea fields and save.
4. Confirm these characters are removed when you save the record.
5. Repeat steps 3 and 4 for authority records.
6. Confirm tests pass t/db_dependent/Biblio/ModBiblioMarc.t

Sponsored-by: Educational Services Australia SCIS

Signed-off-by: David Nind <david at davidnind.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list