Use proper recordcharset for opacxml. YAZPROXY.1.0.branch
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Mar 2006 00:08:07 +0000 (00:08 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Mar 2006 00:08:07 +0000 (00:08 +0000)
src/yaz-proxy.cpp

index 5a5db92..8c55480 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: yaz-proxy.cpp,v 1.24.2.2 2005-06-10 17:51:40 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.24.2.3 2006-03-09 00:08:07 adam Exp $
    Copyright (c) 1998-2005, Index Data.
 
 This file is part of the yaz-proxy.
@@ -851,7 +851,7 @@ void Yaz_Proxy::convert_to_marcxml(Z_NamePlusRecordList *p,
            {
                WRBUF w = wrbuf_alloc();
 
-               yaz_display_OPAC(w, r->u.opac, 0);
+                yaz_opac_decode_wrbuf(mt, r->u.opac, w);
                npr->u.databaseRecord = z_ext_record(
                    odr_encode(), VAL_TEXT_XML,
                    wrbuf_buf(w), wrbuf_len(w)