[Koha-bugs] [Bug 11096] Koha cannot retreive big records from Zebra
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 22 19:44:48 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11096
--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 22292
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22292&action=edit
Bug 11096: force XML syntax for Zconn
This patch makes Koha <-> Zebra exchange speak XML instead of the
current 'USMARC'. For that, it changes some bits in
- C4::Context->Zconn
- C4::Context-_new_Zconn
Zebra's 'element' variable is set to "marcxml" to match our zebra config files.
References to MARC::File::USMARC::decode are substituted for calls to
the correct one [1] (i.e. MARC::Record::new_from_xml using an explicit
'UTF-8' encoding for the task.
This patch also removes calls to the unsafe ZOOM::Record->render()[2] method.
Due to this last change the code for building facets was rewritten.
- The FindDuplicates function was MARCXML-ized too.
- Unit tests have been moved to expect MARCXML from Zebra as well.
TODO: relevance still uses USMARC. Need advise on that.
Regards
To+
[1] As a side effect some encoding problems got fixed in facets and record
details.
http://search.cpan.org/~gmcharlt/MARC-XML-1.0.1/lib/MARC/File/XML.pm#decode()
[2] http://search.cpan.org/~mirk/Net-Z3950-ZOOM/lib/ZOOM.pod#render()
Sponsored-by: Universidad Nacional de Cordoba
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list