diff --git a/Koha/OAI/Server/ListBase.pm b/Koha/OAI/Server/ListBase.pm index 6fd2891050..0c4f3a8545 100644 --- a/Koha/OAI/Server/ListBase.pm +++ b/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( diff --git a/koha-tmpl/opac-tmpl/xslt/OAI.xslt b/koha-tmpl/opac-tmpl/xslt/OAI.xslt index 81076216af..55ab81be68 100644 --- a/koha-tmpl/opac-tmpl/xslt/OAI.xslt +++ b/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