X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmarcdisp.h;h=bd36fd17bfb1ca86e198d88857215c97c4f39964;hp=5fb0ea188874fa75a754618c4858264537ff583c;hb=4b92c6833026a51cc391840d1157cd5fefede1df;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/include/yaz/marcdisp.h b/include/yaz/marcdisp.h index 5fb0ea1..bd36fd1 100644 --- a/include/yaz/marcdisp.h +++ b/include/yaz/marcdisp.h @@ -438,6 +438,18 @@ YAZ_EXPORT void yaz_opac_decode_wrbuf(yaz_marc_t mt, Z_OPACRecord *r, YAZ_EXPORT void yaz_opac_decode_wrbuf2(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf, yaz_iconv_t cd); +#if YAZ_HAVE_XML2 +/** \brief Converts XML to OPAC + \param mt marc handle + \param src XML root node (presumably opacRecord node) + \param dst Z39.50 OPAC result - allocated by NMEM on marc handle + \param cd iconv handle for the OPAC content (not ISO2709 part) + + \*/ +YAZ_EXPORT void yaz_xml_to_opac(yaz_marc_t mt, xmlNode *src, + Z_OPACRecord **dst, yaz_iconv_t cd); +#endif + /** \brief flushes records \param mt handle \param wr WRBUF for output