]> git.koha-community.org Git - koha.git/commit
Bug 33270: Add record_strip_nonxml routine to Koha::Biblio::Metadata
authorNick Clemens <nick@bywatersolutions.com>
Fri, 23 Jun 2023 13:08:31 +0000 (13:08 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Jul 2023 08:27:43 +0000 (09:27 +0100)
commit9544bd25a2b3c4811abb941b67a5684952a78da6
treef15582cb426294e0574a1831c15d058320912115
parent05f5c83140860a292916a522ae042c2dbf69dc58
Bug 33270: Add record_strip_nonxml routine to Koha::Biblio::Metadata

This adds a routine that can strip non xml characters form a record.
It is intended for cases where we do not wish to throw an exception,
but rather need to process a record to allow other work to continue

To test:
prove -v t/db_dependent/Koha/Biblio/Metadata.t

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4997d59c83ec1c63a3dc2c089fed79e3ad5fa764)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Biblio/Metadata.pm
t/db_dependent/Koha/Biblio/Metadata.t