[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 Apr 11 07:27:32 CEST 2022


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #10 from David Cook <dcook at prosentient.com.au> ---
(In reply to Aleisha Amohia from comment #4)
> text area fields in MARC records are not designed to
> carry formatting, therefore it is implied that the data would be saved as a
> plain text string with no added formatting.

As far as I know, there is no prohibition against using carriage returns and
line feeds in MARC records. The MARCXML schema seems to indicate that all
whitespace is allowed:
https://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd. 

That said, I haven't ever seen an example that includes them either. 

> For users who follow these cataloguing standards, there should be a setting
> to ask Koha to strip these.
> 
> Planning to amend StripWhitespaceChars to also strip inner line breaks and
> carriage returns.

It would probably be a good idea to indicate that it's data fields and not the
leader and control fields that are affected. 

--

I'd also suggest adding an additional option for inner newlines. While I can
see the utility of trimming whitespace off the beginning and end, I imagine
that many librarians would be frustrated by inner whitespace being trimmed (at
least if there wasn't a clear warning about it).

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


More information about the Koha-bugs mailing list