@@ -, +, @@ ignore bad characters --- Koha/OAI/Server/ListBase.pm | 9 +++++++++ koha-tmpl/opac-tmpl/xslt/OAI.xslt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) --- a/Koha/OAI/Server/ListBase.pm +++ a/Koha/OAI/Server/ListBase.pm @@ -170,6 +170,15 @@ sub GetRecords { %params ) ); + } elsif ($marcxml_error) { + my $record = MARC::Record->new(); + my $marcxml = $record->as_xml_record(); + $self->record( + Koha::OAI::Server::Record->new( + $repository, $marcxml, $timestamp, \@setSpecs, + %params + ) + ); } else { $self->record( Koha::OAI::Server::DeletedRecord->new( --- a/koha-tmpl/opac-tmpl/xslt/OAI.xslt +++ a/koha-tmpl/opac-tmpl/xslt/OAI.xslt @@ -349,7 +349,7 @@ - There was a problem decoding the metadata for this record, invalid characters were stripped. See system logs for details + There was a problem decoding the metadata for this record, an attempt was made to ignore invalid characters, the metadata view may be degraded. See system logs for details --