YAZ
5.34.0
|
Header for CCL + XML stuff. More...
Go to the source code of this file.
Functions | |
int | ccl_xml_config (CCL_bibset bibset, const xmlNode *ptr, const char **addinfo) |
configures CCL bibset using XML configuration More... | |
Header for CCL + XML stuff.
Definition in file ccl_xml.h.
int ccl_xml_config | ( | CCL_bibset | bibset, |
const xmlNode * | ptr, | ||
const char ** | addinfo | ||
) |
configures CCL bibset using XML configuration
bibset | CCL bibliographic profile |
ptr | xml node pointer pointing to "cclmap" element |
addinfo | has error message if configuration could not be parsed |
0 | OK |
-1 | errors. Inspect addinfo for error message |
Configuration example:
<cclmap defaultattrset="bib-1"> <qual name="term"> <attr type="u" value="1016"/> <attr type="s" value="pw"/> </qual> <qual name="title"> <attr type="u" value="4"/> </qual> <qual name="distributor"> <attr attrset="gils" type="u" value="2000"/> </qual> <directive name="and" value="+"/> </cclmap>
Definition at line 182 of file cclxmlconfig.c.
References ccl_xml_config_directive(), ccl_xml_config_qual(), wrbuf_alloc(), and wrbuf_destroy().