projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complete XML to OPAC conversion
[yaz-moved-to-github.git]
/
include
/
yaz
/
marcdisp.h
diff --git
a/include/yaz/marcdisp.h
b/include/yaz/marcdisp.h
index
bd36fd1
..
752de41
100644
(file)
--- a/
include/yaz/marcdisp.h
+++ b/
include/yaz/marcdisp.h
@@
-441,13
+441,18
@@
YAZ_EXPORT void yaz_opac_decode_wrbuf2(yaz_marc_t mt, Z_OPACRecord *r,
#if YAZ_HAVE_XML2
/** \brief Converts XML to OPAC
\param mt marc handle
#if YAZ_HAVE_XML2
/** \brief Converts XML to OPAC
\param mt marc handle
- \param src XML root node (presumably opacRecord node)
+ \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 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)
+ \retval 1 conversion OK
+ \retval 0 conversion NOT OK
\*/
\*/
-YAZ_EXPORT void yaz_xml_to_opac(yaz_marc_t mt, xmlNode *src,
- Z_OPACRecord **dst, yaz_iconv_t cd);
+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);
#endif
/** \brief flushes records
#endif
/** \brief flushes records