[Koha] search_for_data_inconsistencies.pl: Bibliographic records have invalid MARCXML

Jonathan Druart jonathan.druart at bugs.koha-community.org
Mon Oct 2 22:08:01 NZDT 2023


Hi,
This is a bug, there is a lack of information. Please report on bugzilla
and if possible provide a patch.

You should be able to get more info (biblionumber) with the following
change:

diff --git a/misc/maintenance/search_for_data_inconsistencies.pl
b/misc/maintenance/search_for_data_inconsistencies.pl
index ddc6b457dd1..92de2bd91b8 100755
--- a/misc/maintenance/search_for_data_inconsistencies.pl
+++ b/misc/maintenance/search_for_data_inconsistencies.pl
@@ -126,7 +126,7 @@ use C4::Biblio qw( GetMarcFromKohaField );
     while ( my $biblio = $biblios->next ) {
         my $record = eval{$biblio->metadata->record;};
         if ($@) {
-            push @decoding_errors, $@;
+            push @decoding_errors, sprintf("ID=%s - %s",
$biblio->biblionumber, $@);
             next;
         }
         my ( $biblionumber, $biblioitemnumber );

Regards,
Jonathan


Le dim. 1 oct. 2023 à 18:13, Michael Kuhn <mik at adminkuhn.ch> a écrit :

> Hi
>
> We are using Koha 21.11.09 with MariaDB 10.3.38, running on Debian
> GNU/Linux 10.
>
> When running script "search_for_data_inconsistencies.pl" we are getting
> the following output:
>
>
> == Bibliographic records have invalid MARCXML ==
> * DBIC result _type  isn't of the _type BiblioMetadata at
> /usr/share/koha/bin/maintenance/search_for_data_inconsistencies.pl line
> 124.
> * DBIC result _type  isn't of the _type BiblioMetadata at
> /usr/share/koha/bin/maintenance/search_for_data_inconsistencies.pl line
> 124.
> * DBIC result _type  isn't of the _type BiblioMetadata at
> /usr/share/koha/bin/maintenance/search_for_data_inconsistencies.pl line
> 124.
>
> => The bibliographic records must have a valid MARCXML or you will face
> encoding issues or wrong displays
>
>
> Does anyone know how to obtain further information (biblionumbers?) for
> these cases?
>
> Best wishes: Michael
> --
> Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
> T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list