[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
Mon May 15 20:05:02 CEST 2023


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145308|0                           |1
        is obsolete|                            |
 Attachment #145317|0                           |1
        is obsolete|                            |
 Attachment #145318|0                           |1
        is obsolete|                            |

--- Comment #74 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 151202
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151202&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