https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18822

--- Comment #10 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> ---
+        my $fixed_rec;
+        eval { $fixed_rec = MARC::Record::new_from_xml( $set->{hits}->[$j],
'UTF-8' ) };
+        $set->{hits}->[$j] = $fixed_rec unless $@;

No way to know what to expect ? Is it from internal or external ? Do we have
properties of these external ones ?
And can we check ref($set->{hits}->[$j]) to see if it is already MARC::Record ?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to