results have to be checked for correct encoding
new_from_xml is good, but with utf8 and marcflavour as parameters.
---
 C4/Search.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index ee54d56..9e67103 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -518,7 +518,7 @@ sub getRecords {
                         $results_hash->{'RECORDS'}[$j] = $record;
 
             # Fill the facets while we're looping, but only for the 
biblioserver
-                        $facet_record = MARC::Record->new_from_xml($record)
+                        $facet_record = 
MARC::Record->new_from_xml($record,"utf8",C4::Context->preference("marcflavour"))
                           if $servers[ $i - 1 ] =~ /biblioserver/;
 
                     #warn $servers[$i-1]."\n".$record; 
#.$facet_record->title();
-- 
1.6.0.4

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to