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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Jul 2023 15:46:57 +0000 (12:46 -0300)
commit4997d59c83ec1c63a3dc2c089fed79e3ad5fa764
tree74ae2307e9c5e41c92aeb84f10a6305f25e37160
parenta8035bea2a597da2c1687afeabd02b426f3148f6
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>
Koha/Biblio/Metadata.pm
t/db_dependent/Koha/Biblio/Metadata.t