X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fmarcdisp.h;h=f1eaae89e3ac5303ff684e6775cc496f487321f0;hb=eeec1fcf0dad0e7d431c2494c8e65560563f3aae;hp=5fb0ea188874fa75a754618c4858264537ff583c;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;p=yaz-moved-to-github.git diff --git a/include/yaz/marcdisp.h b/include/yaz/marcdisp.h index 5fb0ea1..f1eaae8 100644 --- a/include/yaz/marcdisp.h +++ b/include/yaz/marcdisp.h @@ -438,6 +438,24 @@ 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 buf_in XML buffer + \param size_in size of XML buffer + \param dst Z39.50 OPAC result - allocated by NMEM on marc handle + \param cd iconv handle for the OPAC content (not ISO2709 part) + \param nmem memory for OPACRecord (if NULL, mt NMEM memory is used) + \param syntax OID for embedded MARC (if NULL, USMARC is used) + \retval 1 conversion OK + \retval 0 conversion NOT OK + \*/ +YAZ_EXPORT int yaz_xml_to_opac(yaz_marc_t mt, + const char *buf_in, size_t size_in, + Z_OPACRecord **dst, yaz_iconv_t cd, + NMEM nmem, const Odr_oid *syntax); +#endif + /** \brief flushes records \param mt handle \param wr WRBUF for output