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

--- Comment #12 from Nick Clemens <[email protected]> ---
(In reply to Marcel de Rooy from comment #10)
> +        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 ?

We have a slightly larger issue here of sometimes returning MARC::Records and
sometimes returning marcxml.

I suppose we could test the type, or assume in this case always marcxml, this
was the simplest band-aid, we will need to address the larger problem on
another report.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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